summaryrefslogtreecommitdiff
path: root/sys/netinet/in.h
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2017-08-11 19:53:03 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2017-08-11 19:53:03 +0000
commit80ea0fdcccada4edc03c233308577d3cdffa73fe (patch)
tree3e0a37b5d04229eb6343d2c414a648a0eb02d1bc /sys/netinet/in.h
parent9352f67a254d317d6f2624bfc0f8f5d688d1f490 (diff)
Validate sockaddr from userland in central functions. This results
in common checks for unix, inet, inet6 instead of partial checks here and there. Some checks are already done at a higher layer, but better be paranoid with user input. OK claudio@ millert@
Diffstat (limited to 'sys/netinet/in.h')
-rw-r--r--sys/netinet/in.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h
index 8d59a6a3e8c..68a3826459d 100644
--- a/sys/netinet/in.h
+++ b/sys/netinet/in.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in.h,v 1.123 2017/05/30 07:50:37 mpi Exp $ */
+/* $OpenBSD: in.h,v 1.124 2017/08/11 19:53:02 bluhm Exp $ */
/* $NetBSD: in.h,v 1.20 1996/02/13 23:41:47 christos Exp $ */
/*
@@ -818,6 +818,7 @@ void in_proto_cksum_out(struct mbuf *, struct ifnet *);
void in_ifdetach(struct ifnet *);
int in_mask2len(struct in_addr *);
void in_len2mask(struct in_addr *, int);
+int in_nam2sin(const struct mbuf *, struct sockaddr_in **);
char *inet_ntoa(struct in_addr);
int inet_nat64(int, const void *, void *, const void *, u_int8_t);