We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eacd9e0 commit 46e3659Copy full SHA for 46e3659
ipmanager/basicConfigurer.go
@@ -53,7 +53,7 @@ const (
53
IPv4AddressSize = 4
54
)
55
56
-// arpSendGratuitous is a function that sends gratuitous ARP requests
+// createGratuitousARP prepares a packet with a gratuitous ARP request
57
func (c *BasicConfigurer) createGratuitousARP() ([]byte, error) {
58
// Create the Ethernet layer
59
ethLayer := &layers.Ethernet{
ipmanager/basicConfigurer_linux.go
@@ -6,6 +6,7 @@ import (
6
"syscall"
7
8
9
+// htons converts uint16 to network byte order
10
func htons(i uint16) uint16 {
11
return (i<<8)&0xff00 | i>>8
12
}
0 commit comments