1PCAP_LOOKUPNET(3PCAP)                                    PCAP_LOOKUPNET(3PCAP)
2
3
4

NAME

6       pcap_lookupnet - find the IPv4 network number and netmask for a device
7

SYNOPSIS

9       #include <pcap/pcap.h>
10
11       char errbuf[PCAP_ERRBUF_SIZE];
12
13       int pcap_lookupnet(const char *device, bpf_u_int32 *netp,
14               bpf_u_int32 *maskp, char *errbuf);
15

DESCRIPTION

17       pcap_lookupnet()  is used to determine the IPv4 network number and mask
18       associated with the network device device.  Both  netp  and  maskp  are
19       bpf_u_int32 pointers.
20

RETURN VALUE

22       pcap_lookupnet()  returns  0  on  success and PCAP_ERROR on failure. If
23       PCAP_ERROR is returned, errbuf is filled in with an  appropriate  error
24       message.    errbuf   is   assumed   to   be   able  to  hold  at  least
25       PCAP_ERRBUF_SIZE chars.
26

SEE ALSO

28       pcap(3PCAP)
29
30
31
32                                 25 July 2018            PCAP_LOOKUPNET(3PCAP)
Impressum