ddn.lib.pcap.namedb

Name-to-address resolution helpers for libpcap.

This module provides functions for resolving hostnames, ports, and protocols using libpcap's internal databases.

Authors

Dejan Lekić

License

BSD-3-Clause

Functions 11

fnpcap_etherent * nextEtherent(FILE * fp)Returns the next entry from the ethers file.
fnubyte * etherHostton(string name)Resolves an Ethernet host name to its address.
fnubyte * etherAton(string s)Converts an ASCII Ethernet address to its numeric form.
fnint nametoport(string name, out int port, out int proto)Resolves a service name to its port number and protocol.
fnint nametoportrange(string name, out int portLow, out int portHigh, out int proto)Resolves a service name to its port range and protocol.
fnint nametoproto(string name)Resolves a protocol name to its number.
fnint nametoeproto(string name)Resolves an Ethernet protocol name to its number.
fnint nametollc(string name)Resolves an LLC protocol name to its number.
fnbpf_u_int32 * * nametoaddr(string name)Resolves a host name to a list of IPv4 addresses.
fnaddrinfo * nametoaddrinfo(string name)Resolves a host name to an `addrinfo` structure.
fnbpf_u_int32 nametonetaddr(string name)Resolves a network name to its network address.