mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 02:21:15 +00:00
[IPV6]: Define constants for link-local multicast addresses.
- Define link-local all-node / all-router multicast addresses. - Remove ipv6_addr_all_nodes() and ipv6_addr_all_routers(). Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
This commit is contained in:
parent
9acd9f3ae9
commit
f3ee4010e8
5 changed files with 24 additions and 48 deletions
|
@ -205,17 +205,6 @@ static inline void addrconf_addr_solict_mult(const struct in6_addr *addr,
|
|||
htonl(0xFF000000) | addr->s6_addr32[3]);
|
||||
}
|
||||
|
||||
|
||||
static inline void ipv6_addr_all_nodes(struct in6_addr *addr)
|
||||
{
|
||||
ipv6_addr_set(addr, htonl(0xFF020000), 0, 0, htonl(0x1));
|
||||
}
|
||||
|
||||
static inline void ipv6_addr_all_routers(struct in6_addr *addr)
|
||||
{
|
||||
ipv6_addr_set(addr, htonl(0xFF020000), 0, 0, htonl(0x2));
|
||||
}
|
||||
|
||||
static inline int ipv6_addr_is_multicast(const struct in6_addr *addr)
|
||||
{
|
||||
return (addr->s6_addr32[0] & htonl(0xFF000000)) == htonl(0xFF000000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue