diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-06-30 21:41:13 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-06-30 21:41:13 +0000 |
commit | 91e1de30d0a321ecffbd76cf84a4b1173877623b (patch) | |
tree | eaf6d4b15869f06e8d1b4f8e97ba5d6e71d813a8 /sys/netinet | |
parent | b06dcbe12fcf1901e5515acc951a8c18ab23e8c6 (diff) |
htonq() is not used, at all
Diffstat (limited to 'sys/netinet')
-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 { |