/Linux-v4.19/include/linux/ |
D | inetdevice.h | 55 static inline int ipv4_devconf_get(struct in_device *in_dev, int index) in ipv4_devconf_get() argument 58 return in_dev->cnf.data[index]; in ipv4_devconf_get() 61 static inline void ipv4_devconf_set(struct in_device *in_dev, int index, in ipv4_devconf_set() argument 65 set_bit(index, in_dev->cnf.state); in ipv4_devconf_set() 66 in_dev->cnf.data[index] = val; in ipv4_devconf_set() 69 static inline void ipv4_devconf_setall(struct in_device *in_dev) in ipv4_devconf_setall() argument 71 bitmap_fill(in_dev->cnf.state, IPV4_DEVCONF_MAX); in ipv4_devconf_setall() 74 #define IN_DEV_CONF_GET(in_dev, attr) \ argument 75 ipv4_devconf_get((in_dev), IPV4_DEVCONF_ ## attr) 76 #define IN_DEV_CONF_SET(in_dev, attr, val) \ argument [all …]
|
D | igmp.h | 131 extern void ip_mc_dec_group(struct in_device *in_dev, __be32 addr); 132 extern void ip_mc_inc_group(struct in_device *in_dev, __be32 addr);
|
/Linux-v4.19/net/ipv4/ |
D | igmp.c | 131 #define IGMP_V1_SEEN(in_dev) \ argument 132 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 1 || \ 133 IN_DEV_CONF_GET((in_dev), FORCE_IGMP_VERSION) == 1 || \ 134 ((in_dev)->mr_v1_seen && \ 135 time_before(jiffies, (in_dev)->mr_v1_seen))) 136 #define IGMP_V2_SEEN(in_dev) \ argument 137 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 2 || \ 138 IN_DEV_CONF_GET((in_dev), FORCE_IGMP_VERSION) == 2 || \ 139 ((in_dev)->mr_v2_seen && \ 140 time_before(jiffies, (in_dev)->mr_v2_seen))) [all …]
|
D | devinet.c | 187 static void inet_del_ifa(struct in_device *in_dev, struct in_ifaddr **ifap, 242 struct in_device *in_dev; in inetdev_init() local 247 in_dev = kzalloc(sizeof(*in_dev), GFP_KERNEL); in inetdev_init() 248 if (!in_dev) in inetdev_init() 250 memcpy(&in_dev->cnf, dev_net(dev)->ipv4.devconf_dflt, in inetdev_init() 251 sizeof(in_dev->cnf)); in inetdev_init() 252 in_dev->cnf.sysctl = NULL; in inetdev_init() 253 in_dev->dev = dev; in inetdev_init() 254 in_dev->arp_parms = neigh_parms_alloc(dev, &arp_tbl); in inetdev_init() 255 if (!in_dev->arp_parms) in inetdev_init() [all …]
|
D | arp.c | 228 struct in_device *in_dev; in arp_constructor() local 237 in_dev = __in_dev_get_rcu(dev); in arp_constructor() 238 if (!in_dev) { in arp_constructor() 245 parms = in_dev->arp_parms; in arp_constructor() 341 struct in_device *in_dev; in arp_solicit() local 345 in_dev = __in_dev_get_rcu(dev); in arp_solicit() 346 if (!in_dev) { in arp_solicit() 350 switch (IN_DEV_ARP_ANNOUNCE(in_dev)) { in arp_solicit() 364 if (inet_addr_onlink(in_dev, target, saddr)) in arp_solicit() 397 static int arp_ignore(struct in_device *in_dev, __be32 sip, __be32 tip) in arp_ignore() argument [all …]
|
D | route.c | 732 struct in_device *in_dev; in __ip_do_redirect() local 751 in_dev = __in_dev_get_rcu(dev); in __ip_do_redirect() 752 if (!in_dev) in __ip_do_redirect() 756 if (new_gw == old_gw || !IN_DEV_RX_REDIRECTS(in_dev) || in __ip_do_redirect() 761 if (!IN_DEV_SHARED_MEDIA(in_dev)) { in __ip_do_redirect() 762 if (!inet_addr_onlink(in_dev, new_gw, old_gw)) in __ip_do_redirect() 764 if (IN_DEV_SEC_REDIRECTS(in_dev) && ip_fib_check_default(new_gw, dev)) in __ip_do_redirect() 795 if (IN_DEV_LOG_MARTIANS(in_dev)) { in __ip_do_redirect() 863 struct in_device *in_dev; in ip_rt_send_redirect() local 870 in_dev = __in_dev_get_rcu(rt->dst.dev); in ip_rt_send_redirect() [all …]
|
D | fib_frontend.c | 283 struct in_device *in_dev; in fib_compute_spec_dst() local 294 in_dev = __in_dev_get_rcu(dev); in fib_compute_spec_dst() 300 bool vmark = in_dev && IN_DEV_SRC_VMARK(in_dev); in fib_compute_spec_dst() 534 struct in_device *in_dev = __in_dev_get_rtnl(dev); in rtentry_to_fib_config() local 535 if (!in_dev) in rtentry_to_fib_config() 538 for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) in rtentry_to_fib_config() 893 struct in_device *in_dev = ifa->ifa_dev; in fib_add_ifaddr() local 894 struct net_device *dev = in_dev->dev; in fib_add_ifaddr() 901 prim = inet_ifa_byprefix(in_dev, prefix, mask); in fib_add_ifaddr() 939 struct in_device *in_dev = ifa->ifa_dev; in fib_modify_prefix_metric() local [all …]
|
D | fib_semantics.c | 563 struct in_device *in_dev; in fib_rebalance() local 573 in_dev = __in_dev_get_rtnl(nh->nh_dev); in fib_rebalance() 575 if (in_dev && in fib_rebalance() 576 IN_DEV_IGNORE_ROUTES_WITH_LINKDOWN(in_dev) && in fib_rebalance() 587 in_dev = __in_dev_get_rtnl(nexthop_nh->nh_dev); in fib_rebalance() 591 } else if (in_dev && in fib_rebalance() 592 IN_DEV_IGNORE_ROUTES_WITH_LINKDOWN(in_dev) && in fib_rebalance() 876 struct in_device *in_dev; in fib_check_nh() local 885 in_dev = inetdev_by_index(net, nh->nh_oif); in fib_check_nh() 886 if (!in_dev) in fib_check_nh() [all …]
|
D | ip_input.c | 289 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_rcv_options() local 291 if (in_dev) { in ip_rcv_options() 292 if (!IN_DEV_SOURCE_ROUTE(in_dev)) { in ip_rcv_options() 293 if (IN_DEV_LOG_MARTIANS(in_dev)) in ip_rcv_options() 368 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_rcv_finish_core() local 385 if (in_dev && in ip_rcv_finish_core() 386 IN_DEV_ORCONF(in_dev, DROP_UNICAST_IN_L2_MULTICAST)) in ip_rcv_finish_core()
|
D | ipmr.c | 458 struct in_device *in_dev; in ipmr_init_vif_indev() local 462 in_dev = __in_dev_get_rtnl(dev); in ipmr_init_vif_indev() 463 if (!in_dev) in ipmr_init_vif_indev() 465 ipv4_devconf_setall(in_dev); in ipmr_init_vif_indev() 466 neigh_parms_data_state_setall(in_dev->arp_parms); in ipmr_init_vif_indev() 467 IPV4_DEVCONF(in_dev->cnf, RP_FILTER) = 0; in ipmr_init_vif_indev() 677 struct in_device *in_dev; in vif_delete() local 714 in_dev = __in_dev_get_rtnl(dev); in vif_delete() 715 if (in_dev) { in vif_delete() 716 IPV4_DEVCONF(in_dev->cnf, MC_FORWARDING)--; in vif_delete() [all …]
|
/Linux-v4.19/drivers/input/touchscreen/ |
D | bu21029_ts.c | 157 struct input_dev *in_dev; member 169 s32 max_pressure = input_abs_get_max(bu21029->in_dev, ABS_PRESSURE); in bu21029_touch_report() 200 touchscreen_report_pos(bu21029->in_dev, &bu21029->prop, in bu21029_touch_report() 202 input_report_abs(bu21029->in_dev, ABS_PRESSURE, in bu21029_touch_report() 204 input_report_key(bu21029->in_dev, BTN_TOUCH, 1); in bu21029_touch_report() 205 input_sync(bu21029->in_dev); in bu21029_touch_report() 214 input_report_abs(bu21029->in_dev, ABS_PRESSURE, 0); in bu21029_touch_release() 215 input_report_key(bu21029->in_dev, BTN_TOUCH, 0); in bu21029_touch_release() 216 input_sync(bu21029->in_dev); in bu21029_touch_release() 338 struct input_dev *in_dev; in bu21029_probe() local [all …]
|
D | bu21013_ts.c | 155 struct input_dev *in_dev; member 235 input_report_abs(data->in_dev, in bu21013_do_touch_report() 237 input_report_abs(data->in_dev, in bu21013_do_touch_report() 239 input_mt_sync(data->in_dev); in bu21013_do_touch_report() 242 input_mt_sync(data->in_dev); in bu21013_do_touch_report() 244 input_sync(data->in_dev); in bu21013_do_touch_report() 504 struct input_dev *in_dev; in bu21013_probe() local 525 in_dev = input_allocate_device(); in bu21013_probe() 526 if (!bu21013_data || !in_dev) { in bu21013_probe() 532 bu21013_data->in_dev = in_dev; in bu21013_probe() [all …]
|
/Linux-v4.19/net/netfilter/ |
D | nf_conntrack_broadcast.c | 30 struct in_device *in_dev; in nf_conntrack_broadcast_help() local 42 in_dev = __in_dev_get_rcu(rt->dst.dev); in nf_conntrack_broadcast_help() 43 if (in_dev != NULL) { in nf_conntrack_broadcast_help() 44 for_primary_ifa(in_dev) { in nf_conntrack_broadcast_help() 49 } endfor_ifa(in_dev); in nf_conntrack_broadcast_help()
|
D | nfnetlink_osf.c | 43 struct in_device *in_dev = __in_dev_get_rcu(skb->dev); in nf_osf_ttl() local 46 for_ifa(in_dev) { in nf_osf_ttl() 52 endfor_ifa(in_dev); in nf_osf_ttl()
|
/Linux-v4.19/drivers/isdn/hysdn/ |
D | hysdn_net.c | 62 struct in_device *in_dev; in net_open() local 72 if ((in_dev = dev->ip_ptr) != NULL) { in net_open() 73 struct in_ifaddr *ifa = in_dev->ifa_list; in net_open()
|
/Linux-v4.19/net/smc/ |
D | smc_clc.c | 99 struct in_device *in_dev = __in_dev_get_rcu(dst->dev); in smc_clc_prfx_set4_rcu() local 101 if (!in_dev) in smc_clc_prfx_set4_rcu() 103 for_ifa(in_dev) { in smc_clc_prfx_set4_rcu() 110 } endfor_ifa(in_dev); in smc_clc_prfx_set4_rcu() 192 struct in_device *in_dev = __in_dev_get_rcu(dev); in smc_clc_prfx_match4_rcu() local 194 if (!in_dev) in smc_clc_prfx_match4_rcu() 196 for_ifa(in_dev) { in smc_clc_prfx_match4_rcu() 200 } endfor_ifa(in_dev); in smc_clc_prfx_match4_rcu()
|
/Linux-v4.19/drivers/net/wan/ |
D | hdlc_cisco.c | 161 struct in_device *in_dev; in cisco_rx() local 194 in_dev = __in_dev_get_rcu(dev); in cisco_rx() 198 if (in_dev != NULL) { in cisco_rx() 199 struct in_ifaddr **ifap = &in_dev->ifa_list; in cisco_rx()
|
/Linux-v4.19/arch/ia64/hp/sim/ |
D | simeth.c | 274 struct in_device *in_dev; in simeth_device_event() local 298 if ((in_dev=dev->ip_ptr) != NULL) { in simeth_device_event() 299 for (ifap=&in_dev->ifa_list; (ifa=*ifap) != NULL; ifap=&ifa->ifa_next) in simeth_device_event()
|
/Linux-v4.19/drivers/parisc/ |
D | led.c | 369 struct in_device *in_dev = __in_dev_get_rcu(dev); in led_get_net_activity() 370 if (!in_dev || !in_dev->ifa_list) in led_get_net_activity() 372 if (ipv4_is_loopback(in_dev->ifa_list->ifa_local)) in led_get_net_activity()
|
/Linux-v4.19/net/bridge/ |
D | br_arp_nd_proxy.c | 97 struct in_device *in_dev; in br_chk_addr_ip() local 100 in_dev = __in_dev_get_rcu(dev); in br_chk_addr_ip() 101 if (in_dev) in br_chk_addr_ip() 102 addr = inet_confirm_addr(dev_net(dev), in_dev, 0, ip, in br_chk_addr_ip()
|
/Linux-v4.19/drivers/net/plip/ |
D | plip.c | 1009 const struct in_device *in_dev; in plip_rewrite_address() local 1012 in_dev = __in_dev_get_rcu(dev); in plip_rewrite_address() 1013 if (in_dev) { in plip_rewrite_address() 1015 const struct in_ifaddr *ifa = in_dev->ifa_list; in plip_rewrite_address() 1066 struct in_device *in_dev; in plip_open() local 1105 in_dev=__in_dev_get_rtnl(dev); in plip_open() 1106 if (in_dev) { in plip_open() 1110 struct in_ifaddr *ifa=in_dev->ifa_list; in plip_open()
|
/Linux-v4.19/drivers/infiniband/core/ |
D | roce_gid_mgmt.c | 330 struct in_device *in_dev; in enum_netdev_ipv4_ips() local 343 in_dev = __in_dev_get_rcu(ndev); in enum_netdev_ipv4_ips() 344 if (!in_dev) { in enum_netdev_ipv4_ips() 349 for_ifa(in_dev) { in enum_netdev_ipv4_ips() 359 endfor_ifa(in_dev); in enum_netdev_ipv4_ips()
|
/Linux-v4.19/net/core/ |
D | netpoll.c | 642 struct in_device *in_dev; in netpoll_setup() local 700 in_dev = __in_dev_get_rtnl(ndev); in netpoll_setup() 702 if (!in_dev || !in_dev->ifa_list) { in netpoll_setup() 709 np->local_ip.ip = in_dev->ifa_list->ifa_local; in netpoll_setup()
|
/Linux-v4.19/include/net/ |
D | bonding.h | 581 struct in_device *in_dev; in bond_confirm_addr() local 585 in_dev = __in_dev_get_rcu(dev); in bond_confirm_addr() 587 if (in_dev) in bond_confirm_addr() 588 addr = inet_confirm_addr(dev_net(dev), in_dev, dst, local, in bond_confirm_addr()
|
/Linux-v4.19/net/decnet/ |
D | dn_route.c | 1310 struct net_device *in_dev = skb->dev; in dn_route_input_slow() local 1329 dev_hold(in_dev); in dn_route_input_slow() 1331 if ((dn_db = rcu_dereference(in_dev->dn_ptr)) == NULL) in dn_route_input_slow() 1346 if (dn_dev_islocal(in_dev, cb->src)) in dn_route_input_slow() 1356 if (!dn_dev_islocal(in_dev, cb->dst)) in dn_route_input_slow() 1410 if (out_dev == in_dev && !(flags & RTCF_NAT)) in dn_route_input_slow() 1467 rt->fld.flowidn_iif = in_dev->ifindex; in dn_route_input_slow() 1480 rt->dst.dev = in_dev; in dn_route_input_slow() 1504 dev_put(in_dev); in dn_route_input_slow()
|