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

1.1       misho       1: /* arping/src/unix.c
                      2:  *
                      3:  *  Copyright (C) 2000-2011 Thomas Habets <thomas@habets.se>
                      4:  *
                      5:  *  This library is free software; you can redistribute it and/or
                      6:  *  modify it under the terms of the GNU General Public
                      7:  *  License as published by the Free Software Foundation; either
                      8:  *  version 2 of the License, or (at your option) any later version.
                      9:  *
                     10:  *  This library 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 GNU
                     13:  *  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>