diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2003-07-12 09:36:24 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2003-07-12 09:36:24 +0000 |
commit | be591d2e90837319e8e00efc87986365fa34e7a4 (patch) | |
tree | 62c56b0afea654a9515d20d5e9452c34689487e4 /sys/net | |
parent | ebd8a79eb0d1af82407612bec2f3edd48ba3e579 (diff) |
Remove two htons(), which were meant as ntohs(), and are wrong since
ip_ouput() flipped byte order. From Pyun YongHyeon. ok itojun@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pf.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 0d28792927e..7793fd43852 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.376 2003/07/09 22:03:15 itojun Exp $ */ +/* $OpenBSD: pf.c,v 1.377 2003/07/12 09:36:23 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -4494,8 +4494,6 @@ pf_route(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp, /* Copied from ip_output. */ if (ntohs(ip->ip_len) <= ifp->if_mtu) { - ip->ip_len = htons((u_int16_t)ip->ip_len); - ip->ip_off = htons((u_int16_t)ip->ip_off); if ((ifp->if_capabilities & IFCAP_CSUM_IPv4) && ifp->if_bridge == NULL) { m0->m_pkthdr.csum |= M_IPV4_CSUM_OUT; |