diff options
author | bryanv <bryanv@FreeBSD.org> | 2014-10-10 06:08:59 +0000 |
---|---|---|
committer | bryanv <bryanv@FreeBSD.org> | 2014-10-10 06:08:59 +0000 |
commit | ed3bbe0a299b69a67b8e314db42d3fd49eb78b98 (patch) | |
tree | 42cfffd82364faa255dc0fcee6b4f0c1a17e1803 /sys/netinet6 | |
parent | 855894fab050627beb596386d77c68fdab1f4d79 (diff) | |
download | FreeBSD-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.c | 3 |
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 |