Annotation of embedaddon/arping/src/unix.c, revision 1.1.1.2

1.1       misho       1: /* arping/src/unix.c
                      2:  *
                      3:  *  Copyright (C) 2000-2011 Thomas Habets <thomas@habets.se>
                      4:  *
1.1.1.2 ! 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       misho       9:  *
1.1.1.2 ! misho      10:  *  This program is distributed in the hope that it will be useful,
1.1       misho      11:  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
1.1.1.2 ! misho      12:  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !            13:  *  GNU General Public License for more details.
1.1       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:  */
                     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>