mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Implement the ip_eth_mc_map() function in the LinuxKPI.
MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
1833cea27e
commit
986e3bed8b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334993
@ -57,6 +57,20 @@ inet_get_local_port_range(struct vnet *vnet, int *low, int *high)
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void
|
||||
ip_eth_mc_map(uint32_t addr, char *buf)
|
||||
{
|
||||
|
||||
addr = ntohl(addr);
|
||||
|
||||
buf[0] = 0x01;
|
||||
buf[1] = 0x00;
|
||||
buf[2] = 0x5e;
|
||||
buf[3] = (addr >> 16) & 0x7f;
|
||||
buf[4] = (addr >> 8) & 0xff;
|
||||
buf[5] = (addr & 0xff);
|
||||
}
|
||||
|
||||
static inline void
|
||||
ip_ib_mc_map(uint32_t addr, const unsigned char *bcast, char *buf)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user