mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 18:11:20 +00:00
ipv6: Introduce ipv6_addr_is_solict_mult() to check Solicited Node Multicast Addresses.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b27b28cb44
commit
ca97a644d7
2 changed files with 9 additions and 5 deletions
|
@ -305,6 +305,14 @@ static inline bool ipv6_addr_is_isatap(const struct in6_addr *addr)
|
|||
return (addr->s6_addr32[2] | htonl(0x02000000)) == htonl(0x02005EFE);
|
||||
}
|
||||
|
||||
static inline bool ipv6_addr_is_solict_mult(const struct in6_addr *addr)
|
||||
{
|
||||
return (addr->s6_addr32[0] == htonl(0xff020000) &&
|
||||
addr->s6_addr32[1] == htonl(0x00000000) &&
|
||||
addr->s6_addr32[2] == htonl(0x00000001) &&
|
||||
addr->s6_addr[12] == 0xff);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
extern int if6_proc_init(void);
|
||||
extern void if6_proc_exit(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue