19 #ifndef CAPTURE_PACKET_H
20 #define CAPTURE_PACKET_H
22 #include <netinet/in.h>
23 #include <netinet/ip6.h>
struct ip_packet * ip
Definition: ids_send.c:270
struct ip * capture_next_packet(int bpf, int timeout, int *sz)
Definition: capture_packet.c:85
int init_v6_capture_device(struct in6_addr src, struct in6_addr dst, char *filter)
Definition: capture_packet.c:144
struct ip6_hdr * capture_next_v6_packet(int bpf, int timeout, int *sz)
Definition: capture_packet.c:188
int init_capture_device(struct in_addr src, struct in_addr dst, char *filter)
Set up the pcap filter, and select the correct interface.
Definition: capture_packet.c:41