diff options
author | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-08-02 23:36:07 +0000 |
---|---|---|
committer | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-08-02 23:36:07 +0000 |
commit | 4ad4caac3465466d917054d2f911b18ba27b4fe0 (patch) | |
tree | 21967e4c27ac5e02aa39319022dd2858682fc5f4 /packet-ip.c | |
parent | 14e1dba11b93d23bda70c030b0f4dbcc8ea5c4a4 (diff) |
Replace the types from sys/types.h and netinet/in.h by their glib.h
equivalents for the toplevel directory. The removal of winsock2.h will
hopefully not cause any problems under MSVC++, as those files using
struct timeval still include wtap.h, which still includes winsock2.h.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5932 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ip.c')
-rw-r--r-- | packet-ip.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/packet-ip.c b/packet-ip.c index 2e44e2e8bc..62146c9d3f 100644 --- a/packet-ip.c +++ b/packet-ip.c @@ -1,7 +1,7 @@ /* packet-ip.c * Routines for IP and miscellaneous IP protocol packet disassembly * - * $Id: packet-ip.c,v 1.171 2002/07/15 20:54:45 guy Exp $ + * $Id: packet-ip.c,v 1.172 2002/08/02 23:35:51 jmayer Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -26,14 +26,6 @@ # include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -# include <sys/types.h> -#endif - -#ifdef HAVE_NETINET_IN_H -# include <netinet/in.h> -#endif - #include <stdio.h> #include <string.h> #include <glib.h> @@ -347,7 +339,7 @@ ip_defragment_init(void) } void -capture_ip(const u_char *pd, int offset, int len, packet_counts *ld) { +capture_ip(const guchar *pd, int offset, int len, packet_counts *ld) { if (!BYTES_ARE_IN_FRAME(offset, len, IPH_MIN_LEN)) { ld->other++; return; @@ -658,7 +650,7 @@ dissect_ip_tcp_options(tvbuff_t *tvb, int offset, guint length, const ip_tcp_opt *opttab, int nopts, int eol, packet_info *pinfo, proto_tree *opt_tree) { - u_char opt; + guchar opt; const ip_tcp_opt *optp; opt_len_type len_type; unsigned int optlen; |