MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / AddressFromIP

Function AddressFromIP

pkg/network/address.go:37–41  ·  view source on GitHub ↗

AddressFromIP constructs the address from the IP address.

(ip net.IP)

Source from the content-addressed store, hash-verified

35
36// AddressFromIP constructs the address from the IP address.
37func AddressFromIP(ip net.IP) Address {
38 var addr Address
39 copy(addr[:], ip)
40 return addr
41}

Callers 5

resolveNamesForIPMethod · 0.92
TestLookupAddrFunction · 0.85
TestLookupAddrExpirationFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestLookupAddrFunction · 0.68
TestLookupAddrExpirationFunction · 0.68