devinet.c (eefef1cf7653cd4e0aaf743c00ae8345086cdc01) devinet.c (1ce85fe402137824246bad03ff85f3913d565c17)
1/*
2 * NET3 IP device support routines.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *

--- 1202 unchanged lines hidden (view full) ---

1211
1212 err = inet_fill_ifaddr(skb, ifa, pid, seq, event, 0);
1213 if (err < 0) {
1214 /* -EMSGSIZE implies BUG in inet_nlmsg_size() */
1215 WARN_ON(err == -EMSGSIZE);
1216 kfree_skb(skb);
1217 goto errout;
1218 }
1/*
2 * NET3 IP device support routines.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *

--- 1202 unchanged lines hidden (view full) ---

1211
1212 err = inet_fill_ifaddr(skb, ifa, pid, seq, event, 0);
1213 if (err < 0) {
1214 /* -EMSGSIZE implies BUG in inet_nlmsg_size() */
1215 WARN_ON(err == -EMSGSIZE);
1216 kfree_skb(skb);
1217 goto errout;
1218 }
1219 err = rtnl_notify(skb, net, pid, RTNLGRP_IPV4_IFADDR, nlh, GFP_KERNEL);
1219 rtnl_notify(skb, net, pid, RTNLGRP_IPV4_IFADDR, nlh, GFP_KERNEL);
1220 return;
1220errout:
1221 if (err < 0)
1222 rtnl_set_sk_err(net, RTNLGRP_IPV4_IFADDR, err);
1223}
1224
1225#ifdef CONFIG_SYSCTL
1226
1227static void devinet_copy_dflt_conf(struct net *net, int i)

--- 448 unchanged lines hidden ---
1221errout:
1222 if (err < 0)
1223 rtnl_set_sk_err(net, RTNLGRP_IPV4_IFADDR, err);
1224}
1225
1226#ifdef CONFIG_SYSCTL
1227
1228static void devinet_copy_dflt_conf(struct net *net, int i)

--- 448 unchanged lines hidden ---