| 1 | #define _GNU_SOURCE |
| 2 | |
| 3 | #include<pcap.h> |
| 4 | |
| 5 | #define UNUSED(x) (void)(x) |
| 6 | |
| 7 | int |
| 8 | pcap_setfilter(pcap_t *pcap, struct bpf_program *prog) |
| 9 | { |
| 10 | UNUSED(pcap); |
| 11 | UNUSED(prog); |
| 12 | return 0; |
| 13 | } |
| 14 | |
| 15 | int |
| 16 | pcap_dispatch(pcap_t *pcap, int num, pcap_handler handler, u_char *packet) |
| 17 | { |
| 18 | UNUSED(pcap); |
| 19 | UNUSED(num); |
| 20 | UNUSED(handler); |
| 21 | UNUSED(packet); |
| 22 | return 0; |
| 23 | } |
| 24 | |
| 25 | int |
| 26 | pcap_compile(pcap_t *pcap, struct bpf_program *prog, const char *x, int y, |
| 27 | bpf_u_int32 z) |
| 28 | { |
| 29 | UNUSED(pcap); |
| 30 | UNUSED(prog); |
| 31 | UNUSED(x); |
| 32 | UNUSED(y); |
| 33 | UNUSED(z); |
| 34 | return 0; |
| 35 | } |
| 36 | |
| 37 | pcap_t* |
| 38 | pcap_open_live(const char *ifname, int a, int b, int c, char *d) |
| 39 | { |
| 40 | UNUSED(ifname); |
| 41 | UNUSED(a); |
| 42 | UNUSED(b); |
| 43 | UNUSED(c); |
| 44 | UNUSED(d); |
| 45 | return NULL; |
| 46 | } |
| 47 | |
| 48 | int |
| 49 | pcap_setnonblock(pcap_t *pcap, int a, char *b) |
| 50 | { |
| 51 | UNUSED(pcap); |
| 52 | UNUSED(a); |
| 53 | UNUSED(b); |
| 54 | return 0; |
| 55 | } |
| 56 | |
| 57 | int |
| 58 | pcap_get_selectable_fd(pcap_t *pcap) |
| 59 | { |
| 60 | UNUSED(pcap); |
| 61 | return 0; |
| 62 | } |
| 63 | |
| 64 | char* |
| 65 | pcap_lookupdev(char *ifname) |
| 66 | { |
| 67 | UNUSED(ifname); |
| 68 | return 0; |
| 69 | } |
| 70 | /* ---- Emacs Variables ---- |
| 71 | * Local Variables: |
| 72 | * c-basic-offset: 8 |
| 73 | * indent-tabs-mode: nil |
| 74 | * End: |
| 75 | */ |