mirror of
https://github.com/soypat/lneto.git
synced 2026-08-16 21:03:25 +00:00
gofmt: ran gofmt because noticed weird diffs in last commit, seemed OK though
This commit is contained in:
@@ -259,8 +259,8 @@ func (d *dhcpInterceptor) buildARPReply(request []byte) {
|
||||
|
||||
// ARP reply.
|
||||
afrm, _ := arp.NewFrame(buf[sizeEthernet:])
|
||||
afrm.SetHardware(1, 6) // Ethernet, 6-byte addresses
|
||||
afrm.SetProtocol(ethernet.TypeIPv4, 4) // IPv4, 4-byte addresses
|
||||
afrm.SetHardware(1, 6) // Ethernet, 6-byte addresses
|
||||
afrm.SetProtocol(ethernet.TypeIPv4, 4) // IPv4, 4-byte addresses
|
||||
afrm.SetOperation(arp.OpReply)
|
||||
replySndrHW, replySndrIP := afrm.Sender4()
|
||||
*replySndrHW = d.svMAC
|
||||
|
||||
Reference in New Issue
Block a user