summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/net/if_pfsync.c23
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 {