summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/udp6_usrreq.c
diff options
context:
space:
mode:
authorbryanv <bryanv@FreeBSD.org>2015-01-27 06:19:30 +0000
committerbryanv <bryanv@FreeBSD.org>2015-01-27 06:19:30 +0000
commitb5fba8dc05f513dfb0ea424a1d5ad6d557f40ab0 (patch)
treea8ab67cb1735c8bc935ccd18de09a564c5ef78e4 /sys/netinet6/udp6_usrreq.c
parent8459b965f7a842aaabd4b53e080bd15b094fbff5 (diff)
downloadFreeBSD-src-b5fba8dc05f513dfb0ea424a1d5ad6d557f40ab0.zip
FreeBSD-src-b5fba8dc05f513dfb0ea424a1d5ad6d557f40ab0.tar.gz
MFC r272886:
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.
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 ad9c7be..17de377 100644
--- a/sys/netinet6/udp6_usrreq.c
+++ b/sys/netinet6/udp6_usrreq.c
@@ -148,7 +148,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