diff options
author | glebius <glebius@FreeBSD.org> | 2004-12-10 07:47:17 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2004-12-10 07:47:17 +0000 |
commit | c08591ffd6bea89df080313bd3310d8170c2517b (patch) | |
tree | 1b14d996968fdd0e09777a430178f0ee0652dfcf /sys/netinet/ip_fw_pfil.c | |
parent | bd2198776f74bde8045947ad498782bb8384c0b7 (diff) | |
download | FreeBSD-src-c08591ffd6bea89df080313bd3310d8170c2517b.zip FreeBSD-src-c08591ffd6bea89df080313bd3310d8170c2517b.tar.gz |
Revert last change.
Andre:
First lets get major new features into the kernel in a clean and nice way,
and then start optimizing. In this case we don't have any obfusication that
makes later profiling and/or optimizing difficult in any way.
Requested by: csjp, sam
Diffstat (limited to 'sys/netinet/ip_fw_pfil.c')
-rw-r--r-- | sys/netinet/ip_fw_pfil.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/ip_fw_pfil.c b/sys/netinet/ip_fw_pfil.c index ebbfbc8..80c7d05 100644 --- a/sys/netinet/ip_fw_pfil.c +++ b/sys/netinet/ip_fw_pfil.c @@ -93,8 +93,8 @@ ipfw_check_in(void *arg, struct mbuf **m0, struct ifnet *ifp, int dir, bzero(&args, sizeof(args)); - if (DUMMYNET_LOADED && - (dn_tag = m_tag_find(*m0, PACKET_TAG_DUMMYNET, NULL)) != NULL) { + dn_tag = m_tag_find(*m0, PACKET_TAG_DUMMYNET, NULL); + if (dn_tag != NULL){ struct dn_pkt_tag *dt; dt = (struct dn_pkt_tag *)(dn_tag+1); @@ -178,8 +178,8 @@ ipfw_check_out(void *arg, struct mbuf **m0, struct ifnet *ifp, int dir, bzero(&args, sizeof(args)); - if (DUMMYNET_LOADED && - (dn_tag = m_tag_find(*m0, PACKET_TAG_DUMMYNET, NULL)) != NULL) { + dn_tag = m_tag_find(*m0, PACKET_TAG_DUMMYNET, NULL); + if (dn_tag != NULL) { struct dn_pkt_tag *dt; dt = (struct dn_pkt_tag *)(dn_tag+1); |