Add link-layer address option in RA even for IFT_L2VLAN and IFT_BRIDGE.
Reported by: philip MFC after: 3 days
This commit is contained in:
parent
161ab37d24
commit
374d225e54
@ -114,6 +114,8 @@ lladdropt_length(struct sockaddr_dl *sdl)
|
||||
{
|
||||
switch (sdl->sdl_type) {
|
||||
case IFT_ETHER:
|
||||
case IFT_L2VLAN:
|
||||
case IFT_BRIDGE:
|
||||
return (ROUNDUP8(ETHER_ADDR_LEN + 2));
|
||||
default:
|
||||
return (0);
|
||||
@ -129,6 +131,8 @@ lladdropt_fill(struct sockaddr_dl *sdl, struct nd_opt_hdr *ndopt)
|
||||
|
||||
switch (sdl->sdl_type) {
|
||||
case IFT_ETHER:
|
||||
case IFT_L2VLAN:
|
||||
case IFT_BRIDGE:
|
||||
ndopt->nd_opt_len = (ROUNDUP8(ETHER_ADDR_LEN + 2)) >> 3;
|
||||
addr = (char *)(ndopt + 1);
|
||||
memcpy(addr, LLADDR(sdl), ETHER_ADDR_LEN);
|
||||
|
Loading…
x
Reference in New Issue
Block a user