1 | 1 | | #ifndef PCAP_H |
2 | 2 | | #define PCAP_H |
3 | | - | #endif |
4 | 3 | | |
5 | 4 | | #include <pcap/pcap.h> |
6 | 5 | | |
| skipped 53 lines |
60 | 59 | | unsigned short udph_chksum; |
61 | 60 | | }; |
62 | 61 | | |
63 | | - | void got_packet_udp(unsigned char *args, const struct pcap_pkthdr *header, const unsigned char *packet) __attribute__((visibility("hidden"))); |
64 | | - | static int (*old_pcap_loop)(pcap_t *p, int cnt, pcap_handler callback, unsigned char *user); |
65 | | - | static void (*old_callback)(unsigned char *args, const struct pcap_pkthdr *header, const unsigned char *packet); |
| 62 | + | void got_packet(unsigned char *args, const struct pcap_pkthdr *header, const unsigned char *packet) __attribute__((visibility("hidden"))); |
| 63 | + | |
| 64 | + | #endif |
66 | 65 | | |