diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-07-15 23:05:05 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-07-15 23:05:05 +0000 |
commit | bfedcf6569ea08d8d1fd22ca3a2282e07e85de02 (patch) | |
tree | fecd2dadfca95d6a96870724bfb323a71ea5c961 | |
parent | e609e444b4f903ae4b7c7bd556816fbf777d580c (diff) |
increase src->state to 1 when creating state from intermediate (non-SYN) packets. this fixes one class of BAD state messages (where seqlo=0, seqhi=1).
-rw-r--r-- | sys/net/pf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 578fb851db0..62bafb7d481 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.112 2001/07/14 10:36:53 dhartmei Exp $ */ +/* $OpenBSD: pf.c,v 1.113 2001/07/15 23:05:04 dhartmei Exp $ */ /* * Copyright (c) 2001, Daniel Hartmeier @@ -1931,6 +1931,8 @@ pf_test_state_tcp(struct pf_state **state, int direction, struct ifnet *ifp, src->seqlo = end; src->seqhi = end + 1; src->max_win = 1; + if (src->state < 1) + src->state = 1; } if ((th->th_flags & TH_ACK) == 0) { |