addrconf.h (9acd9f3ae92d0dc0ca7504fb48c1040e8bbc39fe) | addrconf.h (f3ee4010e84452aa133e5163e6cfabc52b194e94) |
---|---|
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 --- 191 unchanged lines hidden (view full) --- 200 struct in6_addr *solicited) 201{ 202 ipv6_addr_set(solicited, 203 htonl(0xFF020000), 0, 204 htonl(0x1), 205 htonl(0xFF000000) | addr->s6_addr32[3]); 206} 207 | 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 --- 191 unchanged lines hidden (view full) --- 200 struct in6_addr *solicited) 201{ 202 ipv6_addr_set(solicited, 203 htonl(0xFF020000), 0, 204 htonl(0x1), 205 htonl(0xFF000000) | addr->s6_addr32[3]); 206} 207 |
208 209static inline void ipv6_addr_all_nodes(struct in6_addr *addr) 210{ 211 ipv6_addr_set(addr, htonl(0xFF020000), 0, 0, htonl(0x1)); 212} 213 214static inline void ipv6_addr_all_routers(struct in6_addr *addr) 215{ 216 ipv6_addr_set(addr, htonl(0xFF020000), 0, 0, htonl(0x2)); 217} 218 | |
219static inline int ipv6_addr_is_multicast(const struct in6_addr *addr) 220{ 221 return (addr->s6_addr32[0] & htonl(0xFF000000)) == htonl(0xFF000000); 222} 223 224static inline int ipv6_addr_is_ll_all_nodes(const struct in6_addr *addr) 225{ 226 return (((addr->s6_addr32[0] ^ htonl(0xff020000)) | --- 25 unchanged lines hidden --- | 208static inline int ipv6_addr_is_multicast(const struct in6_addr *addr) 209{ 210 return (addr->s6_addr32[0] & htonl(0xFF000000)) == htonl(0xFF000000); 211} 212 213static inline int ipv6_addr_is_ll_all_nodes(const struct in6_addr *addr) 214{ 215 return (((addr->s6_addr32[0] ^ htonl(0xff020000)) | --- 25 unchanged lines hidden --- |