Skip to content

Commit

Permalink
Revert "remove Len and MacLen from Address"
Browse files Browse the repository at this point in the history
This reverts commit 35a7ee2
  • Loading branch information
sdghchj committed Jun 19, 2020
1 parent 680b70d commit 09cadb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datalink/udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,7 @@ func UDPToAddress(n *net.UDPAddr) *types.Address {
// Encode port
a.Mac[net.IPv4len+0] = uint8(p >> 8)
a.Mac[net.IPv4len+1] = uint8(p & 0x00FF)

a.MacLen = uint8(length)
return a
}

0 comments on commit 09cadb2

Please sign in to comment.