File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / arping / src / unix.c
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Oct 18 13:16:10 2016 UTC (7 years, 8 months ago) by misho
Branches: arping, MAIN
CVS tags: v2_15_cross, v2_15, HEAD
arping v2.15

    1: /* arping/src/unix.c
    2:  *
    3:  *  Copyright (C) 2000-2011 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: #if HAVE_CONFIG_H
   20: #include "config.h"
   21: #endif
   22: 
   23: #include <signal.h>
   24: 
   25: #include <pcap.h>
   26: 
   27: #include "arping.h"
   28: 
   29: /**
   30:  * Fall back on getting device name from pcap.
   31:  */
   32: const char *
   33: arping_lookupdev_default(uint32_t srcip, uint32_t dstip, char *ebuf)
   34: {
   35:         return pcap_lookupdev(ebuf);
   36: }
   37: 
   38: /**
   39:  *
   40:  */
   41: void
   42: do_signal_init()
   43: {
   44:         signal(SIGINT, sigint);
   45: }
   46: /* ---- Emacs Variables ----
   47:  * Local Variables:
   48:  * c-basic-offset: 8
   49:  * indent-tabs-mode: nil
   50:  * End:
   51:  */

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