summaryrefslogtreecommitdiff
path: root/sys/net/if_pfsync.h
diff options
context:
space:
mode:
authorChristopher Pascoe <pascoe@cvs.openbsd.org>2005-08-16 11:26:49 +0000
committerChristopher Pascoe <pascoe@cvs.openbsd.org>2005-08-16 11:26:49 +0000
commit4c93b572a704c75bdf396f1d6b7f1495effa03e2 (patch)
tree28141f44196bc009c851795e2e58dccc53697456 /sys/net/if_pfsync.h
parent4743ba0489c2dc3b8b32d38608230b94ba67bd6c (diff)
Only send the PFSS_TIMESTAMP timestamp bit across the wire, in case we
want to map the remaining bits to something else later on.
Diffstat (limited to 'sys/net/if_pfsync.h')
-rw-r--r--sys/net/if_pfsync.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_pfsync.h b/sys/net/if_pfsync.h
index 85ced9c7db7..4d6cfebc143 100644
--- a/sys/net/if_pfsync.h
+++ b/sys/net/if_pfsync.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pfsync.h,v 1.24 2005/08/16 11:22:43 pascoe Exp $ */
+/* $OpenBSD: if_pfsync.h,v 1.25 2005/08/16 11:26:48 pascoe Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -255,7 +255,8 @@ struct pfsyncreq {
(d)->state = (s)->state; \
(d)->wscale = (s)->wscale; \
if ((s)->scrub) { \
- (d)->scrub.pfss_flags = htons((s)->scrub->pfss_flags); \
+ (d)->scrub.pfss_flags = \
+ htons((s)->scrub->pfss_flags & PFSS_TIMESTAMP); \
(d)->scrub.pfss_ttl = (s)->scrub->pfss_ttl; \
(d)->scrub.pfss_ts_mod = htonl((s)->scrub->pfss_ts_mod);\
(d)->scrub.scrub_flag = PFSYNC_SCRUB_FLAG_VALID; \