summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Pascoe <pascoe@cvs.openbsd.org>2005-08-03 01:12:20 +0000
committerChristopher Pascoe <pascoe@cvs.openbsd.org>2005-08-03 01:12:20 +0000
commit63eabbd355e8a90065c47371efbcff0554ed6aee (patch)
treead257b3d21214b8d09b01f736470668e13018b39
parent8bbf229360c687bb6c568c36931adcb5b36444e8 (diff)
Do not send "deletion" messages for states created by other pfsync peers when
they timeout. Any other hosts that have also learnt these states will already know that they are due to time out. ok henning
-rw-r--r--sys/net/if_pfsync.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_pfsync.h b/sys/net/if_pfsync.h
index 2cd966a6bbe..ac641cb616c 100644
--- a/sys/net/if_pfsync.h
+++ b/sys/net/if_pfsync.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pfsync.h,v 1.21 2005/08/03 00:51:43 pascoe Exp $ */
+/* $OpenBSD: if_pfsync.h,v 1.22 2005/08/03 01:12:19 pascoe Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -296,10 +296,10 @@ int pfsync_pack_state(u_int8_t, struct pf_state *, int);
st->sync_flags &= ~PFSTATE_FROMSYNC; \
} while (0)
#define pfsync_delete_state(st) do { \
- if (!st->sync_flags) \
+ if (!st->sync_flags && \
+ st->creatorid == pf_status.hostid) \
pfsync_pack_state(PFSYNC_ACT_DEL, (st), \
PFSYNC_FLAG_COMPRESS); \
- st->sync_flags &= ~PFSTATE_FROMSYNC; \
} while (0)
int pfsync_update_tdb(struct tdb *);
#endif