Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
addrconf.h File Reference
#include <linux/in.h>
#include <linux/in6.h>
#include <linux/netdevice.h>
#include <net/if_inet6.h>
#include <net/ipv6.h>

Go to the source code of this file.

Data Structures

struct  prefix_info
 

Macros

#define MAX_RTR_SOLICITATIONS   3
 
#define RTR_SOLICITATION_INTERVAL   (4*HZ)
 
#define MIN_VALID_LIFETIME   (2*3600) /* 2 hours */
 
#define TEMP_VALID_LIFETIME   (7*86400)
 
#define TEMP_PREFERRED_LIFETIME   (86400)
 
#define REGEN_MAX_RETRY   (3)
 
#define MAX_DESYNC_FACTOR   (600)
 
#define ADDR_CHECK_FREQUENCY   (120*HZ)
 
#define IPV6_MAX_ADDRESSES   16
 
#define IN6_ADDR_HSIZE_SHIFT   4
 
#define IN6_ADDR_HSIZE   (1 << IN6_ADDR_HSIZE_SHIFT)
 

Functions

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, const struct in6_addr *addr, struct net_device *dev, int strict)
 
int ipv6_chk_prefix (const struct in6_addr *addr, struct net_device *dev)
 
struct inet6_ifaddripv6_get_ifaddr (struct net *net, const struct in6_addr *addr, struct net_device *dev, int strict)
 
int ipv6_dev_get_saddr (struct net *net, const struct net_device *dev, const struct in6_addr *daddr, unsigned int srcprefs, struct in6_addr *saddr)
 
int ipv6_get_lladdr (struct net_device *dev, struct in6_addr *addr, unsigned char banned_flags)
 
int ipv6_rcv_saddr_equal (const struct sock *sk, const struct sock *sk2)
 
void addrconf_join_solict (struct net_device *dev, const struct in6_addr *addr)
 
void addrconf_leave_solict (struct inet6_dev *idev, const struct in6_addr *addr)
 
int ipv6_addr_label_init (void)
 
void ipv6_addr_label_cleanup (void)
 
void ipv6_addr_label_rtnl_register (void)
 
u32 ipv6_addr_label (struct net *net, const struct in6_addr *addr, int type, int ifindex)
 
int ipv6_sock_mc_join (struct sock *sk, int ifindex, const struct in6_addr *addr)
 
int ipv6_sock_mc_drop (struct sock *sk, int ifindex, const struct in6_addr *addr)
 
void ipv6_sock_mc_close (struct sock *sk)
 
bool inet6_mc_check (struct sock *sk, const struct in6_addr *mc_addr, const struct in6_addr *src_addr)
 
int ipv6_dev_mc_inc (struct net_device *dev, const struct in6_addr *addr)
 
int __ipv6_dev_mc_dec (struct inet6_dev *idev, const struct in6_addr *addr)
 
int ipv6_dev_mc_dec (struct net_device *dev, const struct in6_addr *addr)
 
void ipv6_mc_up (struct inet6_dev *idev)
 
void ipv6_mc_down (struct inet6_dev *idev)
 
void ipv6_mc_unmap (struct inet6_dev *idev)
 
void ipv6_mc_remap (struct inet6_dev *idev)
 
void ipv6_mc_init_dev (struct inet6_dev *idev)
 
void ipv6_mc_destroy_dev (struct inet6_dev *idev)
 
void addrconf_dad_failure (struct inet6_ifaddr *ifp)
 
bool ipv6_chk_mcast_addr (struct net_device *dev, const struct in6_addr *group, const struct in6_addr *src_addr)
 
bool ipv6_is_mld (struct sk_buff *skb, int nexthdr)
 
void addrconf_prefix_rcv (struct net_device *dev, u8 *opt, int len, bool sllao)
 
int ipv6_sock_ac_join (struct sock *sk, int ifindex, const struct in6_addr *addr)
 
int ipv6_sock_ac_drop (struct sock *sk, int ifindex, const struct in6_addr *addr)
 
void ipv6_sock_ac_close (struct sock *sk)
 
int ipv6_dev_ac_inc (struct net_device *dev, const struct in6_addr *addr)
 
int __ipv6_dev_ac_dec (struct inet6_dev *idev, const struct in6_addr *addr)
 
bool ipv6_chk_acast_addr (struct net *net, struct net_device *dev, const struct in6_addr *addr)
 
int register_inet6addr_notifier (struct notifier_block *nb)
 
int unregister_inet6addr_notifier (struct notifier_block *nb)
 
void in6_dev_finish_destroy (struct inet6_dev *idev)
 
void inet6_ifa_finish_destroy (struct inet6_ifaddr *ifp)
 

Macro Definition Documentation

#define ADDR_CHECK_FREQUENCY   (120*HZ)

Definition at line 14 of file addrconf.h.

#define IN6_ADDR_HSIZE   (1 << IN6_ADDR_HSIZE_SHIFT)

Definition at line 50 of file addrconf.h.

#define IN6_ADDR_HSIZE_SHIFT   4

Definition at line 49 of file addrconf.h.

#define IPV6_MAX_ADDRESSES   16

Definition at line 16 of file addrconf.h.

#define MAX_DESYNC_FACTOR   (600)

Definition at line 12 of file addrconf.h.

#define MAX_RTR_SOLICITATIONS   3

Definition at line 4 of file addrconf.h.

#define MIN_VALID_LIFETIME   (2*3600) /* 2 hours */

Definition at line 7 of file addrconf.h.

#define REGEN_MAX_RETRY   (3)

Definition at line 11 of file addrconf.h.

#define RTR_SOLICITATION_INTERVAL   (4*HZ)

Definition at line 5 of file addrconf.h.

#define TEMP_PREFERRED_LIFETIME   (86400)

Definition at line 10 of file addrconf.h.

#define TEMP_VALID_LIFETIME   (7*86400)

Definition at line 9 of file addrconf.h.

Function Documentation

int __ipv6_dev_ac_dec ( struct inet6_dev idev,
const struct in6_addr addr 
)

Definition at line 298 of file anycast.c.

int __ipv6_dev_mc_dec ( struct inet6_dev idev,
const struct in6_addr addr 
)

Definition at line 892 of file mcast.c.

int addrconf_add_ifaddr ( struct net net,
void __user arg 
)

Definition at line 2266 of file addrconf.c.

void addrconf_cleanup ( void  )

Definition at line 4803 of file addrconf.c.

void addrconf_dad_failure ( struct inet6_ifaddr ifp)

Definition at line 1399 of file addrconf.c.

int addrconf_del_ifaddr ( struct net net,
void __user arg 
)

Definition at line 2285 of file addrconf.c.

int addrconf_init ( void  )

Definition at line 4722 of file addrconf.c.

void addrconf_join_solict ( struct net_device dev,
const struct in6_addr addr 
)

Definition at line 1432 of file addrconf.c.

void addrconf_leave_solict ( struct inet6_dev idev,
const struct in6_addr addr 
)

Definition at line 1443 of file addrconf.c.

void addrconf_prefix_rcv ( struct net_device dev,
u8 opt,
int  len,
bool  sllao 
)

Definition at line 1792 of file addrconf.c.

int addrconf_set_dstaddr ( struct net net,
void __user arg 
)

Definition at line 2089 of file addrconf.c.

void in6_dev_finish_destroy ( struct inet6_dev idev)

Definition at line 325 of file addrconf.c.

void inet6_ifa_finish_destroy ( struct inet6_ifaddr ifp)

Definition at line 539 of file addrconf.c.

bool inet6_mc_check ( struct sock sk,
const struct in6_addr mc_addr,
const struct in6_addr src_addr 
)

Definition at line 612 of file mcast.c.

u32 ipv6_addr_label ( struct net net,
const struct in6_addr addr,
int  type,
int  ifindex 
)

Definition at line 185 of file addrlabel.c.

void ipv6_addr_label_cleanup ( void  )

Definition at line 408 of file addrlabel.c.

int ipv6_addr_label_init ( void  )

Definition at line 401 of file addrlabel.c.

void ipv6_addr_label_rtnl_register ( void  )

Definition at line 605 of file addrlabel.c.

bool ipv6_chk_acast_addr ( struct net net,
struct net_device dev,
const struct in6_addr addr 
)

Definition at line 365 of file anycast.c.

int ipv6_chk_addr ( struct net net,
const struct in6_addr addr,
struct net_device dev,
int  strict 
)

Definition at line 1260 of file addrconf.c.

bool ipv6_chk_mcast_addr ( struct net_device dev,
const struct in6_addr group,
const struct in6_addr src_addr 
)

Definition at line 964 of file mcast.c.

int ipv6_chk_prefix ( const struct in6_addr addr,
struct net_device dev 
)

Definition at line 1303 of file addrconf.c.

int ipv6_dev_ac_inc ( struct net_device dev,
const struct in6_addr addr 
)

Definition at line 226 of file anycast.c.

int ipv6_dev_get_saddr ( struct net net,
const struct net_device dev,
const struct in6_addr daddr,
unsigned int  srcprefs,
struct in6_addr saddr 
)

Definition at line 1095 of file addrconf.c.

int ipv6_dev_mc_dec ( struct net_device dev,
const struct in6_addr addr 
)

Definition at line 917 of file mcast.c.

int ipv6_dev_mc_inc ( struct net_device dev,
const struct in6_addr addr 
)

Definition at line 820 of file mcast.c.

struct inet6_ifaddr* ipv6_get_ifaddr ( struct net net,
const struct in6_addr addr,
struct net_device dev,
int  strict 
)
read

Definition at line 1327 of file addrconf.c.

int ipv6_get_lladdr ( struct net_device dev,
struct in6_addr addr,
unsigned char  banned_flags 
)

Definition at line 1222 of file addrconf.c.

bool ipv6_is_mld ( struct sk_buff skb,
int  nexthdr 
)

Definition at line 937 of file mcast.c.

void ipv6_mc_destroy_dev ( struct inet6_dev idev)

Definition at line 2274 of file mcast.c.

void ipv6_mc_down ( struct inet6_dev idev)

Definition at line 2215 of file mcast.c.

void ipv6_mc_init_dev ( struct inet6_dev idev)

Definition at line 2253 of file mcast.c.

void ipv6_mc_remap ( struct inet6_dev idev)

Definition at line 2208 of file mcast.c.

void ipv6_mc_unmap ( struct inet6_dev idev)

Definition at line 2196 of file mcast.c.

void ipv6_mc_up ( struct inet6_dev idev)

Definition at line 2239 of file mcast.c.

int ipv6_rcv_saddr_equal ( const struct sock sk,
const struct sock sk2 
)

Definition at line 54 of file udp.c.

void ipv6_sock_ac_close ( struct sock sk)

Definition at line 184 of file anycast.c.

int ipv6_sock_ac_drop ( struct sock sk,
int  ifindex,
const struct in6_addr addr 
)

Definition at line 148 of file anycast.c.

int ipv6_sock_ac_join ( struct sock sk,
int  ifindex,
const struct in6_addr addr 
)

Definition at line 57 of file anycast.c.

void ipv6_sock_mc_close ( struct sock sk)

Definition at line 281 of file mcast.c.

int ipv6_sock_mc_drop ( struct sock sk,
int  ifindex,
const struct in6_addr addr 
)

Definition at line 207 of file mcast.c.

int ipv6_sock_mc_join ( struct sock sk,
int  ifindex,
const struct in6_addr addr 
)

Definition at line 131 of file mcast.c.

int register_inet6addr_notifier ( struct notifier_block nb)

Definition at line 4700 of file addrconf.c.

int unregister_inet6addr_notifier ( struct notifier_block nb)

Definition at line 4706 of file addrconf.c.