12 #include <sys/param.h>
20 #include <netinet/in.h>
22 #include <sys/socket.h>
23 #include <sys/types.h>
62 unsigned int id = 0xdd;
67 unsigned short packet_len = 0;
102 while ((m == NULL)&& (counter< 100)) ;
111 if ((t != 0xcf00) && (t != 0x8f01)) {
122 if (
caplen > packet_len) {
146 pcap_header.caplen =
caplen;
147 pcap_header.len = packet_len;
153 callback(user, &pcap_header, dp);
165 while (processed < cnt) ;
224 cp = strrchr(
device,
'/');
227 if (strcmp(cp,
"septel") != 0) {
270 if (
add_dev(devlistp,
"septel",0,
"Intel/Septel device",errbuf) == NULL)
318 "This version of libpcap only supports Septel cards");
u_int pcap_filter(const struct bpf_insn *pc, const u_char *p, u_int wirelen, u_int buflen)
int install_bpf_program(pcap_t *p, struct bpf_program *fp)
int snprintf(char *, size_t, const char *,...)
int gettimeofday(struct timeval *, struct timezone *)
const char * pcap_lib_version(void)
int pcap_platform_finddevs(pcap_if_list_t *devlistp, char *errbuf)
pcap_t * pcap_create_interface(const char *device, char *ebuf)
pcap_if_t * add_dev(pcap_if_list_t *, const char *, bpf_u_int32, const char *, char *)
#define PCAP_VERSION_STRING
#define PCAP_CREATE_COMMON(ebuf, type)
int septel_findalldevs(pcap_if_list_t *devlistp, char *errbuf)
static int septel_inject(pcap_t *handle, const void *buf, int size)
static int septel_setnonblock(pcap_t *p, int nonblock)
struct pcap_septel septel_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user)
static pcap_t * septel_activate(pcap_t *handle)
static int septel_stats(pcap_t *p, struct pcap_stat *ps)
static int septel_getnonblock(pcap_t *p)
pcap_t * septel_create(const char *device, char *ebuf, int *is_ours)
void(* pcap_handler)(u_char *, const struct pcap_pkthdr *, const u_char *)
size_t pcap_strlcpy(char *restrict dst, const char *restrict src, size_t dsize)
struct bpf_insn * bf_insns
activate_op_t activate_op
setnonblock_op_t setnonblock_op
setfilter_op_t setfilter_op
getnonblock_op_t getnonblock_op
set_datalink_op_t set_datalink_op