summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authorbryanv <bryanv@FreeBSD.org>2014-10-10 06:08:59 +0000
committerbryanv <bryanv@FreeBSD.org>2014-10-10 06:08:59 +0000
commited3bbe0a299b69a67b8e314db42d3fd49eb78b98 (patch)
tree42cfffd82364faa255dc0fcee6b4f0c1a17e1803 /sys/netinet6
parent855894fab050627beb596386d77c68fdab1f4d79 (diff)
downloadFreeBSD-src-ed3bbe0a299b69a67b8e314db42d3fd49eb78b98.zip
FreeBSD-src-ed3bbe0a299b69a67b8e314db42d3fd49eb78b98.tar.gz
Add context pointer and source address to the UDP tunnel callback
These are needed for the forthcoming vxlan implementation. The context pointer means we do not have to use a spare pointer field in the inpcb, and the source address is required to populate vxlan's forwarding table. While I highly doubt there is an out of tree consumer of the UDP tunneling callback, this change may be a difficult to eventually MFC. Phabricator: https://reviews.freebsd.org/D383 Reviewed by: gnn
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/udp6_usrreq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c
index 529df24..de79816 100644
--- a/sys/netinet6/udp6_usrreq.c
+++ b/sys/netinet6/udp6_usrreq.c
@@ -150,7 +150,8 @@ udp6_append(struct inpcb *inp, struct mbuf *n, int off,
*/
up = intoudpcb(inp);
if (up->u_tun_func != NULL) {
- (*up->u_tun_func)(n, off, inp);
+ (*up->u_tun_func)(n, off, inp, (struct sockaddr *)fromsa,
+ up->u_tun_ctx);
return;
}
#ifdef IPSEC
OpenPOWER on IntegriCloud