summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_output.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1996-02-23 15:26:13 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1996-02-23 15:26:13 +0000
commit0440c9042c46527d38b05ca2fc1e96f12c838d79 (patch)
tree633355ebdba40aadf1ec6beb5fae4eb9c1d20792 /sys/netinet/ip_output.c
parent4c61726feac9a31202ae9e90211e90cee05c0323 (diff)
Notes
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r--sys/netinet/ip_output.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index b5f1e974a87d..64bfcb86084c 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ip_output.c 8.3 (Berkeley) 1/21/94
- * $Id: ip_output.c,v 1.23 1995/07/26 18:05:13 wollman Exp $
+ * $Id: ip_output.c,v 1.19.4.2 1995/09/06 10:31:40 davidg Exp $
*/
#include <sys/param.h>
@@ -314,6 +314,14 @@ ip_output(m0, opt, ro, flags, imo)
sendit:
/*
+ * Check with the firewall...
+ */
+ if (!(*ip_fw_chk_ptr)(m,ip,ifp,1)) {
+ error = 0;
+ goto done;
+ }
+
+ /*
* If small enough for interface, can just send directly.
*/
if ((u_short)ip->ip_len <= ifp->if_mtu) {
@@ -417,16 +425,6 @@ sendorfree:
done:
if (ro == &iproute && (flags & IP_ROUTETOIF) == 0 && ro->ro_rt)
RTFREE(ro->ro_rt);
- /*
- * Count outgoing packet,here we count both our packets and
- * those we forward.
- * Here we want to convert ip_len to host byte order when counting
- * so we set 3rd arg to 1.
- * This is locally generated packet so it has not
- * incoming interface.
- */
- if (ip_acct_cnt_ptr!=NULL)
- (*ip_acct_cnt_ptr)(ip,NULL,ip_acct_chain,1);
return (error);
bad: