/net/netfilter/ |
H A D | nf_conntrack_broadcast.c | 31 struct in_device *in_dev; local 44 in_dev = __in_dev_get_rcu(rt->dst.dev); 45 if (in_dev != NULL) { 46 for_primary_ifa(in_dev) { 51 } endfor_ifa(in_dev);
|
H A D | xt_osf.c | 171 struct in_device *in_dev = __in_dev_get_rcu(skb->dev); local 174 for_ifa(in_dev) { 180 endfor_ifa(in_dev);
|
H A D | xt_qtaguid.c | 944 struct in_device *in_dev = NULL; local 960 in_dev = in_dev_get(net_dev); 961 if (!in_dev) { 966 IF_DEBUG("qtaguid: iface_stat: create(%s): in_dev=%p\n", 967 ifname, in_dev); 968 for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) { 1004 if (in_dev) 1005 in_dev_put(in_dev); 1011 struct in_device *in_dev; local 1025 in_dev [all...] |
/net/ipv4/ |
H A D | ip_input.c | 290 struct in_device *in_dev = __in_dev_get_rcu(dev); local 292 if (in_dev) { 293 if (!IN_DEV_SOURCE_ROUTE(in_dev)) { 294 if (IN_DEV_LOG_MARTIANS(in_dev))
|
H A D | ip_gre.c | 623 struct in_device *in_dev; local 624 in_dev = inetdev_by_index(dev_net(dev), t->mlink); 625 if (in_dev) 626 ip_mc_dec_group(in_dev, t->parms.iph.daddr);
|
H A D | arp.c | 224 struct in_device *in_dev; local 228 in_dev = __in_dev_get_rcu(dev); 229 if (in_dev == NULL) { 236 parms = in_dev->arp_parms; 328 struct in_device *in_dev; local 331 in_dev = __in_dev_get_rcu(dev); 332 if (!in_dev) { 336 switch (IN_DEV_ARP_ANNOUNCE(in_dev)) { 349 if (inet_addr_onlink(in_dev, target, saddr)) 382 static int arp_ignore(struct in_device *in_dev, __be3 argument 502 arp_fwd_proxy(struct in_device *in_dev, struct net_device *dev, struct rtable *rt) argument 547 arp_fwd_pvlan(struct in_device *in_dev, struct net_device *dev, struct rtable *rt, __be32 sip, __be32 tip) argument 723 struct in_device *in_dev = __in_dev_get_rcu(dev); local [all...] |
H A D | fib_frontend.c | 199 struct in_device *in_dev; local 211 in_dev = __in_dev_get_rcu(dev); 212 BUG_ON(!in_dev); 224 fl4.flowi4_mark = IN_DEV_SRC_VMARK(in_dev) ? skb->mark : 0; 422 struct in_device *in_dev = __in_dev_get_rtnl(dev); local 423 if (!in_dev) 426 for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) 737 struct in_device *in_dev = ifa->ifa_dev; local 738 struct net_device *dev = in_dev->dev; 745 prim = inet_ifa_byprefix(in_dev, prefi 783 struct in_device *in_dev = ifa->ifa_dev; local 1043 struct in_device *in_dev; local [all...] |
H A D | fib_semantics.c | 655 struct in_device *in_dev; local 662 in_dev = inetdev_by_index(net, nh->nh_oif); 663 if (in_dev == NULL) 666 if (!(in_dev->dev->flags & IFF_UP)) 668 nh->nh_dev = in_dev->dev;
|
H A D | devinet.c | 179 static void inet_del_ifa(struct in_device *in_dev, struct in_ifaddr **ifap, 232 struct in_device *in_dev; local 236 in_dev = kzalloc(sizeof(*in_dev), GFP_KERNEL); 237 if (!in_dev) 239 memcpy(&in_dev->cnf, dev_net(dev)->ipv4.devconf_dflt, 240 sizeof(in_dev->cnf)); 241 in_dev->cnf.sysctl = NULL; 242 in_dev->dev = dev; 243 in_dev 274 inetdev_destroy(struct in_device *in_dev) argument 301 inet_addr_onlink(struct in_device *in_dev, __be32 a, __be32 b) argument 316 __inet_del_ifa(struct in_device *in_dev, struct in_ifaddr **ifap, int destroy, struct nlmsghdr *nlh, u32 portid) argument 416 inet_del_ifa(struct in_device *in_dev, struct in_ifaddr **ifap, int destroy) argument 429 struct in_device *in_dev = ifa->ifa_dev; local 490 struct in_device *in_dev = __in_dev_get_rtnl(dev); local 515 struct in_device *in_dev = NULL; local 528 inet_ifa_byprefix(struct in_device *in_dev, __be32 prefix, __be32 mask) argument 544 struct in_device *in_dev; local 715 struct in_device *in_dev; local 789 struct in_device *in_dev = ifa->ifa_dev; local 872 struct in_device *in_dev; local 1116 struct in_device *in_dev = __in_dev_get_rtnl(dev); local 1156 struct in_device *in_dev; local 1202 confirm_addr_indev(struct in_device *in_dev, __be32 dst, __be32 local, int scope) argument 1246 inet_confirm_addr(struct in_device *in_dev, __be32 dst, __be32 local, int scope) argument 1291 inetdev_changename(struct net_device *dev, struct in_device *in_dev) argument 1322 inetdev_send_gratuitous_arp(struct net_device *dev, struct in_device *in_dev) argument 1343 struct in_device *in_dev = __in_dev_get_rtnl(dev); local 1526 struct in_device *in_dev; local 1605 struct in_device *in_dev = rcu_dereference_rtnl(dev->ip_ptr); local 1615 struct in_device *in_dev = rcu_dereference_rtnl(dev->ip_ptr); local 1666 struct in_device *in_dev = __in_dev_get_rtnl(dev); local 1779 struct in_device *in_dev; local 1839 struct in_device *in_dev; local 1911 struct in_device *in_dev; local 1936 struct in_device *in_dev; local [all...] |
H A D | igmp.c | 130 #define IGMP_V1_SEEN(in_dev) \ 131 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 1 || \ 132 IN_DEV_CONF_GET((in_dev), FORCE_IGMP_VERSION) == 1 || \ 133 ((in_dev)->mr_v1_seen && \ 134 time_before(jiffies, (in_dev)->mr_v1_seen))) 135 #define IGMP_V2_SEEN(in_dev) \ 136 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 2 || \ 137 IN_DEV_CONF_GET((in_dev), FORCE_IGMP_VERSION) == 2 || \ 138 ((in_dev)->mr_v2_seen && \ 139 time_before(jiffies, (in_dev) 196 igmp_gq_start_timer(struct in_device *in_dev) argument 205 igmp_ifc_start_timer(struct in_device *in_dev, int delay) argument 512 igmpv3_send_report(struct in_device *in_dev, struct ip_mc_list *pmc) argument 566 igmpv3_send_cr(struct in_device *in_dev) argument 639 igmp_send_report(struct in_device *in_dev, struct ip_mc_list *pmc, int type) argument 708 struct in_device *in_dev = (struct in_device *)data; local 717 struct in_device *in_dev = (struct in_device *)data; local 727 igmp_ifc_event(struct in_device *in_dev) argument 740 struct in_device *in_dev = im->interface; local 819 igmp_heard_report(struct in_device *in_dev, __be32 group) argument 840 igmp_heard_query(struct in_device *in_dev, struct sk_buff *skb, int len) argument 953 struct in_device *in_dev = __in_dev_get_rcu(skb->dev); local 1019 ip_mc_filter_add(struct in_device *in_dev, __be32 addr) argument 1039 ip_mc_filter_del(struct in_device *in_dev, __be32 addr) argument 1052 igmpv3_add_delrec(struct in_device *in_dev, struct ip_mc_list *im) argument 1089 igmpv3_del_delrec(struct in_device *in_dev, __be32 multiaddr) argument 1118 igmpv3_clear_delrec(struct in_device *in_dev) argument 1153 struct in_device *in_dev = im->interface; local 1188 struct in_device *in_dev = im->interface; local 1225 ip_mc_inc_group(struct in_device *in_dev, __be32 addr) argument 1276 ip_mc_rejoin_groups(struct in_device *in_dev) argument 1305 ip_mc_dec_group(struct in_device *in_dev, __be32 addr) argument 1336 ip_mc_unmap(struct in_device *in_dev) argument 1346 ip_mc_remap(struct in_device *in_dev) argument 1358 ip_mc_down(struct in_device *in_dev) argument 1380 ip_mc_init_dev(struct in_device *in_dev) argument 1401 ip_mc_up(struct in_device *in_dev) argument 1417 ip_mc_destroy_dev(struct in_device *in_dev) argument 1497 struct in_device *in_dev = pmc->interface; local 1524 ip_mc_del_src(struct in_device *in_dev, __be32 *pmca, int sfmode, int sfcount, __be32 *psfsrc, int delta) argument 1696 ip_mc_add_src(struct in_device *in_dev, __be32 *pmca, int sfmode, int sfcount, __be32 *psfsrc, int delta) argument 1793 struct in_device *in_dev; local 1840 ip_mc_leave_src(struct sock *sk, struct ip_mc_socklist *iml, struct in_device *in_dev) argument 1869 struct in_device *in_dev; local 1916 struct in_device *in_dev = NULL; local 2052 struct in_device *in_dev; local 2139 struct in_device *in_dev; local 2306 struct in_device *in_dev; local 2321 ip_check_mc_rcu(struct in_device *in_dev, __be32 mc_addr, __be32 src_addr, u16 proto) argument 2355 struct in_device *in_dev; member in struct:igmp_mc_iter_state 2368 struct in_device *in_dev; local [all...] |
H A D | ipmr.c | 397 struct in_device *in_dev; local 423 in_dev = __in_dev_get_rtnl(dev); 424 if (in_dev == NULL) 427 ipv4_devconf_setall(in_dev); 428 IPV4_DEVCONF(in_dev->cnf, RP_FILTER) = 0; 491 struct in_device *in_dev; local 513 in_dev = __in_dev_get_rcu(dev); 514 if (!in_dev) { 519 ipv4_devconf_setall(in_dev); 520 IPV4_DEVCONF(in_dev 550 struct in_device *in_dev; local 714 struct in_device *in_dev; local [all...] |
H A D | route.c | 664 struct in_device *in_dev; local 683 in_dev = __in_dev_get_rcu(dev); 684 if (!in_dev) 688 if (new_gw == old_gw || !IN_DEV_RX_REDIRECTS(in_dev) || 693 if (!IN_DEV_SHARED_MEDIA(in_dev)) { 694 if (!inet_addr_onlink(in_dev, new_gw, old_gw)) 696 if (IN_DEV_SEC_REDIRECTS(in_dev) && ip_fib_check_default(new_gw, dev)) 724 if (IN_DEV_LOG_MARTIANS(in_dev)) { 791 struct in_device *in_dev; local 797 in_dev 853 struct in_device *in_dev = __in_dev_get_rcu(skb->dev); local 1386 struct in_device *in_dev = __in_dev_get_rcu(dev); local 1454 ip_handle_martian_source(struct net_device *dev, struct in_device *in_dev, struct sk_buff *skb, __be32 daddr, __be32 saddr) argument 1480 __mkroute_input(struct sk_buff *skb, const struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos) argument 1568 ip_mkroute_input(struct sk_buff *skb, struct fib_result *res, const struct flowi4 *fl4, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos) argument 1598 struct in_device *in_dev = __in_dev_get_rcu(dev); local 1790 struct in_device *in_dev = __in_dev_get_rcu(dev); local 1825 struct in_device *in_dev; local 2441 ip_rt_multicast_event(struct in_device *in_dev) argument [all...] |
/net/atm/ |
H A D | clip.c | 577 struct in_device *in_dev; local 579 in_dev = ((struct in_ifaddr *)ifa)->ifa_dev; 586 return clip_device_event(this, NETDEV_CHANGE, in_dev->dev);
|
/net/bridge/ |
H A D | br_netfilter.c | 307 struct in_device *in_dev = __in_dev_get_rcu(dev); local 308 if (in_dev && !IN_DEV_SOURCE_ROUTE(in_dev)) 470 struct in_device *in_dev = __in_dev_get_rcu(dev); local 479 if (err != -EHOSTUNREACH || !in_dev || IN_DEV_FORWARD(in_dev))
|
/net/core/ |
H A D | netpoll.c | 1092 struct in_device *in_dev; local 1150 in_dev = __in_dev_get_rtnl(ndev); 1152 if (!in_dev || !in_dev->ifa_list) { 1159 np->local_ip.ip = in_dev->ifa_list->ifa_local;
|
H A D | pktgen.c | 2096 struct in_device *in_dev; local 2099 in_dev = __in_dev_get_rcu(pkt_dev->odev); 2100 if (in_dev) { 2101 if (in_dev->ifa_list) { 2103 in_dev->ifa_list->ifa_address;
|
/net/sctp/ |
H A D | protocol.c | 144 struct in_device *in_dev; local 149 if ((in_dev = __in_dev_get_rcu(dev)) == NULL) { 154 for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) {
|
/net/decnet/ |
H A D | dn_route.c | 1307 struct net_device *in_dev = skb->dev; local 1326 dev_hold(in_dev); 1328 if ((dn_db = rcu_dereference(in_dev->dn_ptr)) == NULL) 1343 if (dn_dev_islocal(in_dev, cb->src)) 1353 if (!dn_dev_islocal(in_dev, cb->dst)) 1402 * Check for out_dev == in_dev. We use the RTCF_DOREDIRECT 1407 if (out_dev == in_dev && !(flags & RTCF_NAT)) 1463 rt->fld.flowidn_iif = in_dev->ifindex; 1476 rt->dst.dev = in_dev; 1499 dev_put(in_dev); [all...] |
/net/ipv6/ |
H A D | addrconf.c | 2659 struct in_device *in_dev = __in_dev_get_rtnl(dev); local 2660 if (in_dev && (dev->flags & IFF_UP)) { 2665 for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) {
|