• Home
  • Raw
  • Download

Lines Matching refs:dev

136 struct ndisc_options *ndisc_parse_options(const struct net_device *dev,
198 int (*parse_options)(const struct net_device *dev,
201 void (*update)(const struct net_device *dev, struct neighbour *n,
204 int (*opt_addr_space)(const struct net_device *dev, u8 icmp6_type,
207 void (*fill_addr_option)(const struct net_device *dev,
210 void (*prefix_rcv_add_addr)(struct net *net, struct net_device *dev,
221 static inline int ndisc_ops_parse_options(const struct net_device *dev, in ndisc_ops_parse_options() argument
225 if (dev->ndisc_ops && dev->ndisc_ops->parse_options) in ndisc_ops_parse_options()
226 return dev->ndisc_ops->parse_options(dev, nd_opt, ndopts); in ndisc_ops_parse_options()
231 static inline void ndisc_ops_update(const struct net_device *dev, in ndisc_ops_update() argument
236 if (dev->ndisc_ops && dev->ndisc_ops->update) in ndisc_ops_update()
237 dev->ndisc_ops->update(dev, n, flags, icmp6_type, ndopts); in ndisc_ops_update()
240 static inline int ndisc_ops_opt_addr_space(const struct net_device *dev, in ndisc_ops_opt_addr_space() argument
243 if (dev->ndisc_ops && dev->ndisc_ops->opt_addr_space && in ndisc_ops_opt_addr_space()
245 return dev->ndisc_ops->opt_addr_space(dev, icmp6_type, NULL, in ndisc_ops_opt_addr_space()
251 static inline int ndisc_ops_redirect_opt_addr_space(const struct net_device *dev, in ndisc_ops_redirect_opt_addr_space() argument
255 if (dev->ndisc_ops && dev->ndisc_ops->opt_addr_space) in ndisc_ops_redirect_opt_addr_space()
256 return dev->ndisc_ops->opt_addr_space(dev, NDISC_REDIRECT, in ndisc_ops_redirect_opt_addr_space()
262 static inline void ndisc_ops_fill_addr_option(const struct net_device *dev, in ndisc_ops_fill_addr_option() argument
266 if (dev->ndisc_ops && dev->ndisc_ops->fill_addr_option && in ndisc_ops_fill_addr_option()
268 dev->ndisc_ops->fill_addr_option(dev, skb, icmp6_type, NULL); in ndisc_ops_fill_addr_option()
271 static inline void ndisc_ops_fill_redirect_addr_option(const struct net_device *dev, in ndisc_ops_fill_redirect_addr_option() argument
275 if (dev->ndisc_ops && dev->ndisc_ops->fill_addr_option) in ndisc_ops_fill_redirect_addr_option()
276 dev->ndisc_ops->fill_addr_option(dev, skb, NDISC_REDIRECT, ha); in ndisc_ops_fill_redirect_addr_option()
280 struct net_device *dev, in ndisc_ops_prefix_rcv_add_addr() argument
290 if (dev->ndisc_ops && dev->ndisc_ops->prefix_rcv_add_addr) in ndisc_ops_prefix_rcv_add_addr()
291 dev->ndisc_ops->prefix_rcv_add_addr(net, dev, pinfo, in6_dev, in ndisc_ops_prefix_rcv_add_addr()
320 static inline int ndisc_opt_addr_space(struct net_device *dev, u8 icmp6_type) in ndisc_opt_addr_space() argument
322 return __ndisc_opt_addr_space(dev->addr_len, in ndisc_opt_addr_space()
323 ndisc_addr_option_pad(dev->type)) + in ndisc_opt_addr_space()
324 ndisc_ops_opt_addr_space(dev, icmp6_type); in ndisc_opt_addr_space()
327 static inline int ndisc_redirect_opt_addr_space(struct net_device *dev, in ndisc_redirect_opt_addr_space() argument
332 return __ndisc_opt_addr_space(dev->addr_len, in ndisc_redirect_opt_addr_space()
333 ndisc_addr_option_pad(dev->type)) + in ndisc_redirect_opt_addr_space()
334 ndisc_ops_redirect_opt_addr_space(dev, neigh, ops_data_buf, in ndisc_redirect_opt_addr_space()
350 struct net_device *dev) in ndisc_opt_addr_data() argument
352 return __ndisc_opt_addr_data(p, dev->addr_len, in ndisc_opt_addr_data()
353 ndisc_addr_option_pad(dev->type)); in ndisc_opt_addr_data()
356 static inline u32 ndisc_hashfn(const void *pkey, const struct net_device *dev, __u32 *hash_rnd) in ndisc_hashfn() argument
360 return (((p32[0] ^ hash32_ptr(dev)) * hash_rnd[0]) + in ndisc_hashfn()
366 static inline struct neighbour *__ipv6_neigh_lookup_noref(struct net_device *dev, const void *pkey) in __ipv6_neigh_lookup_noref() argument
368 return ___neigh_lookup_noref(&nd_tbl, neigh_key_eq128, ndisc_hashfn, pkey, dev); in __ipv6_neigh_lookup_noref()
372 struct neighbour *__ipv6_neigh_lookup_noref_stub(struct net_device *dev, in __ipv6_neigh_lookup_noref_stub() argument
376 ndisc_hashfn, pkey, dev); in __ipv6_neigh_lookup_noref_stub()
379 static inline struct neighbour *__ipv6_neigh_lookup(struct net_device *dev, const void *pkey) in __ipv6_neigh_lookup() argument
384 n = __ipv6_neigh_lookup_noref(dev, pkey); in __ipv6_neigh_lookup()
392 static inline void __ipv6_confirm_neigh(struct net_device *dev, in __ipv6_confirm_neigh() argument
398 n = __ipv6_neigh_lookup_noref(dev, pkey); in __ipv6_confirm_neigh()
403 static inline void __ipv6_confirm_neigh_stub(struct net_device *dev, in __ipv6_confirm_neigh_stub() argument
409 n = __ipv6_neigh_lookup_noref_stub(dev, pkey); in __ipv6_confirm_neigh_stub()
415 static inline struct neighbour *ip_neigh_gw6(struct net_device *dev, in ip_neigh_gw6() argument
420 neigh = __ipv6_neigh_lookup_noref_stub(dev, addr); in ip_neigh_gw6()
422 neigh = __neigh_create(ipv6_stub->nd_tbl, addr, dev, false); in ip_neigh_gw6()
435 struct sk_buff *ndisc_ns_create(struct net_device *dev, const struct in6_addr *solicit,
437 void ndisc_send_ns(struct net_device *dev, const struct in6_addr *solicit,
444 void ndisc_send_rs(struct net_device *dev,
446 void ndisc_send_na(struct net_device *dev, const struct in6_addr *daddr,
452 int ndisc_mc_map(const struct in6_addr *addr, char *buf, struct net_device *dev,
455 void ndisc_update(const struct net_device *dev, struct neighbour *neigh,