diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2011-10-20 08:57:27 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2011-10-20 08:57:27 +0000 |
commit | 4a4eba1c3ed1d9793493848229f00b7d86f2a8a2 (patch) | |
tree | ca1068bf32f9ab1c3c792c96567b905a40410e0f /sys/net | |
parent | dd176c32dfaad6935d0db0e278d826139934731d (diff) |
remove a bogus chunk accidentally introduced by mcbride in rev1.141;
mcbride agrees, ok mpf, dlg
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_pfsync.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c index 1a2912c435e..0c1fe94cd98 100644 --- a/sys/net/if_pfsync.c +++ b/sys/net/if_pfsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pfsync.c,v 1.168 2011/10/13 18:23:39 claudio Exp $ */ +/* $OpenBSD: if_pfsync.c,v 1.169 2011/10/20 08:57:26 mikeb Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -925,27 +925,6 @@ pfsync_in_upd(caddr_t buf, int len, int count, int flags) if (ISSET(st->state_flags, PFSTATE_ACK)) pfsync_deferred(st, 1); - if (st->key[PF_SK_WIRE]->proto == IPPROTO_TCP) { - DPFPRINTF(LOG_NOTICE, - "pfsync_input: PFSYNC_ACT_UPD: invalid value"); - pfsyncstats.pfsyncs_badval++; - continue; - } - - bcopy(sp->id, &id_key.id, sizeof(id_key.id)); - id_key.creatorid = sp->creatorid; - - st = pf_find_state_byid(&id_key); - if (st == NULL) { - /* insert the update */ - if (pfsync_state_import(sp, 0)) - pfsyncstats.pfsyncs_badstate++; - continue; - } - - if (ISSET(st->state_flags, PFSTATE_ACK)) - pfsync_deferred(st, 1); - if (st->key[PF_SK_WIRE]->proto == IPPROTO_TCP) sync = pfsync_upd_tcp(st, &sp->src, &sp->dst); else { |