mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-21 20:45:33 +03:00
dhcpd: Send correct link-layer address length
This commit is contained in:
parent
fceaed3563
commit
e9e353dd32
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ func createICMPv6RAPacket(params icmpv6RA) (data []byte, err error) {
|
|||
// Option=Source link-layer address:
|
||||
|
||||
data[i] = 1 // Type
|
||||
data[i+1] = 1 // Length
|
||||
data[i+1] = byte((len(lla) + 2) / 8) // Length of this entire option in bytes
|
||||
i += 2
|
||||
|
||||
copy(data[i:], lla) // Link-Layer Address[8/24]
|
||||
|
|
Loading…
Reference in a new issue