diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-04-08 01:22:57 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-04-08 08:23:34 +0000 |
commit | d3df2e588bc6febb5b2d414ad040ede903ef4c85 (patch) | |
tree | 994425e2302da966d623a4a3b68b5c63d62b8758 /epan/dissectors/packet-lbtrm.c | |
parent | abbdcd875048e9182ea8f3674c0a452e64095125 (diff) |
On UN*X, <arpa/inet.h> suffices for struct in_addr and in_addr_t.
So don't pull in <netinet/in.h>. Also, avoid <sys/types.h> in
packet-dcom.c.
While we're at it, do *not* assume that pinfo->src or pinfo->dst are
IPv4 addresses.
Change-Id: I5fc8e859780a8d863aaf6e90a21a7039cabae0e6
Reviewed-on: https://code.wireshark.org/review/1006
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-lbtrm.c')
-rw-r--r-- | epan/dissectors/packet-lbtrm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-lbtrm.c b/epan/dissectors/packet-lbtrm.c index f712716f4b..7ff060ad5a 100644 --- a/epan/dissectors/packet-lbtrm.c +++ b/epan/dissectors/packet-lbtrm.c @@ -23,10 +23,8 @@ */ #include "config.h" -#if HAVE_NETINET_IN_H - #include <netinet/in.h> -#else -typedef unsigned int in_addr_t; +#ifdef HAVE_ARPA_INET_H + #include <arpa/inet.h> #endif #if HAVE_WINSOCK2_H #include <winsock2.h> |