summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in.h
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2013-10-23 15:12:42 +0000
committermpi <mpi@openbsd.org>2013-10-23 15:12:42 +0000
commit48a59fe3de1bf0741c6557eb9f5dcbf9d9c5b9a3 (patch)
tree980637fc8c10e433bdde3004b27deb7a8c26846d /sys/netinet/in.h
parentNo need to expose twice in_socktrim(), it is only used in one file. (diff)
downloadwireguard-openbsd-48a59fe3de1bf0741c6557eb9f5dcbf9d9c5b9a3.tar.xz
wireguard-openbsd-48a59fe3de1bf0741c6557eb9f5dcbf9d9c5b9a3.zip
Remove the number of in_var.h inclusions by moving some functions and
global variables to in.h. ok mikeb@, deraadt@
Diffstat (limited to 'sys/netinet/in.h')
-rw-r--r--sys/netinet/in.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h
index 0598ed96fc6..42b2728e8b9 100644
--- a/sys/netinet/in.h
+++ b/sys/netinet/in.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in.h,v 1.99 2013/10/23 13:39:35 mpi Exp $ */
+/* $OpenBSD: in.h,v 1.100 2013/10/23 15:12:42 mpi Exp $ */
/* $NetBSD: in.h,v 1.20 1996/02/13 23:41:47 christos Exp $ */
/*
@@ -824,6 +824,8 @@ in_cksum_addword(u_int16_t a, u_int16_t b)
return (sum);
}
+extern int inetctlerrmap[];
+extern struct ifqueue ipintrq; /* ip packet input queue */
extern struct in_addr zeroin_addr;
int in_broadcast(struct in_addr, struct ifnet *, u_int);
@@ -832,9 +834,13 @@ int in_cksum(struct mbuf *, int);
int in4_cksum(struct mbuf *, u_int8_t, int, int);
void in_delayed_cksum(struct mbuf *);
int in_localaddr(struct in_addr, u_int);
-char *inet_ntoa(struct in_addr);
void in_proto_cksum_out(struct mbuf *, struct ifnet *);
void in_ifdetach(struct ifnet *);
+int in_mask2len(struct in_addr *);
+
+char *inet_ntoa(struct in_addr);
+int inet_nat64(int, const void *, void *, const void *, u_int8_t);
+int inet_nat46(int, const void *, void *, const void *, u_int8_t);
#define in_hosteq(s,t) ((s).s_addr == (t).s_addr)
#define in_nullhost(x) ((x).s_addr == INADDR_ANY)