summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_dummynet.c
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2003-06-28 14:23:22 +0000
committerluigi <luigi@FreeBSD.org>2003-06-28 14:23:22 +0000
commit880567e3db6fe34520f53b77dafaf7648390a62c (patch)
tree5c034476d33136c46f0c2fc4de095a418ac50309 /sys/netinet/ip_dummynet.c
parentf8b1841e607005080630845c243d0401d99e6828 (diff)
downloadFreeBSD-src-880567e3db6fe34520f53b77dafaf7648390a62c.zip
FreeBSD-src-880567e3db6fe34520f53b77dafaf7648390a62c.tar.gz
Remove a stale comment, fix indentation.
Diffstat (limited to 'sys/netinet/ip_dummynet.c')
-rw-r--r--sys/netinet/ip_dummynet.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/sys/netinet/ip_dummynet.c b/sys/netinet/ip_dummynet.c
index a94226a..9585cc7 100644
--- a/sys/netinet/ip_dummynet.c
+++ b/sys/netinet/ip_dummynet.c
@@ -454,9 +454,6 @@ transmit_event(struct dn_pipe *pipe)
* it has not consumed it.
*/
if (pkt->dn_dir == DN_TO_BDG_FWD) {
- /*
- * same as ether_input, make eh be a pointer into the mbuf
- */
m = bdg_forward_ptr(m, pkt->ifp);
if (m)
m_freem(m);
@@ -880,11 +877,11 @@ find_queue(struct dn_flow_set *fs, struct ipfw_flow_id *id)
for (prev=NULL, q = fs->rq[i] ; q ; ) {
search_steps++;
if (id->dst_ip == q->id.dst_ip &&
- id->src_ip == q->id.src_ip &&
- id->dst_port == q->id.dst_port &&
- id->src_port == q->id.src_port &&
- id->proto == q->id.proto &&
- id->flags == q->id.flags)
+ id->src_ip == q->id.src_ip &&
+ id->dst_port == q->id.dst_port &&
+ id->src_port == q->id.src_port &&
+ id->proto == q->id.proto &&
+ id->flags == q->id.flags)
break ; /* found */
else if (pipe_expire && q->head == NULL && q->S == q->F+1 ) {
/* entry is idle and not in any heap, expire it */
OpenPOWER on IntegriCloud