Deleted Added
full compact
addrtoname.c (98527) addrtoname.c (111729)
1/*
2 * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and

--- 7 unchanged lines hidden (view full) ---

16 * written permission.
17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 *
21 * Internet, ethernet, port, and protocol string to address
22 * and address to string conversion routines
23 *
1/*
2 * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and

--- 7 unchanged lines hidden (view full) ---

16 * written permission.
17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 *
21 * Internet, ethernet, port, and protocol string to address
22 * and address to string conversion routines
23 *
24 * $FreeBSD: head/contrib/tcpdump/addrtoname.c 98527 2002-06-21 00:49:02Z fenner $
24 * $FreeBSD: head/contrib/tcpdump/addrtoname.c 111729 2003-03-02 08:25:48Z fenner $
25 */
26#ifndef lint
27static const char rcsid[] =
25 */
26#ifndef lint
27static const char rcsid[] =
28 "@(#) $Header: /tcpdump/master/tcpdump/addrtoname.c,v 1.83 2001/09/17 21:57:50 fenner Exp $ (LBL)";
28 "@(#) $Header: /tcpdump/master/tcpdump/addrtoname.c,v 1.83.4.1 2002/06/02 00:08:07 guy Exp $ (LBL)";
29#endif
30
31#ifdef HAVE_CONFIG_H
32#include "config.h"
33#endif
34
35#include <sys/types.h>
36#include <sys/socket.h>
37#include <sys/time.h>
38
29#endif
30
31#ifdef HAVE_CONFIG_H
32#include "config.h"
33#endif
34
35#include <sys/types.h>
36#include <sys/socket.h>
37#include <sys/time.h>
38
39struct mbuf;
40struct rtentry;
41#include <net/if.h>
42
43#include <netinet/in.h>
39#include <netinet/in.h>
40
41#ifdef USE_ETHER_NTOHOST
44#ifdef HAVE_NETINET_IF_ETHER_H
42#ifdef HAVE_NETINET_IF_ETHER_H
43struct mbuf; /* Squelch compiler warnings on some platforms for */
44struct rtentry; /* declarations in <net/if.h> */
45#include <net/if.h> /* for "struct ifnet" in "struct arpcom" on Solaris */
45#include <netinet/if_ether.h>
46#include <netinet/if_ether.h>
46#endif
47#endif /* HAVE_NETINET_IF_ETHER_H */
48#endif /* USE_ETHER_NTOHOST */
47
48#include <arpa/inet.h>
49
50#include <ctype.h>
51#include <netdb.h>
52#include <pcap.h>
53#include <pcap-namedb.h>
54#include <signal.h>

--- 868 unchanged lines hidden ---
49
50#include <arpa/inet.h>
51
52#include <ctype.h>
53#include <netdb.h>
54#include <pcap.h>
55#include <pcap-namedb.h>
56#include <signal.h>

--- 868 unchanged lines hidden ---