diff options
author | guy <guy> | 2000-09-23 08:26:30 +0000 |
---|---|---|
committer | guy <guy> | 2000-09-23 08:26:30 +0000 |
commit | 7b50febe28e54e076a9917164eeddec4bc7a170e (patch) | |
tree | 7a4ac443a00f2a7982234c9881c3706bb8e6e955 /print-cnfp.c | |
parent | e89409254248af64db721ede4babbe9fd1753f6c (diff) | |
download | tcpdump-7b50febe28e54e076a9917164eeddec4bc7a170e.tar.gz |
Add "tcp.h" and "udp.h" headers, to declare the TCP and UDP stuff needed
by dissectors, and have dissectors include them rather than
<netinet/udp.h>, <netinet/udp_var.h>, or <netinet/tcp.h>, if they
actually need that stuff.
Remove all unnecessary includes of <netinet/udp*.h> or <netinet/tcp*.h>
files.
Diffstat (limited to 'print-cnfp.c')
-rw-r--r-- | print-cnfp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/print-cnfp.c b/print-cnfp.c index 94194d05..cba4fc04 100644 --- a/print-cnfp.c +++ b/print-cnfp.c @@ -34,7 +34,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-cnfp.c,v 1.5 2000-05-15 00:37:34 assar Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-cnfp.c,v 1.6 2000-09-23 08:26:32 guy Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -47,7 +47,6 @@ static const char rcsid[] = #include <netdb.h> #include <netinet/in.h> -#include <netinet/tcp.h> #include <arpa/inet.h> @@ -56,6 +55,8 @@ static const char rcsid[] = #include "interface.h" +#include "tcp.h" + struct nfhdr { u_int32_t ver_cnt; /* version [15], and # of records */ u_int32_t msys_uptime; |