File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / arping / src / arping.h
Revision 1.1.1.4 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Mar 16 23:40:57 2021 UTC (3 years, 3 months ago) by misho
Branches: arping, MAIN
CVS tags: v2_21, HEAD
arping 2.21

    1: /* arping/src/arping.h
    2:  *
    3:  *  Copyright (C) 2000-2015 Thomas Habets <thomas@habets.se>
    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_H
   21: #include <stdint.h>
   22: #endif
   23: 
   24: #if HAVE_INTTYPES_H
   25: #include <inttypes.h>
   26: #endif
   27: 
   28: /* Forward declarations */
   29: struct pcap_pkthdr;
   30: 
   31: extern int verbose;
   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);
   39: void do_signal_init();
   40: void do_libnet_init(const char *ifname, int recursive);
   41: void sigint(int);
   42: const char *arping_lookupdev_default(uint32_t srcip, uint32_t dstip,
   43: 				     char *ebuf);
   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>