libpcap
1.10.1
About: libpcap is a packet filter library used by tools like tcpdump.
![]() ![]() |
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <net/if.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ifaddrs.h>
#include "pcap-int.h"
Go to the source code of this file.
Macros | |
#define | SA_LEN(addr) (sizeof (struct sockaddr)) |
Functions | |
int | pcap_findalldevs_interfaces (pcap_if_list_t *devlistp, char *errbuf, int(*check_usable)(const char *), get_if_flags_func get_flags_func) |
#define SA_LEN | ( | addr | ) | (sizeof (struct sockaddr)) |
Definition at line 134 of file fad-getad.c.
int pcap_findalldevs_interfaces | ( | pcap_if_list_t * | devlistp, |
char * | errbuf, | ||
int(*)(const char *) | check_usable, | ||
get_if_flags_func | get_flags_func | ||
) |
Definition at line 146 of file fad-getad.c.
References add_addr_to_if(), errno, PCAP_ERRBUF_SIZE, pcap_fmt_errmsg_for_errno(), PCAP_ISDIGIT, and SA_LEN.
Referenced by pcap_platform_finddevs().