Annotation of embedaddon/arping/src/arping.h, revision 1.1.1.4

1.1.1.2   misho       1: /* arping/src/arping.h
                      2:  *
1.1.1.4 ! misho       3:  *  Copyright (C) 2000-2015 Thomas Habets <thomas@habets.se>
1.1.1.2   misho       4:  *
1.1.1.3   misho       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.
1.1.1.2   misho       9:  *
1.1.1.3   misho      10:  *  This program is distributed in the hope that it will be useful,
1.1.1.2   misho      11:  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
1.1.1.3   misho      12:  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     13:  *  GNU General Public License for more details.
1.1.1.2   misho      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:  */
1.1       misho      19: 
                     20: #if HAVE_STDINT_H
                     21: #include <stdint.h>
                     22: #endif
                     23: 
                     24: #if HAVE_INTTYPES_H
                     25: #include <inttypes.h>
                     26: #endif
                     27: 
1.1.1.4 ! misho      28: /* Forward declarations */
        !            29: struct pcap_pkthdr;
        !            30: 
1.1.1.2   misho      31: extern int verbose;
1.1.1.4 ! misho      32: extern uint32_t srcip;
        !            33: extern uint32_t dstip;
        !            34: extern unsigned int numrecvd;
        !            35: extern unsigned int numsent;
        !            36: 
        !            37: const char *
        !            38: arping_lookupdev(uint32_t srcip, uint32_t dstip, char *ebuf);
1.1.1.2   misho      39: void do_signal_init();
1.1.1.3   misho      40: void do_libnet_init(const char *ifname, int recursive);
1.1.1.2   misho      41: void sigint(int);
                     42: const char *arping_lookupdev_default(uint32_t srcip, uint32_t dstip,
                     43:                                     char *ebuf);
1.1.1.4 ! misho      44: int arping_main(int argc, char **argv);
        !            45: 
        !            46: 
        !            47: void pingip_recv(const char *unused, struct pcap_pkthdr *h, const char* const packet);
        !            48: void pingmac_recv(const char *unused, struct pcap_pkthdr *h, uint8_t *packet);

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>