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

Method resolveNamesForIP

pkg/filter/accessor_windows.go:977–986  ·  view source on GitHub ↗
(ip net.IP)

Source from the content-addressed store, hash-verified

975}
976
977func (n *networkAccessor) resolveNamesForIP(ip net.IP) ([]string, error) {
978 if n.reverseDNS == nil {
979 return nil, nil
980 }
981 names, err := n.reverseDNS.Add(network.AddressFromIP(ip))
982 if err != nil {
983 return nil, err
984 }
985 return names, nil
986}
987
988// handleAccessor extracts handle event values.
989type handleAccessor struct{}

Callers 1

GetMethod · 0.95

Calls 2

AddressFromIPFunction · 0.92
AddMethod · 0.65

Tested by

no test coverage detected