/net/ipv4/ |
H A D | igmp.c | 132 #define IGMP_V1_SEEN(in_dev) \ 133 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 1 || \ 134 IN_DEV_CONF_GET((in_dev), FORCE_IGMP_VERSION) == 1 || \ 135 ((in_dev)->mr_v1_seen && \ 136 time_before(jiffies, (in_dev)->mr_v1_seen))) 137 #define IGMP_V2_SEEN(in_dev) \ 138 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 2 || \ 139 IN_DEV_CONF_GET((in_dev), FORCE_IGMP_VERSION) == 2 || \ 140 ((in_dev)->mr_v2_seen && \ 141 time_before(jiffies, (in_dev) 143 unsolicited_report_interval(struct in_device *in_dev) argument 221 igmp_gq_start_timer(struct in_device *in_dev) argument 230 igmp_ifc_start_timer(struct in_device *in_dev, int delay) argument 537 igmpv3_send_report(struct in_device *in_dev, struct ip_mc_list *pmc) argument 591 igmpv3_send_cr(struct in_device *in_dev) argument 664 igmp_send_report(struct in_device *in_dev, struct ip_mc_list *pmc, int type) argument 734 struct in_device *in_dev = (struct in_device *)data; local 743 struct in_device *in_dev = (struct in_device *)data; local 754 igmp_ifc_event(struct in_device *in_dev) argument 766 struct in_device *in_dev = im->interface; local 845 igmp_heard_report(struct in_device *in_dev, __be32 group) argument 866 igmp_heard_query(struct in_device *in_dev, struct sk_buff *skb, int len) argument 979 struct in_device *in_dev = __in_dev_get_rcu(skb->dev); local 1037 ip_mc_filter_add(struct in_device *in_dev, __be32 addr) argument 1057 ip_mc_filter_del(struct in_device *in_dev, __be32 addr) argument 1070 igmpv3_add_delrec(struct in_device *in_dev, struct ip_mc_list *im) argument 1106 igmpv3_del_delrec(struct in_device *in_dev, __be32 multiaddr) argument 1135 igmpv3_clear_delrec(struct in_device *in_dev) argument 1170 struct in_device *in_dev = im->interface; local 1205 struct in_device *in_dev = im->interface; local 1241 ip_mc_hash_add(struct in_device *in_dev, struct ip_mc_list *im) argument 1273 ip_mc_hash_remove(struct in_device *in_dev, struct ip_mc_list *im) argument 1292 ip_mc_inc_group(struct in_device *in_dev, __be32 addr) argument 1344 ip_mc_rejoin_groups(struct in_device *in_dev) argument 1374 ip_mc_dec_group(struct in_device *in_dev, __be32 addr) argument 1406 ip_mc_unmap(struct in_device *in_dev) argument 1416 ip_mc_remap(struct in_device *in_dev) argument 1428 ip_mc_down(struct in_device *in_dev) argument 1450 ip_mc_init_dev(struct in_device *in_dev) argument 1467 ip_mc_up(struct in_device *in_dev) argument 1486 ip_mc_destroy_dev(struct in_device *in_dev) argument 1568 struct in_device *in_dev = pmc->interface; local 1594 ip_mc_del_src(struct in_device *in_dev, __be32 *pmca, int sfmode, int sfcount, __be32 *psfsrc, int delta) argument 1765 ip_mc_add_src(struct in_device *in_dev, __be32 *pmca, int sfmode, int sfcount, __be32 *psfsrc, int delta) argument 1861 struct in_device *in_dev; local 1908 ip_mc_leave_src(struct sock *sk, struct ip_mc_socklist *iml, struct in_device *in_dev) argument 1937 struct in_device *in_dev; local 1986 struct in_device *in_dev = NULL; local 2122 struct in_device *in_dev; local 2209 struct in_device *in_dev; local 2376 struct in_device *in_dev; local 2391 ip_check_mc_rcu(struct in_device *in_dev, __be32 mc_addr, __be32 src_addr, u16 proto) argument 2438 struct in_device *in_dev; member in struct:igmp_mc_iter_state 2451 struct in_device *in_dev; local 2763 struct in_device *in_dev; local [all...] |
H A D | devinet.c | 181 static void inet_del_ifa(struct in_device *in_dev, struct in_ifaddr **ifap, 236 struct in_device *in_dev; local 241 in_dev = kzalloc(sizeof(*in_dev), GFP_KERNEL); 242 if (!in_dev) 244 memcpy(&in_dev->cnf, dev_net(dev)->ipv4.devconf_dflt, 245 sizeof(in_dev->cnf)); 246 in_dev->cnf.sysctl = NULL; 247 in_dev->dev = dev; 248 in_dev 285 inetdev_destroy(struct in_device *in_dev) argument 312 inet_addr_onlink(struct in_device *in_dev, __be32 a, __be32 b) argument 327 __inet_del_ifa(struct in_device *in_dev, struct in_ifaddr **ifap, int destroy, struct nlmsghdr *nlh, u32 portid) argument 427 inet_del_ifa(struct in_device *in_dev, struct in_ifaddr **ifap, int destroy) argument 440 struct in_device *in_dev = ifa->ifa_dev; local 501 struct in_device *in_dev = __in_dev_get_rtnl(dev); local 527 struct in_device *in_dev = NULL; local 540 inet_ifa_byprefix(struct in_device *in_dev, __be32 prefix, __be32 mask) argument 556 struct in_device *in_dev; local 728 struct in_device *in_dev; local 806 struct in_device *in_dev = ifa->ifa_dev; local 890 struct in_device *in_dev; local 1134 struct in_device *in_dev = __in_dev_get_rtnl(dev); local 1171 struct in_device *in_dev; local 1217 confirm_addr_indev(struct in_device *in_dev, __be32 dst, __be32 local, int scope) argument 1262 inet_confirm_addr(struct net *net, struct in_device *in_dev, __be32 dst, __be32 local, int scope) argument 1305 inetdev_changename(struct net_device *dev, struct in_device *in_dev) argument 1336 inetdev_send_gratuitous_arp(struct net_device *dev, struct in_device *in_dev) argument 1357 struct in_device *in_dev = __in_dev_get_rtnl(dev); local 1545 struct in_device *in_dev; local 1624 struct in_device *in_dev = rcu_dereference_rtnl(dev->ip_ptr); local 1634 struct in_device *in_dev = rcu_dereference_rtnl(dev->ip_ptr); local 1685 struct in_device *in_dev = __in_dev_get_rtnl(dev); local 1805 struct in_device *in_dev; local 1865 struct in_device *in_dev; local 1937 struct in_device *in_dev; local 1962 struct in_device *in_dev; local [all...] |
H A D | arp.c | 226 struct in_device *in_dev; local 230 in_dev = __in_dev_get_rcu(dev); 231 if (in_dev == NULL) { 238 parms = in_dev->arp_parms; 330 struct in_device *in_dev; local 333 in_dev = __in_dev_get_rcu(dev); 334 if (!in_dev) { 338 switch (IN_DEV_ARP_ANNOUNCE(in_dev)) { 351 if (inet_addr_onlink(in_dev, target, saddr)) 382 static int arp_ignore(struct in_device *in_dev, __be3 argument 504 arp_fwd_proxy(struct in_device *in_dev, struct net_device *dev, struct rtable *rt) argument 549 arp_fwd_pvlan(struct in_device *in_dev, struct net_device *dev, struct rtable *rt, __be32 sip, __be32 tip) argument 725 struct in_device *in_dev = __in_dev_get_rcu(dev); local [all...] |
H A D | route.c | 711 struct in_device *in_dev; local 730 in_dev = __in_dev_get_rcu(dev); 731 if (!in_dev) 735 if (new_gw == old_gw || !IN_DEV_RX_REDIRECTS(in_dev) || 740 if (!IN_DEV_SHARED_MEDIA(in_dev)) { 741 if (!inet_addr_onlink(in_dev, new_gw, old_gw)) 743 if (IN_DEV_SEC_REDIRECTS(in_dev) && ip_fib_check_default(new_gw, dev)) 771 if (IN_DEV_LOG_MARTIANS(in_dev)) { 838 struct in_device *in_dev; local 844 in_dev 900 struct in_device *in_dev = __in_dev_get_rcu(skb->dev); local 1434 struct in_device *in_dev = __in_dev_get_rcu(dev); local 1502 ip_handle_martian_source(struct net_device *dev, struct in_device *in_dev, struct sk_buff *skb, __be32 daddr, __be32 saddr) argument 1528 __mkroute_input(struct sk_buff *skb, const struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos) argument 1623 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 1653 struct in_device *in_dev = __in_dev_get_rcu(dev); local 1851 struct in_device *in_dev = __in_dev_get_rcu(dev); local 1886 struct in_device *in_dev; local 2497 ip_rt_multicast_event(struct in_device *in_dev) argument [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; 424 struct in_device *in_dev = __in_dev_get_rtnl(dev); local 425 if (!in_dev) 428 for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) 739 struct in_device *in_dev = ifa->ifa_dev; local 740 struct net_device *dev = in_dev->dev; 747 prim = inet_ifa_byprefix(in_dev, prefi 785 struct in_device *in_dev = ifa->ifa_dev; local 1043 struct in_device *in_dev; local [all...] |
H A D | ip_input.c | 288 struct in_device *in_dev = __in_dev_get_rcu(dev); local 290 if (in_dev) { 291 if (!IN_DEV_SOURCE_ROUTE(in_dev)) { 292 if (IN_DEV_LOG_MARTIANS(in_dev))
|
H A D | ipmr.c | 400 struct in_device *in_dev; local 426 in_dev = __in_dev_get_rtnl(dev); 427 if (in_dev == NULL) 430 ipv4_devconf_setall(in_dev); 431 neigh_parms_data_state_setall(in_dev->arp_parms); 432 IPV4_DEVCONF(in_dev->cnf, RP_FILTER) = 0; 495 struct in_device *in_dev; local 517 in_dev = __in_dev_get_rcu(dev); 518 if (!in_dev) { 523 ipv4_devconf_setall(in_dev); 555 struct in_device *in_dev; local 719 struct in_device *in_dev; local [all...] |
H A D | ip_gre.c | 438 struct in_device *in_dev; local 439 in_dev = inetdev_by_index(t->net, t->mlink); 440 if (in_dev) 441 ip_mc_dec_group(in_dev, t->parms.iph.daddr);
|
H A D | fib_semantics.c | 659 struct in_device *in_dev; local 666 in_dev = inetdev_by_index(net, nh->nh_oif); 667 if (in_dev == NULL) 670 if (!(in_dev->dev->flags & IFF_UP)) 672 nh->nh_dev = in_dev->dev;
|
/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 | 170 struct in_device *in_dev = __in_dev_get_rcu(skb->dev); local 173 for_ifa(in_dev) { 179 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/decnet/ |
H A D | dn_route.c | 1317 struct net_device *in_dev = skb->dev; local 1336 dev_hold(in_dev); 1338 if ((dn_db = rcu_dereference(in_dev->dn_ptr)) == NULL) 1353 if (dn_dev_islocal(in_dev, cb->src)) 1363 if (!dn_dev_islocal(in_dev, cb->dst)) 1412 * Check for out_dev == in_dev. We use the RTCF_DOREDIRECT 1417 if (out_dev == in_dev && !(flags & RTCF_NAT)) 1473 rt->fld.flowidn_iif = in_dev->ifindex; 1486 rt->dst.dev = in_dev; 1509 dev_put(in_dev); [all...] |
/net/core/ |
H A D | netpoll.c | 654 struct in_device *in_dev; local 712 in_dev = __in_dev_get_rtnl(ndev); 714 if (!in_dev || !in_dev->ifa_list) { 721 np->local_ip.ip = in_dev->ifa_list->ifa_local;
|
H A D | pktgen.c | 2150 struct in_device *in_dev; local 2153 in_dev = __in_dev_get_rcu(pkt_dev->odev); 2154 if (in_dev) { 2155 if (in_dev->ifa_list) { 2157 in_dev->ifa_list->ifa_address;
|
/net/atm/ |
H A D | clip.c | 578 struct in_device *in_dev; local 581 in_dev = ((struct in_ifaddr *)ifa)->ifa_dev; 588 netdev_notifier_info_init(&info, in_dev->dev);
|
/net/bridge/ |
H A D | br_netfilter.c | 373 struct in_device *in_dev = __in_dev_get_rcu(dev); local 382 if (err != -EHOSTUNREACH || !in_dev || IN_DEV_FORWARD(in_dev))
|
/net/batman-adv/ |
H A D | translation-table.c | 515 struct net_device *in_dev = NULL; local 524 in_dev = dev_get_by_index(&init_net, ifindex); 591 if (batadv_is_wifi_netdev(in_dev)) 650 if (batadv_is_wifi_netdev(in_dev)) 674 if (in_dev) 675 dev_put(in_dev);
|
/net/sctp/ |
H A D | protocol.c | 137 struct in_device *in_dev; local 142 if ((in_dev = __in_dev_get_rcu(dev)) == NULL) { 147 for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) {
|
/net/ipv6/ |
H A D | addrconf.c | 2726 struct in_device *in_dev = __in_dev_get_rtnl(dev); local 2727 if (in_dev && (dev->flags & IFF_UP)) { 2732 for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) {
|