PERFORCE change 165747 for review
Ana Kukec
anchie at FreeBSD.org
Tue Jul 7 12:49:23 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=165747
Change 165747 by anchie at anchie_malimis on 2009/07/07 12:49:21
mtod ip6_hdr on mbuff before passing to the user space.
Affected files ...
.. //depot/projects/soc2009/anchie_send/src/sys/netinet6/send.c#13 edit
Differences ...
==== //depot/projects/soc2009/anchie_send/src/sys/netinet6/send.c#13 (text+ko) ====
@@ -26,11 +26,14 @@
static int
send_output(struct mbuf *m, struct ifnet *ifp, int in, int msglen)
{
+ struct ip6_hdr *ip6;
+
+ ip6 = mtod(m, struct ip6_hdr *);
/*
* Send incoming or outgoing traffic to the user space either to be
* protected (outgoing) or validated (incoming) according to rfc3971. */
- rt_securendmsg(ifp, in, m, msglen);
+ rt_securendmsg(ifp, in, ip6, msglen);
return (0);
}
More information about the p4-projects
mailing list