svn commit: r343927 - head/sys/netgraph
Gleb Smirnoff
glebius at FreeBSD.org
Sat Feb 9 03:00:01 UTC 2019
Author: glebius
Date: Sat Feb 9 03:00:00 2019
New Revision: 343927
URL: https://svnweb.freebsd.org/changeset/base/343927
Log:
Remove remnants of byte order manipulation, back when FreeBSD stack
stored packets in host byte order.
Modified:
head/sys/netgraph/ng_ipfw.c
Modified: head/sys/netgraph/ng_ipfw.c
==============================================================================
--- head/sys/netgraph/ng_ipfw.c Sat Feb 9 02:10:03 2019 (r343926)
+++ head/sys/netgraph/ng_ipfw.c Sat Feb 9 03:00:00 2019 (r343927)
@@ -288,7 +288,6 @@ static int
ng_ipfw_input(struct mbuf **m0, int dir, struct ip_fw_args *fwa, int tee)
{
struct mbuf *m;
- struct ip *ip;
hook_p hook;
int error = 0;
@@ -329,8 +328,6 @@ ng_ipfw_input(struct mbuf **m0, int dir, struct ip_fw_
if (m->m_len < sizeof(struct ip) &&
(m = m_pullup(m, sizeof(struct ip))) == NULL)
return (EINVAL);
-
- ip = mtod(m, struct ip *);
NG_SEND_DATA_ONLY(error, hook, m);
More information about the svn-src-all
mailing list