Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/burpheart/GoNetCapture
/ Htons
Function
Htons
cap_linux.go:18–20 ·
view source on GitHub ↗
(v uint16)
Source
from the content-addressed store, hash-verified
16
)
17
18
func
Htons(v uint16) int {
19
return
int((v << 8) | (v >> 8))
20
}
21
func
cappacp() {
22
23
flagHEX := flag.Bool(
"x"
, false,
"only print hex dump"
)
Callers
1
cappacp
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected