diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_ipsp.h | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/sys/netinet/ip_ipsp.h b/sys/netinet/ip_ipsp.h index 9b35c4fc5b9..9f0cba75b4f 100644 --- a/sys/netinet/ip_ipsp.h +++ b/sys/netinet/ip_ipsp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipsp.h,v 1.133 2006/04/27 02:19:32 tedu Exp $ */ +/* $OpenBSD: ip_ipsp.h,v 1.134 2006/06/30 21:41:12 deraadt Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr), @@ -414,28 +414,6 @@ struct ipsecinit { #define IPSEC_ZEROES_SIZE 256 /* Larger than an IP6 extension hdr. */ -#if _BYTE_ORDER == _LITTLE_ENDIAN -static __inline u_int64_t -htonq(u_int64_t q) -{ - u_int32_t u, l; - u = q >> 32; - l = (u_int32_t) q; - - return htonl(u) | ((u_int64_t)htonl(l) << 32); -} - -#define ntohq(_x) htonq(_x) - -#elif _BYTE_ORDER == _BIG_ENDIAN - -#define htonq(_x) (_x) -#define ntohq(_x) htonq(_x) - -#else -#error "Please fix <machine/endian.h>" -#endif - #ifdef _KERNEL struct xformsw { |