diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-10-02 05:47:31 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-10-02 05:47:31 +0000 |
commit | 977c6feb7e30b1642b68e46257941cfd68429c5e (patch) | |
tree | 1b7bd1e6c00be9dd2b5f72bb8dee8a443144550a /sys/net | |
parent | 6eb60b9501cbbc8ceacdf0aa797e715831875dda (diff) |
correct endian handling of ip->ip_off.
do not try to send incomplete fragments on ENOBUFS case
(behavior change from 4.4bsd).
dhartmei ok
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 32ac4dabd1f..a78c78b7d02 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.392 2003/09/26 21:44:08 cedric Exp $ */ +/* $OpenBSD: pf.c,v 1.393 2003/10/02 05:47:30 itojun Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -4481,7 +4481,7 @@ pf_route(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp, m1 = m0; error = ip_fragment(m0, ifp, ifp->if_mtu); - if (error == EMSGSIZE) + if (error) goto bad; for (m0 = m1; m0; m0 = m1) { |