aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet6/udp6_usrreq.c
diff options
context:
space:
mode:
authorBryan Venteicher <bryanv@FreeBSD.org>2014-10-10 06:08:59 +0000
committerBryan Venteicher <bryanv@FreeBSD.org>2014-10-10 06:08:59 +0000
commit81d3ec17636f208c744fdc071ee11b2653f7cd56 (patch)
tree42cfffd82364faa255dc0fcee6b4f0c1a17e1803 /sys/netinet6/udp6_usrreq.c
parent1482f98247f00bcbd7e5593bec614df7748c5af6 (diff)
downloadsrc-81d3ec17636f208c744fdc071ee11b2653f7cd56.tar.gz
src-81d3ec17636f208c744fdc071ee11b2653f7cd56.zip
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
Notes
Notes: svn path=/head/; revision=272886
Diffstat (limited to 'sys/netinet6/udp6_usrreq.c')
-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 529df24d380b..de79816f0eb9 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