summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpascoe <pascoe@openbsd.org>2005-08-03 01:12:19 +0000
committerpascoe <pascoe@openbsd.org>2005-08-03 01:12:19 +0000
commit2b1f62e72e6f42667de0d45c827ac77d0ceaf3bb (patch)
treeb44fc5ef7c805c5c73c090a17e94f82393ac0adf
parentEliminate another case where pool routines are called without process context. (diff)
downloadwireguard-openbsd-2b1f62e72e6f42667de0d45c827ac77d0ceaf3bb.tar.xz
wireguard-openbsd-2b1f62e72e6f42667de0d45c827ac77d0ceaf3bb.zip
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