summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2005-01-16 11:13:18 +0000
committerglebius <glebius@FreeBSD.org>2005-01-16 11:13:18 +0000
commit4f5002e05460f9c986d37a299e2fa4440df5a279 (patch)
tree717313b72c1381ac00398d9ecbf0e60d21fadb98 /sys/net
parent1ff141d1b61992bd23162070b4c777f5aabebf03 (diff)
downloadFreeBSD-src-4f5002e05460f9c986d37a299e2fa4440df5a279.zip
FreeBSD-src-4f5002e05460f9c986d37a299e2fa4440df5a279.tar.gz
- Reduce number of arguments passed to dummynet_io(), we already have cookie
in struct ip_fw_args itself. - Remove redundant &= 0xffff from dummynet_io().
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/bridge.c2
-rw-r--r--sys/net/if_ethersubr.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/bridge.c b/sys/net/bridge.c
index 3a4b7aa..63dfb36 100644
--- a/sys/net/bridge.c
+++ b/sys/net/bridge.c
@@ -1097,7 +1097,7 @@ bdg_forward(struct mbuf *m0, struct ifnet *dst)
}
args.oif = real_dst;
- ip_dn_io_ptr(m, args.cookie, DN_TO_BDG_FWD, &args);
+ ip_dn_io_ptr(m, DN_TO_BDG_FWD, &args);
return m0;
}
/*
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 590e551..0871077 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -464,8 +464,7 @@ ether_ipfw_chk(struct mbuf **m0, struct ifnet *dst,
*/
*m0 = NULL ;
}
- ip_dn_io_ptr(m, args.cookie,
- dst ? DN_TO_ETH_OUT: DN_TO_ETH_DEMUX, &args);
+ ip_dn_io_ptr(m, dst ? DN_TO_ETH_OUT: DN_TO_ETH_DEMUX, &args);
return 0;
}
/*
OpenPOWER on IntegriCloud