Home
last modified time | relevance | path

Searched refs:in_dev (Results 1 - 25 of 84) sorted by relevance

1234

/kernel/linux/linux-6.6/include/linux/
H A Dinetdevice.h59 static inline int ipv4_devconf_get(struct in_device *in_dev, int index) in ipv4_devconf_get() argument
62 return in_dev->cnf.data[index]; in ipv4_devconf_get()
65 static inline void ipv4_devconf_set(struct in_device *in_dev, int index, in ipv4_devconf_set() argument
69 set_bit(index, in_dev->cnf.state); in ipv4_devconf_set()
70 in_dev->cnf.data[index] = val; in ipv4_devconf_set()
73 static inline void ipv4_devconf_setall(struct in_device *in_dev) in ipv4_devconf_setall() argument
75 bitmap_fill(in_dev->cnf.state, IPV4_DEVCONF_MAX); in ipv4_devconf_setall()
78 #define IN_DEV_CONF_GET(in_dev, attr) \
79 ipv4_devconf_get((in_dev), IPV4_DEVCONF_ ## attr)
80 #define IN_DEV_CONF_SET(in_dev, att
238 struct in_device *in_dev; in_dev_get() local
256 struct in_device *in_dev; ip_ignore_linkdown() local
269 struct in_device *in_dev = __in_dev_get_rcu(dev); __in_dev_arp_parms_get_rcu() local
[all...]
H A Digmp.h133 extern void __ip_mc_dec_group(struct in_device *in_dev, __be32 addr, gfp_t gfp);
134 static inline void ip_mc_dec_group(struct in_device *in_dev, __be32 addr) in ip_mc_dec_group() argument
136 return __ip_mc_dec_group(in_dev, addr, GFP_KERNEL); in ip_mc_dec_group()
138 extern void __ip_mc_inc_group(struct in_device *in_dev, __be32 addr,
140 extern void ip_mc_inc_group(struct in_device *in_dev, __be32 addr);
/kernel/linux/linux-5.10/include/linux/
H A Dinetdevice.h57 static inline int ipv4_devconf_get(struct in_device *in_dev, int index) in ipv4_devconf_get() argument
60 return in_dev->cnf.data[index]; in ipv4_devconf_get()
63 static inline void ipv4_devconf_set(struct in_device *in_dev, int index, in ipv4_devconf_set() argument
67 set_bit(index, in_dev->cnf.state); in ipv4_devconf_set()
68 in_dev->cnf.data[index] = val; in ipv4_devconf_set()
71 static inline void ipv4_devconf_setall(struct in_device *in_dev) in ipv4_devconf_setall() argument
73 bitmap_fill(in_dev->cnf.state, IPV4_DEVCONF_MAX); in ipv4_devconf_setall()
76 #define IN_DEV_CONF_GET(in_dev, attr) \
77 ipv4_devconf_get((in_dev), IPV4_DEVCONF_ ## attr)
78 #define IN_DEV_CONF_SET(in_dev, att
233 struct in_device *in_dev; in_dev_get() local
251 struct in_device *in_dev; ip_ignore_linkdown() local
264 struct in_device *in_dev = __in_dev_get_rcu(dev); __in_dev_arp_parms_get_rcu() local
[all...]
H A Digmp.h135 extern void __ip_mc_dec_group(struct in_device *in_dev, __be32 addr, gfp_t gfp);
136 static inline void ip_mc_dec_group(struct in_device *in_dev, __be32 addr) in ip_mc_dec_group() argument
138 return __ip_mc_dec_group(in_dev, addr, GFP_KERNEL); in ip_mc_dec_group()
140 extern void __ip_mc_inc_group(struct in_device *in_dev, __be32 addr,
142 extern void ip_mc_inc_group(struct in_device *in_dev, __be32 addr);
/kernel/linux/linux-5.10/net/ipv4/
H A Digmp.c122 #define IGMP_V1_SEEN(in_dev) \
123 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 1 || \
124 IN_DEV_CONF_GET((in_dev), FORCE_IGMP_VERSION) == 1 || \
125 ((in_dev)->mr_v1_seen && \
126 time_before(jiffies, (in_dev)->mr_v1_seen)))
127 #define IGMP_V2_SEEN(in_dev) \
128 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 2 || \
129 IN_DEV_CONF_GET((in_dev), FORCE_IGMP_VERSION) == 2 || \
130 ((in_dev)->mr_v2_seen && \
131 time_before(jiffies, (in_dev)
133 unsolicited_report_interval(struct in_device *in_dev) unsolicited_report_interval() argument
225 igmp_gq_start_timer(struct in_device *in_dev) igmp_gq_start_timer() argument
239 igmp_ifc_start_timer(struct in_device *in_dev, int delay) igmp_ifc_start_timer() argument
334 struct in_device *in_dev = __in_dev_get_rcu(dev); igmpv3_get_srcaddr() local
588 igmpv3_send_report(struct in_device *in_dev, struct ip_mc_list *pmc) igmpv3_send_report() argument
653 igmpv3_send_cr(struct in_device *in_dev) igmpv3_send_cr() argument
726 igmp_send_report(struct in_device *in_dev, struct ip_mc_list *pmc, int type) igmp_send_report() argument
801 struct in_device *in_dev = from_timer(in_dev, t, mr_gq_timer); igmp_gq_timer_expire() local
810 struct in_device *in_dev = from_timer(in_dev, t, mr_ifc_timer); igmp_ifc_timer_expire() local
828 igmp_ifc_event(struct in_device *in_dev) igmp_ifc_event() argument
841 struct in_device *in_dev = im->interface; igmp_timer_expire() local
919 igmp_heard_report(struct in_device *in_dev, __be32 group) igmp_heard_report() argument
944 igmp_heard_query(struct in_device *in_dev, struct sk_buff *skb, int len) igmp_heard_query() argument
1077 struct in_device *in_dev; igmp_rcv() local
1142 ip_mc_filter_add(struct in_device *in_dev, __be32 addr) ip_mc_filter_add() argument
1162 ip_mc_filter_del(struct in_device *in_dev, __be32 addr) ip_mc_filter_del() argument
1175 igmpv3_add_delrec(struct in_device *in_dev, struct ip_mc_list *im, gfp_t gfp) igmpv3_add_delrec() argument
1217 igmpv3_del_delrec(struct in_device *in_dev, struct ip_mc_list *im) igmpv3_del_delrec() argument
1261 igmpv3_clear_delrec(struct in_device *in_dev) igmpv3_clear_delrec() argument
1293 struct in_device *in_dev = im->interface; __igmp_group_dropped() local
1337 struct in_device *in_dev = im->interface; igmp_group_added() local
1387 ip_mc_hash_add(struct in_device *in_dev, struct ip_mc_list *im) ip_mc_hash_add() argument
1419 ip_mc_hash_remove(struct in_device *in_dev, struct ip_mc_list *im) ip_mc_hash_remove() argument
1437 ____ip_mc_inc_group(struct in_device *in_dev, __be32 addr, unsigned int mode, gfp_t gfp) ____ip_mc_inc_group() argument
1485 __ip_mc_inc_group(struct in_device *in_dev, __be32 addr, gfp_t gfp) __ip_mc_inc_group() argument
1491 ip_mc_inc_group(struct in_device *in_dev, __be32 addr) ip_mc_inc_group() argument
1642 ip_mc_rejoin_groups(struct in_device *in_dev) ip_mc_rejoin_groups() argument
1676 __ip_mc_dec_group(struct in_device *in_dev, __be32 addr, gfp_t gfp) __ip_mc_dec_group() argument
1708 ip_mc_unmap(struct in_device *in_dev) ip_mc_unmap() argument
1718 ip_mc_remap(struct in_device *in_dev) ip_mc_remap() argument
1734 ip_mc_down(struct in_device *in_dev) ip_mc_down() argument
1756 ip_mc_reset(struct in_device *in_dev) ip_mc_reset() argument
1765 ip_mc_reset(struct in_device *in_dev) ip_mc_reset() argument
1770 ip_mc_init_dev(struct in_device *in_dev) ip_mc_init_dev() argument
1785 ip_mc_up(struct in_device *in_dev) ip_mc_up() argument
1806 ip_mc_destroy_dev(struct in_device *in_dev) ip_mc_destroy_dev() argument
1884 struct in_device *in_dev = pmc->interface; ip_mc_del1_src() local
1911 ip_mc_del_src(struct in_device *in_dev, __be32 *pmca, int sfmode, int sfcount, __be32 *psfsrc, int delta) ip_mc_del_src() argument
2083 ip_mc_add_src(struct in_device *in_dev, __be32 *pmca, int sfmode, int sfcount, __be32 *psfsrc, int delta) ip_mc_add_src() argument
2177 struct in_device *in_dev; __ip_mc_join_group() local
2238 ip_mc_leave_src(struct sock *sk, struct ip_mc_socklist *iml, struct in_device *in_dev) ip_mc_leave_src() argument
2263 struct in_device *in_dev; ip_mc_leave_group() local
2313 struct in_device *in_dev = NULL; ip_mc_source() local
2449 struct in_device *in_dev; ip_mc_msfilter() local
2537 struct in_device *in_dev; ip_mc_msfget() local
2694 struct in_device *in_dev; ip_mc_drop_socket() local
2709 ip_check_mc_rcu(struct in_device *in_dev, __be32 mc_addr, __be32 src_addr, u8 proto) ip_check_mc_rcu() argument
2758 struct in_device *in_dev; global() member
2771 struct in_device *in_dev; igmp_mc_get_first() local
3064 struct in_device *in_dev; igmp_netdev_event() local
[all...]
H A Ddevinet.c198 static void inet_del_ifa(struct in_device *in_dev,
254 struct in_device *in_dev; in inetdev_init() local
259 in_dev = kzalloc(sizeof(*in_dev), GFP_KERNEL); in inetdev_init()
260 if (!in_dev) in inetdev_init()
262 memcpy(&in_dev->cnf, dev_net(dev)->ipv4.devconf_dflt, in inetdev_init()
263 sizeof(in_dev->cnf)); in inetdev_init()
264 in_dev->cnf.sysctl = NULL; in inetdev_init()
265 in_dev->dev = dev; in inetdev_init()
266 in_dev in inetdev_init()
304 inetdev_destroy(struct in_device *in_dev) inetdev_destroy() argument
331 inet_addr_onlink(struct in_device *in_dev, __be32 a, __be32 b) inet_addr_onlink() argument
348 __inet_del_ifa(struct in_device *in_dev, struct in_ifaddr __rcu **ifap, int destroy, struct nlmsghdr *nlh, u32 portid) __inet_del_ifa() argument
461 inet_del_ifa(struct in_device *in_dev, struct in_ifaddr __rcu **ifap, int destroy) inet_del_ifa() argument
476 struct in_device *in_dev = ifa->ifa_dev; __inet_insert_ifa() local
565 struct in_device *in_dev = __in_dev_get_rtnl(dev); inet_set_ifa() local
591 struct in_device *in_dev = NULL; inetdev_by_index() local
604 inet_ifa_byprefix(struct in_device *in_dev, __be32 prefix, __be32 mask) inet_ifa_byprefix() argument
650 struct in_device *in_dev; inet_rtm_deladdr() local
831 struct in_device *in_dev; rtm_to_ifaddr() local
913 struct in_device *in_dev = ifa->ifa_dev; find_matching_ifa() local
1014 struct in_device *in_dev; devinet_ioctl() local
1249 struct in_device *in_dev = __in_dev_get_rtnl(dev); inet_gifconf() local
1285 in_dev_select_addr(const struct in_device *in_dev, int scope) in_dev_select_addr() argument
1306 struct in_device *in_dev; inet_select_addr() local
1371 confirm_addr_indev(struct in_device *in_dev, __be32 dst, __be32 local, int scope) confirm_addr_indev() argument
1423 inet_confirm_addr(struct net *net, struct in_device *in_dev, __be32 dst, __be32 local, int scope) inet_confirm_addr() argument
1479 inetdev_changename(struct net_device *dev, struct in_device *in_dev) inetdev_changename() argument
1505 inetdev_send_gratuitous_arp(struct net_device *dev, struct in_device *in_dev) inetdev_send_gratuitous_arp() argument
1525 struct in_device *in_dev = __in_dev_get_rtnl(dev); inetdev_event() local
1773 in_dev_dump_addr(struct in_device *in_dev, struct sk_buff *skb, struct netlink_callback *cb, int s_ip_idx, struct inet_fill_args *fillargs) in_dev_dump_addr() argument
1817 struct in_device *in_dev; inet_dump_ifaddr() local
1921 struct in_device *in_dev = rcu_dereference_rtnl(dev->ip_ptr); inet_get_link_af_size() local
1932 struct in_device *in_dev = rcu_dereference_rtnl(dev->ip_ptr); inet_fill_link_af() local
1984 struct in_device *in_dev = __in_dev_get_rcu(dev); inet_set_link_af() local
2167 struct in_device *in_dev; inet_netconf_get_devconf() local
2227 struct in_device *in_dev; inet_netconf_dump_devconf() local
2314 struct in_device *in_dev; devinet_copy_dflt_conf() local
2341 struct in_device *in_dev; inet_forward_change() local
[all...]
H A Darp.c226 struct in_device *in_dev; in arp_constructor() local
235 in_dev = __in_dev_get_rcu(dev); in arp_constructor()
236 if (!in_dev) { in arp_constructor()
243 parms = in_dev->arp_parms; in arp_constructor()
339 struct in_device *in_dev; in arp_solicit() local
343 in_dev = __in_dev_get_rcu(dev); in arp_solicit()
344 if (!in_dev) { in arp_solicit()
348 switch (IN_DEV_ARP_ANNOUNCE(in_dev)) { in arp_solicit()
362 if (inet_addr_onlink(in_dev, target, saddr)) in arp_solicit()
395 static int arp_ignore(struct in_device *in_dev, __be3 argument
452 arp_fwd_proxy(struct in_device *in_dev, struct net_device *dev, struct rtable *rt) arp_fwd_proxy() argument
497 arp_fwd_pvlan(struct in_device *in_dev, struct net_device *dev, struct rtable *rt, __be32 sip, __be32 tip) arp_fwd_pvlan() argument
680 struct in_device *in_dev = __in_dev_get_rcu(dev); arp_process() local
[all...]
H A Droute.c773 struct in_device *in_dev; in __ip_do_redirect() local
792 in_dev = __in_dev_get_rcu(dev); in __ip_do_redirect()
793 if (!in_dev) in __ip_do_redirect()
797 if (new_gw == old_gw || !IN_DEV_RX_REDIRECTS(in_dev) || in __ip_do_redirect()
802 if (!IN_DEV_SHARED_MEDIA(in_dev)) { in __ip_do_redirect()
803 if (!inet_addr_onlink(in_dev, new_gw, old_gw)) in __ip_do_redirect()
805 if (IN_DEV_SEC_REDIRECTS(in_dev) && ip_fib_check_default(new_gw, dev)) in __ip_do_redirect()
838 if (IN_DEV_LOG_MARTIANS(in_dev)) { in __ip_do_redirect()
900 struct in_device *in_dev; in ip_rt_send_redirect() local
907 in_dev in ip_rt_send_redirect()
968 struct in_device *in_dev; ip_error() local
1727 ip_mc_validate_source(struct sk_buff *skb, __be32 daddr, __be32 saddr, u8 tos, struct net_device *dev, struct in_device *in_dev, u32 *itag) ip_mc_validate_source() argument
1761 struct in_device *in_dev = __in_dev_get_rcu(dev); ip_route_input_mc() local
1802 ip_handle_martian_source(struct net_device *dev, struct in_device *in_dev, struct sk_buff *skb, __be32 daddr, __be32 saddr) ip_handle_martian_source() argument
1828 __mkroute_input(struct sk_buff *skb, const struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos) __mkroute_input() argument
2054 ip_mkroute_input(struct sk_buff *skb, struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos, struct flow_keys *hkeys) ip_mkroute_input() argument
2081 struct in_device *in_dev = __in_dev_get_rcu(dev); ip_route_use_hint() local
2146 struct in_device *in_dev = __in_dev_get_rcu(dev); ip_route_input_slow() local
2388 struct in_device *in_dev = __in_dev_get_rcu(dev); ip_route_input_rcu() local
2431 struct in_device *in_dev; __mkroute_output() local
3368 ip_rt_multicast_event(struct in_device *in_dev) ip_rt_multicast_event() argument
[all...]
H A Dip_input.c295 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_rcv_options() local
297 if (in_dev) { in ip_rcv_options()
298 if (!IN_DEV_SOURCE_ROUTE(in_dev)) { in ip_rcv_options()
299 if (IN_DEV_LOG_MARTIANS(in_dev)) in ip_rcv_options()
376 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_rcv_finish_core() local
378 if (in_dev && IN_DEV_ORCONF(in_dev, NOPOLICY)) in ip_rcv_finish_core()
403 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_rcv_finish_core() local
420 if (in_dev && in ip_rcv_finish_core()
421 IN_DEV_ORCONF(in_dev, DROP_UNICAST_IN_L2_MULTICAS in ip_rcv_finish_core()
[all...]
H A Dfib_frontend.c273 struct in_device *in_dev; in fib_compute_spec_dst() local
284 in_dev = __in_dev_get_rcu(dev); in fib_compute_spec_dst()
290 bool vmark = in_dev && IN_DEV_SRC_VMARK(in_dev); in fib_compute_spec_dst()
543 struct in_device *in_dev; in rtentry_to_fib_config() local
545 in_dev = __in_dev_get_rtnl(dev); in rtentry_to_fib_config()
546 if (!in_dev) in rtentry_to_fib_config()
552 in_dev_for_each_ifa_rcu(ifa, in_dev) { in rtentry_to_fib_config()
1100 struct in_device *in_dev = ifa->ifa_dev; in fib_add_ifaddr() local
1101 struct net_device *dev = in_dev in fib_add_ifaddr()
1149 struct in_device *in_dev = ifa->ifa_dev; fib_modify_prefix_metric() local
1176 struct in_device *in_dev = ifa->ifa_dev; fib_del_ifaddr() local
1459 struct in_device *in_dev; fib_netdev_event() local
[all...]
/kernel/linux/linux-6.6/net/ipv4/
H A Digmp.c122 #define IGMP_V1_SEEN(in_dev) \
123 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 1 || \
124 IN_DEV_CONF_GET((in_dev), FORCE_IGMP_VERSION) == 1 || \
125 ((in_dev)->mr_v1_seen && \
126 time_before(jiffies, (in_dev)->mr_v1_seen)))
127 #define IGMP_V2_SEEN(in_dev) \
128 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 2 || \
129 IN_DEV_CONF_GET((in_dev), FORCE_IGMP_VERSION) == 2 || \
130 ((in_dev)->mr_v2_seen && \
131 time_before(jiffies, (in_dev)
133 unsolicited_report_interval(struct in_device *in_dev) unsolicited_report_interval() argument
225 igmp_gq_start_timer(struct in_device *in_dev) igmp_gq_start_timer() argument
239 igmp_ifc_start_timer(struct in_device *in_dev, int delay) igmp_ifc_start_timer() argument
334 struct in_device *in_dev = __in_dev_get_rcu(dev); igmpv3_get_srcaddr() local
588 igmpv3_send_report(struct in_device *in_dev, struct ip_mc_list *pmc) igmpv3_send_report() argument
653 igmpv3_send_cr(struct in_device *in_dev) igmpv3_send_cr() argument
726 igmp_send_report(struct in_device *in_dev, struct ip_mc_list *pmc, int type) igmp_send_report() argument
801 struct in_device *in_dev = from_timer(in_dev, t, mr_gq_timer); igmp_gq_timer_expire() local
810 struct in_device *in_dev = from_timer(in_dev, t, mr_ifc_timer); igmp_ifc_timer_expire() local
828 igmp_ifc_event(struct in_device *in_dev) igmp_ifc_event() argument
841 struct in_device *in_dev = im->interface; igmp_timer_expire() local
919 igmp_heard_report(struct in_device *in_dev, __be32 group) igmp_heard_report() argument
944 igmp_heard_query(struct in_device *in_dev, struct sk_buff *skb, int len) igmp_heard_query() argument
1077 struct in_device *in_dev; igmp_rcv() local
1142 ip_mc_filter_add(struct in_device *in_dev, __be32 addr) ip_mc_filter_add() argument
1162 ip_mc_filter_del(struct in_device *in_dev, __be32 addr) ip_mc_filter_del() argument
1175 igmpv3_add_delrec(struct in_device *in_dev, struct ip_mc_list *im, gfp_t gfp) igmpv3_add_delrec() argument
1217 igmpv3_del_delrec(struct in_device *in_dev, struct ip_mc_list *im) igmpv3_del_delrec() argument
1261 igmpv3_clear_delrec(struct in_device *in_dev) igmpv3_clear_delrec() argument
1293 struct in_device *in_dev = im->interface; __igmp_group_dropped() local
1337 struct in_device *in_dev = im->interface; igmp_group_added() local
1387 ip_mc_hash_add(struct in_device *in_dev, struct ip_mc_list *im) ip_mc_hash_add() argument
1419 ip_mc_hash_remove(struct in_device *in_dev, struct ip_mc_list *im) ip_mc_hash_remove() argument
1437 ____ip_mc_inc_group(struct in_device *in_dev, __be32 addr, unsigned int mode, gfp_t gfp) ____ip_mc_inc_group() argument
1485 __ip_mc_inc_group(struct in_device *in_dev, __be32 addr, gfp_t gfp) __ip_mc_inc_group() argument
1491 ip_mc_inc_group(struct in_device *in_dev, __be32 addr) ip_mc_inc_group() argument
1642 ip_mc_rejoin_groups(struct in_device *in_dev) ip_mc_rejoin_groups() argument
1676 __ip_mc_dec_group(struct in_device *in_dev, __be32 addr, gfp_t gfp) __ip_mc_dec_group() argument
1708 ip_mc_unmap(struct in_device *in_dev) ip_mc_unmap() argument
1718 ip_mc_remap(struct in_device *in_dev) ip_mc_remap() argument
1734 ip_mc_down(struct in_device *in_dev) ip_mc_down() argument
1756 ip_mc_reset(struct in_device *in_dev) ip_mc_reset() argument
1765 ip_mc_reset(struct in_device *in_dev) ip_mc_reset() argument
1770 ip_mc_init_dev(struct in_device *in_dev) ip_mc_init_dev() argument
1785 ip_mc_up(struct in_device *in_dev) ip_mc_up() argument
1806 ip_mc_destroy_dev(struct in_device *in_dev) ip_mc_destroy_dev() argument
1884 struct in_device *in_dev = pmc->interface; ip_mc_del1_src() local
1911 ip_mc_del_src(struct in_device *in_dev, __be32 *pmca, int sfmode, int sfcount, __be32 *psfsrc, int delta) ip_mc_del_src() argument
2083 ip_mc_add_src(struct in_device *in_dev, __be32 *pmca, int sfmode, int sfcount, __be32 *psfsrc, int delta) ip_mc_add_src() argument
2177 struct in_device *in_dev; __ip_mc_join_group() local
2238 ip_mc_leave_src(struct sock *sk, struct ip_mc_socklist *iml, struct in_device *in_dev) ip_mc_leave_src() argument
2263 struct in_device *in_dev; ip_mc_leave_group() local
2313 struct in_device *in_dev = NULL; ip_mc_source() local
2451 struct in_device *in_dev; ip_mc_msfilter() local
2542 struct in_device *in_dev; ip_mc_msfget() local
2703 struct in_device *in_dev; ip_mc_drop_socket() local
2718 ip_check_mc_rcu(struct in_device *in_dev, __be32 mc_addr, __be32 src_addr, u8 proto) ip_check_mc_rcu() argument
2767 struct in_device *in_dev; global() member
2780 struct in_device *in_dev; igmp_mc_get_first() local
3073 struct in_device *in_dev; igmp_netdev_event() local
[all...]
H A Ddevinet.c201 static void inet_del_ifa(struct in_device *in_dev,
264 struct in_device *in_dev; in inetdev_init() local
269 in_dev = kzalloc(sizeof(*in_dev), GFP_KERNEL); in inetdev_init()
270 if (!in_dev) in inetdev_init()
272 memcpy(&in_dev->cnf, dev_net(dev)->ipv4.devconf_dflt, in inetdev_init()
273 sizeof(in_dev->cnf)); in inetdev_init()
274 in_dev->cnf.sysctl = NULL; in inetdev_init()
275 in_dev->dev = dev; in inetdev_init()
276 in_dev in inetdev_init()
308 inetdev_destroy(struct in_device *in_dev) inetdev_destroy() argument
335 inet_addr_onlink(struct in_device *in_dev, __be32 a, __be32 b) inet_addr_onlink() argument
352 __inet_del_ifa(struct in_device *in_dev, struct in_ifaddr __rcu **ifap, int destroy, struct nlmsghdr *nlh, u32 portid) __inet_del_ifa() argument
465 inet_del_ifa(struct in_device *in_dev, struct in_ifaddr __rcu **ifap, int destroy) inet_del_ifa() argument
480 struct in_device *in_dev = ifa->ifa_dev; __inet_insert_ifa() local
568 struct in_device *in_dev = __in_dev_get_rtnl(dev); inet_set_ifa() local
594 struct in_device *in_dev = NULL; inetdev_by_index() local
607 inet_ifa_byprefix(struct in_device *in_dev, __be32 prefix, __be32 mask) inet_ifa_byprefix() argument
653 struct in_device *in_dev; inet_rtm_deladdr() local
835 struct in_device *in_dev; rtm_to_ifaddr() local
931 struct in_device *in_dev = ifa->ifa_dev; find_matching_ifa() local
1038 struct in_device *in_dev; devinet_ioctl() local
1273 struct in_device *in_dev = __in_dev_get_rtnl(dev); inet_gifconf() local
1309 in_dev_select_addr(const struct in_device *in_dev, int scope) in_dev_select_addr() argument
1330 struct in_device *in_dev; inet_select_addr() local
1395 confirm_addr_indev(struct in_device *in_dev, __be32 dst, __be32 local, int scope) confirm_addr_indev() argument
1447 inet_confirm_addr(struct net *net, struct in_device *in_dev, __be32 dst, __be32 local, int scope) inet_confirm_addr() argument
1503 inetdev_changename(struct net_device *dev, struct in_device *in_dev) inetdev_changename() argument
1529 inetdev_send_gratuitous_arp(struct net_device *dev, struct in_device *in_dev) inetdev_send_gratuitous_arp() argument
1549 struct in_device *in_dev = __in_dev_get_rtnl(dev); inetdev_event() local
1800 in_dev_dump_addr(struct in_device *in_dev, struct sk_buff *skb, struct netlink_callback *cb, int s_ip_idx, struct inet_fill_args *fillargs) in_dev_dump_addr() argument
1859 struct in_device *in_dev; inet_dump_ifaddr() local
1962 struct in_device *in_dev = rcu_dereference_rtnl(dev->ip_ptr); inet_get_link_af_size() local
1973 struct in_device *in_dev = rcu_dereference_rtnl(dev->ip_ptr); inet_fill_link_af() local
2027 struct in_device *in_dev = __in_dev_get_rtnl(dev); inet_set_link_af() local
2210 struct in_device *in_dev; inet_netconf_get_devconf() local
2270 struct in_device *in_dev; inet_netconf_dump_devconf() local
2356 struct in_device *in_dev; devinet_copy_dflt_conf() local
2383 struct in_device *in_dev; inet_forward_change() local
[all...]
H A Darp.c227 struct in_device *in_dev; in arp_constructor() local
236 in_dev = __in_dev_get_rcu(dev); in arp_constructor()
237 if (!in_dev) { in arp_constructor()
244 parms = in_dev->arp_parms; in arp_constructor()
340 struct in_device *in_dev; in arp_solicit() local
344 in_dev = __in_dev_get_rcu(dev); in arp_solicit()
345 if (!in_dev) { in arp_solicit()
349 switch (IN_DEV_ARP_ANNOUNCE(in_dev)) { in arp_solicit()
363 if (inet_addr_onlink(in_dev, target, saddr)) in arp_solicit()
396 static int arp_ignore(struct in_device *in_dev, __be3 argument
432 arp_accept(struct in_device *in_dev, __be32 sip) arp_accept() argument
473 arp_fwd_proxy(struct in_device *in_dev, struct net_device *dev, struct rtable *rt) arp_fwd_proxy() argument
518 arp_fwd_pvlan(struct in_device *in_dev, struct net_device *dev, struct rtable *rt, __be32 sip, __be32 tip) arp_fwd_pvlan() argument
701 struct in_device *in_dev = __in_dev_get_rcu(dev); arp_process() local
1277 struct in_device *in_dev; arp_netdev_event() local
[all...]
H A Droute.c744 struct in_device *in_dev; in __ip_do_redirect() local
763 in_dev = __in_dev_get_rcu(dev); in __ip_do_redirect()
764 if (!in_dev) in __ip_do_redirect()
768 if (new_gw == old_gw || !IN_DEV_RX_REDIRECTS(in_dev) || in __ip_do_redirect()
773 if (!IN_DEV_SHARED_MEDIA(in_dev)) { in __ip_do_redirect()
774 if (!inet_addr_onlink(in_dev, new_gw, old_gw)) in __ip_do_redirect()
776 if (IN_DEV_SEC_REDIRECTS(in_dev) && ip_fib_check_default(new_gw, dev)) in __ip_do_redirect()
809 if (IN_DEV_LOG_MARTIANS(in_dev)) { in __ip_do_redirect()
877 struct in_device *in_dev; in ip_rt_send_redirect() local
884 in_dev in ip_rt_send_redirect()
945 struct in_device *in_dev; ip_error() local
1691 ip_mc_validate_source(struct sk_buff *skb, __be32 daddr, __be32 saddr, u8 tos, struct net_device *dev, struct in_device *in_dev, u32 *itag) ip_mc_validate_source() argument
1725 struct in_device *in_dev = __in_dev_get_rcu(dev); ip_route_input_mc() local
1764 ip_handle_martian_source(struct net_device *dev, struct in_device *in_dev, struct sk_buff *skb, __be32 daddr, __be32 saddr) ip_handle_martian_source() argument
1790 __mkroute_input(struct sk_buff *skb, const struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos) __mkroute_input() argument
2138 ip_mkroute_input(struct sk_buff *skb, struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos, struct flow_keys *hkeys) ip_mkroute_input() argument
2165 struct in_device *in_dev = __in_dev_get_rcu(dev); ip_route_use_hint() local
2227 struct in_device *in_dev = __in_dev_get_rcu(dev); ip_route_input_slow() local
2452 struct in_device *in_dev = __in_dev_get_rcu(dev); ip_route_input_rcu() local
2510 struct in_device *in_dev; __mkroute_output() local
3448 ip_rt_multicast_event(struct in_device *in_dev) ip_rt_multicast_event() argument
[all...]
H A Dip_input.c287 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_rcv_options() local
289 if (in_dev) { in ip_rcv_options()
290 if (!IN_DEV_SOURCE_ROUTE(in_dev)) { in ip_rcv_options()
291 if (IN_DEV_LOG_MARTIANS(in_dev)) in ip_rcv_options()
370 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_rcv_finish_core() local
372 if (in_dev && IN_DEV_ORCONF(in_dev, NOPOLICY)) in ip_rcv_finish_core()
397 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_rcv_finish_core() local
414 if (in_dev && in ip_rcv_finish_core()
415 IN_DEV_ORCONF(in_dev, DROP_UNICAST_IN_L2_MULTICAS in ip_rcv_finish_core()
[all...]
H A Dfib_frontend.c274 struct in_device *in_dev; in fib_compute_spec_dst() local
285 in_dev = __in_dev_get_rcu(dev); in fib_compute_spec_dst()
291 bool vmark = in_dev && IN_DEV_SRC_VMARK(in_dev); in fib_compute_spec_dst()
546 struct in_device *in_dev; in rtentry_to_fib_config() local
548 in_dev = __in_dev_get_rtnl(dev); in rtentry_to_fib_config()
549 if (!in_dev) in rtentry_to_fib_config()
555 in_dev_for_each_ifa_rcu(ifa, in_dev) { in rtentry_to_fib_config()
1111 struct in_device *in_dev = ifa->ifa_dev; in fib_add_ifaddr() local
1112 struct net_device *dev = in_dev in fib_add_ifaddr()
1158 struct in_device *in_dev = ifa->ifa_dev; fib_modify_prefix_metric() local
1185 struct in_device *in_dev = ifa->ifa_dev; fib_del_ifaddr() local
1468 struct in_device *in_dev; fib_netdev_event() local
[all...]
/kernel/linux/linux-5.10/drivers/input/touchscreen/
H A Dbu21029_ts.c157 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...]
H A Dbu21013_ts.c142 * @in_dev: pointer to the input device structure
159 struct input_dev *in_dev; member
188 struct input_dev *input = ts->in_dev; in bu21013_do_touch_report()
411 struct input_dev *in_dev; in bu21013_probe() local
436 in_dev = devm_input_allocate_device(&client->dev); in bu21013_probe()
437 if (!in_dev) { in bu21013_probe()
441 ts->in_dev = in_dev; in bu21013_probe()
442 input_set_drvdata(in_dev, ts); in bu21013_probe()
445 in_dev in bu21013_probe()
[all...]
/kernel/linux/linux-6.6/drivers/input/touchscreen/
H A Dbu21029_ts.c157 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...]
H A Dbu21013_ts.c142 * @in_dev: pointer to the input device structure
159 struct input_dev *in_dev; member
188 struct input_dev *input = ts->in_dev; in bu21013_do_touch_report()
410 struct input_dev *in_dev; in bu21013_probe() local
436 in_dev = devm_input_allocate_device(dev); in bu21013_probe()
437 if (!in_dev) { in bu21013_probe()
441 ts->in_dev = in_dev; in bu21013_probe()
442 input_set_drvdata(in_dev, ts); in bu21013_probe()
445 in_dev in bu21013_probe()
[all...]
/kernel/linux/linux-5.10/net/netfilter/
H A Dnf_conntrack_broadcast.c26 struct in_device *in_dev; in nf_conntrack_broadcast_help() local
38 in_dev = __in_dev_get_rcu(rt->dst.dev); in nf_conntrack_broadcast_help()
39 if (in_dev != NULL) { in nf_conntrack_broadcast_help()
42 in_dev_for_each_ifa_rcu(ifa, in_dev) { in nf_conntrack_broadcast_help()
/kernel/linux/linux-6.6/net/netfilter/
H A Dnf_conntrack_broadcast.c27 struct in_device *in_dev; in nf_conntrack_broadcast_help() local
39 in_dev = __in_dev_get_rcu(rt->dst.dev); in nf_conntrack_broadcast_help()
40 if (in_dev != NULL) { in nf_conntrack_broadcast_help()
43 in_dev_for_each_ifa_rcu(ifa, in_dev) { in nf_conntrack_broadcast_help()
/kernel/linux/linux-5.10/drivers/net/wan/
H A Dhdlc_cisco.c159 struct in_device *in_dev; in cisco_rx() local
192 in_dev = __in_dev_get_rcu(dev); in cisco_rx()
196 if (in_dev != NULL) { in cisco_rx()
199 in_dev_for_each_ifa_rcu(ifa, in_dev) { in cisco_rx()
/kernel/linux/linux-5.10/drivers/parisc/
H A Dled.c367 struct in_device *in_dev = __in_dev_get_rcu(dev); in led_get_net_activity()
368 if (!in_dev || !in_dev->ifa_list) in led_get_net_activity()
370 if (ipv4_is_loopback(in_dev->ifa_list->ifa_local)) in led_get_net_activity()
/kernel/linux/linux-5.10/net/bridge/
H A Dbr_arp_nd_proxy.c95 struct in_device *in_dev; in br_chk_addr_ip() local
98 in_dev = __in_dev_get_rcu(dev); in br_chk_addr_ip()
99 if (in_dev) in br_chk_addr_ip()
100 addr = inet_confirm_addr(dev_net(dev), in_dev, 0, ip, in br_chk_addr_ip()

Completed in 30 milliseconds

1234