addrconf.h (f2cbb4f01936a3e4225692e03b084b78c56d386d) | addrconf.h (20380731bc2897f2952ae055420972ded4cd786e) |
---|---|
1#ifndef _ADDRCONF_H 2#define _ADDRCONF_H 3 4#define RETRANS_TIMER HZ 5 6#define MAX_RTR_SOLICITATIONS 3 7#define RTR_SOLICITATION_INTERVAL (4*HZ) 8 --- 31 unchanged lines hidden (view full) --- 40 __u32 reserved2; 41 42 struct in6_addr prefix; 43}; 44 45 46#ifdef __KERNEL__ 47 | 1#ifndef _ADDRCONF_H 2#define _ADDRCONF_H 3 4#define RETRANS_TIMER HZ 5 6#define MAX_RTR_SOLICITATIONS 3 7#define RTR_SOLICITATION_INTERVAL (4*HZ) 8 --- 31 unchanged lines hidden (view full) --- 40 __u32 reserved2; 41 42 struct in6_addr prefix; 43}; 44 45 46#ifdef __KERNEL__ 47 |
48#include <linux/config.h> |
|
48#include <linux/netdevice.h> 49#include <net/if_inet6.h> 50#include <net/ipv6.h> 51 52#define IN6_ADDR_HSIZE 16 53 54extern int addrconf_init(void); 55extern void addrconf_cleanup(void); --- 177 unchanged lines hidden (view full) --- 233static inline int ipv6_addr_is_ll_all_routers(const struct in6_addr *addr) 234{ 235 return (addr->s6_addr32[0] == htonl(0xff020000) && 236 addr->s6_addr32[1] == 0 && 237 addr->s6_addr32[2] == 0 && 238 addr->s6_addr32[3] == htonl(0x00000002)); 239} 240 | 49#include <linux/netdevice.h> 50#include <net/if_inet6.h> 51#include <net/ipv6.h> 52 53#define IN6_ADDR_HSIZE 16 54 55extern int addrconf_init(void); 56extern void addrconf_cleanup(void); --- 177 unchanged lines hidden (view full) --- 234static inline int ipv6_addr_is_ll_all_routers(const struct in6_addr *addr) 235{ 236 return (addr->s6_addr32[0] == htonl(0xff020000) && 237 addr->s6_addr32[1] == 0 && 238 addr->s6_addr32[2] == 0 && 239 addr->s6_addr32[3] == htonl(0x00000002)); 240} 241 |
242#ifdef CONFIG_PROC_FS 243extern int if6_proc_init(void); 244extern void if6_proc_exit(void); |
|
241#endif | 245#endif |
246 |
|
242#endif | 247#endif |
248#endif |
|