summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2009-02-18 10:07:25 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2009-02-18 10:07:25 +0000
commit446b4d18fc6fe148bc0900b28f664d355be8063f (patch)
tree21d36d2559f919cd91f1ba71950b2fa544b46b4c /sys/net
parent87c16502dd04af5faa9289e9cbd072a865d42167 (diff)
if a peer requests a state that is marked as NOSYNC, then skip it.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_pfsync.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c
index 8560f4ab220..402836146e1 100644
--- a/sys/net/if_pfsync.c
+++ b/sys/net/if_pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pfsync.c,v 1.107 2009/02/17 23:46:25 dlg Exp $ */
+/* $OpenBSD: if_pfsync.c,v 1.108 2009/02/18 10:07:24 dlg Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -1067,8 +1067,6 @@ pfsync_in_upd_c(struct pfsync_pkt *pkt, struct mbuf *m, int offset, int count)
return (len);
}
-int pfsync_req_del;
-
int
pfsync_in_ureq(struct pfsync_pkt *pkt, struct mbuf *m, int offset, int count)
{
@@ -1101,9 +1099,8 @@ pfsync_in_ureq(struct pfsync_pkt *pkt, struct mbuf *m, int offset, int count)
pfsyncstats.pfsyncs_badstate++;
continue;
}
-
- if (st->timeout == PFTM_UNLINKED)
- pfsync_req_del++;
+ if (ISSET(st->state_flags, PFSTATE_NOSYNC))
+ continue;
pfsync_update_state_req(st);
}