struct inet6_fill_args {
u32 portid;
u32 seq; int event; unsignedint flags; int netnsid; int ifindex; enum addr_type_t type; bool force_rt_scope_universe;
};
int addrconf_init(void); void addrconf_cleanup(void);
int addrconf_add_ifaddr(struct net *net, void __user *arg); int addrconf_del_ifaddr(struct net *net, void __user *arg); int addrconf_set_dstaddr(struct net *net, void __user *arg);
int ipv6_chk_addr(struct net *net, conststruct in6_addr *addr, conststruct net_device *dev, int strict); int ipv6_chk_addr_and_flags(struct net *net, conststruct in6_addr *addr, conststruct net_device *dev, bool skip_dev_check, int strict, u32 banned_flags);
#ifdefined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) int ipv6_chk_home_addr(struct net *net, conststruct in6_addr *addr); #endif
int ipv6_chk_rpl_srh_loop(struct net *net, conststruct in6_addr *segs, unsignedchar nsegs);
/* * The zSeries OSA network cards can be shared among various * OS instances, but the OSA cards have only one MAC address. * This leads to duplicate address conflicts in conjunction * with IPv6 if more than one instance uses the same card. * * The driver for these cards can deliver a unique 16-bit * identifier for each instance sharing the same card. It is * placed instead of 0xFFFE in the interface identifier. The * "u" bit of the interface identifier is not inverted in this * case. Hence the resulting interface identifier has local * scope according to RFC2373.
*/
/* * Avoid arithmetic overflow. * Assuming unit is constant and non-zero, this "if" statement * will go away on 64bit archs.
*/ if (0xfffffffe > LONG_MAX / unit && timeout > LONG_MAX / unit) return LONG_MAX / unit;
/* * IPv6 Address Label subsystem (addrlabel.c)
*/ int ipv6_addr_label_init(void); void ipv6_addr_label_cleanup(void); int ipv6_addr_label_rtnl_register(void);
u32 ipv6_addr_label(struct net *net, conststruct in6_addr *addr, int type, int ifindex);
switch (hdr->icmp6_type) { case ICMPV6_MGM_QUERY: case ICMPV6_MGM_REPORT: case ICMPV6_MGM_REDUCTION: case ICMPV6_MLD2_REPORT: returntrue; default: break;
} returnfalse;
}
void addrconf_prefix_rcv(struct net_device *dev,
u8 *opt, int len, bool sllao);
/* * anycast prototypes (anycast.c)
*/ int ipv6_sock_ac_join(struct sock *sk, int ifindex, conststruct in6_addr *addr); int ipv6_sock_ac_drop(struct sock *sk, int ifindex, conststruct in6_addr *addr); void __ipv6_sock_ac_close(struct sock *sk); void ipv6_sock_ac_close(struct sock *sk);
int __ipv6_dev_ac_inc(struct inet6_dev *idev, conststruct in6_addr *addr); int __ipv6_dev_ac_dec(struct inet6_dev *idev, conststruct in6_addr *addr); void ipv6_ac_destroy_dev(struct inet6_dev *idev); bool ipv6_chk_acast_addr(struct net *net, struct net_device *dev, conststruct in6_addr *addr); bool ipv6_chk_acast_addr_src(struct net *net, struct net_device *dev, conststruct in6_addr *addr); int ipv6_anycast_init(void); void ipv6_anycast_cleanup(void);
/* Device notifier */ int register_inet6addr_notifier(struct notifier_block *nb); int unregister_inet6addr_notifier(struct notifier_block *nb); int inet6addr_notifier_call_chain(unsignedlong val, void *v);
int register_inet6addr_validator_notifier(struct notifier_block *nb); int unregister_inet6addr_validator_notifier(struct notifier_block *nb); int inet6addr_validator_notifier_call_chain(unsignedlong val, void *v);
void inet6_netconf_notify_devconf(struct net *net, int event, int type, int ifindex, struct ipv6_devconf *devconf);
/** * __in6_dev_get - get inet6_dev pointer from netdevice * @dev: network device * * Caller must hold rcu_read_lock or RTNL, because this function * does not take a reference on the inet6_dev.
*/ staticinlinestruct inet6_dev *__in6_dev_get(conststruct net_device *dev)
{ return rcu_dereference_rtnl(dev->ip6_ptr);
}
/** * __in6_dev_stats_get - get inet6_dev pointer for stats * @dev: network device * @skb: skb for original incoming interface if needed * * Caller must hold rcu_read_lock or RTNL, because this function * does not take a reference on the inet6_dev.
*/ staticinlinestruct inet6_dev *__in6_dev_stats_get(conststruct net_device *dev, conststruct sk_buff *skb)
{ if (netif_is_l3_master(dev))
dev = dev_get_by_index_rcu(dev_net(dev), inet6_iif(skb)); return __in6_dev_get(dev);
}
/** * __in6_dev_get_safely - get inet6_dev pointer from netdevice * @dev: network device * * This is a safer version of __in6_dev_get
*/ staticinlinestruct inet6_dev *__in6_dev_get_safely(conststruct net_device *dev)
{ if (likely(dev)) return rcu_dereference_rtnl(dev->ip6_ptr); else return NULL;
}
/** * in6_dev_get - get inet6_dev pointer from netdevice * @dev: network device * * This version can be used in any context, and takes a reference * on the inet6_dev. Callers must use in6_dev_put() later to * release this reference.
*/ staticinlinestruct inet6_dev *in6_dev_get(conststruct net_device *dev)
{ struct inet6_dev *idev;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.