diff options
| -rw-r--r-- | addrtoname.c | 7 | ||||
| -rw-r--r-- | netdissect.h | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/addrtoname.c b/addrtoname.c index 9d5c88cc..b08253a3 100644 --- a/addrtoname.c +++ b/addrtoname.c @@ -33,6 +33,13 @@ #include <netdissect-stdinc.h> +#ifndef NTOHL +#define NTOHL(x) (x) = ntohl(x) +#define NTOHS(x) (x) = ntohs(x) +#define HTONL(x) (x) = htonl(x) +#define HTONS(x) (x) = htons(x) +#endif + #ifdef USE_ETHER_NTOHOST #ifdef HAVE_NETINET_IF_ETHER_H struct mbuf; /* Squelch compiler warnings on some platforms for */ diff --git a/netdissect.h b/netdissect.h index eaed8ac7..212ee15b 100644 --- a/netdissect.h +++ b/netdissect.h @@ -286,13 +286,6 @@ struct netdissect_options { #define ESRC(ep) ((ep)->ether_shost) #define EDST(ep) ((ep)->ether_dhost) -#ifndef NTOHL -#define NTOHL(x) (x) = ntohl(x) -#define NTOHS(x) (x) = ntohs(x) -#define HTONL(x) (x) = htonl(x) -#define HTONS(x) (x) = htons(x) -#endif - /* * True if "l" bytes of "var" were captured. * |
