| 1 | /* arping/src/arping.h |
| 2 | * |
| 3 | * Copyright (C) 2000-2015 Thomas Habets <[email protected]> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License along |
| 16 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 18 | */ |
| 19 | |
| 20 | #if HAVE_STDINT_Hcxx . . $ `config.h:122:9`! |
| 21 | #include <stdint.h> |
| 22 | #endif |
| 23 | |
| 24 | #if HAVE_STDDEF_Hcxx . . $ `config.h:119:9`! |
| 25 | #include <stddef.h> |
| 26 | #endif |
| 27 | |
| 28 | #if HAVE_INTTYPES_Hcxx . . $ `config.h:44:9`! |
| 29 | #include <inttypes.h> |
| 30 | #endif |
| 31 | |
| 32 | #if defined(HAVE_SECCOMP_Hcxx . . $ `config.h:113:9`!) && defined(HAVE_LIBSECCOMPcxx . . $ `config.h:74:9`!) |
| 33 | #define USE_SECCOMPcxx . . $ `src/arping.h:33:9`! 1 |
| 34 | #else |
| 35 | #define USE_SECCOMPcxx . . $ `src/arping.h:35:9`! 0 |
| 36 | #endif |
| 37 | |
| 38 | /* Forward declarations */ |
| 39 | struct pcap_pkthdrcxx . . $ pcap_pkthdr#; |
| 40 | |
| 41 | extern int verbosecxx . . $ verbose.; |
| 42 | extern uint32_tcxx . . $ uint32_t# srcipcxx . . $ srcip.; |
| 43 | extern uint32_tcxx . . $ uint32_t# dstipcxx . . $ dstip.; |
| 44 | extern unsigned int numrecvdcxx . . $ numrecvd.; |
| 45 | extern unsigned int numsentcxx . . $ numsent.; |
| 46 | |
| 47 | void xsnprintfcxx . . $ xsnprintf(ecdd28f83a80e0a0).(char *buf, size_tcxx . . $ size_t# size, const char* fmt, ...) __attribute__ ((format (printf, 3, 4))); |
| 48 | void drop_seccompcxx . . $ drop_seccomp(d4f767463ce0a6b3).(int libnet_fd); |
| 49 | const char * |
| 50 | arping_lookupdevcxx . . $ arping_lookupdev(ace80522166ec2ef).(uint32_tcxx . . $ uint32_t# srcip, uint32_tcxx . . $ uint32_t# dstip, char *ebuf); |
| 51 | void do_signal_initcxx . . $ do_signal_init(49f6e7a06ebc5aa8).(void); |
| 52 | void do_libnet_initcxx . . $ do_libnet_init(34d26762b42c433a).(const char *ifname, int recursive); |
| 53 | void sigintcxx . . $ sigint(d4f767463ce0a6b3).(int); |
| 54 | const char *arping_lookupdev_defaultcxx . . $ arping_lookupdev_default(ace80522166ec2ef).(uint32_tcxx . . $ uint32_t# srcip, uint32_tcxx . . $ uint32_t# dstip, |
| 55 | char *ebuf); |
| 56 | int arping_maincxx . . $ arping_main(afcd3168fc1188a4).(int argc, char **argv); |
| 57 | int is_mac_addrcxx . . $ is_mac_addr(5c4306d8553b3696).(const char *p); |
| 58 | int get_mac_addrcxx . . $ get_mac_addr(88bb43cd34e56762).(const char *in, uint8_tcxx . . $ uint8_t# *out); |
| 59 | |
| 60 | |
| 61 | void pingip_recvcxx . . $ pingip_recv(b10d88091b04c79).(unsigned char *unused, const struct pcap_pkthdrcxx . . $ pcap_pkthdr# *h, const unsigned char* const packet); |
| 62 | void pingmac_recvcxx . . $ pingmac_recv(b10d88091b04c79).(unsigned char *unused, const struct pcap_pkthdrcxx . . $ pcap_pkthdr# *h, const uint8_tcxx . . $ uint8_t# *packet); |