summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in.h
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2017-08-11 19:53:02 +0000
committerbluhm <bluhm@openbsd.org>2017-08-11 19:53:02 +0000
commitb2a698ea6719f662ac4da32c3ddecf2a70ba1bfa (patch)
tree22f6930257029040f57e778eac3c8e68c738b004 /sys/netinet/in.h
parentCheck whether the first two characters of $HISTFILE are the magic (diff)
downloadwireguard-openbsd-b2a698ea6719f662ac4da32c3ddecf2a70ba1bfa.tar.xz
wireguard-openbsd-b2a698ea6719f662ac4da32c3ddecf2a70ba1bfa.zip
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);