aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/protosw.h
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2020-08-07 15:13:53 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2020-08-07 15:13:53 +0000
commita9839c4aee0f04590ce4e45a132992bf9035fe8d (patch)
tree435c217e36b8453966a31313bc24566113f7bd2a /sys/sys/protosw.h
parent9f91d464a9c40899b1e7ad86aa86885166ab5b41 (diff)
downloadsrc-a9839c4aee0f04590ce4e45a132992bf9035fe8d.tar.gz
src-a9839c4aee0f04590ce4e45a132992bf9035fe8d.zip
IPV6_PKTINFO support for v4-mapped IPv6 sockets
When using v4-mapped IPv6 sockets with IPV6_PKTINFO we do not respect the given v4-mapped src address on the IPv4 socket. Implement the needed functionality. This allows single-socket UDP applications (such as OpenVPN) to work better on FreeBSD. Requested by: Gert Doering (gert greenie.net), pfsense Tested by: Gert Doering (gert greenie.net) Reviewed by: melifaro MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D24135
Notes
Notes: svn path=/head/; revision=364018
Diffstat (limited to 'sys/sys/protosw.h')
-rw-r--r--sys/sys/protosw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/protosw.h b/sys/sys/protosw.h
index 35b2aaf6ffb6..9c3139c866bd 100644
--- a/sys/sys/protosw.h
+++ b/sys/sys/protosw.h
@@ -210,6 +210,7 @@ struct pr_usrreqs {
#define PRUS_EOF 0x2
#define PRUS_MORETOCOME 0x4
#define PRUS_NOTREADY 0x8
+#define PRUS_IPV6 0x10
int (*pru_ready)(struct socket *so, struct mbuf *m, int count);
int (*pru_sense)(struct socket *so, struct stat *sb);
int (*pru_shutdown)(struct socket *so);