From 99d1b89c56502e502f8c440c799f496c26f2d05e Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Wed, 7 Aug 2013 05:39:06 +0000 Subject: states learnt via pfsync from a peer with the same ruleset checksum were not getting assigned to rules like they should cos pfsync_in_upd() wasnt passing the PFSYNC_SI_CKSUM flag along to pfsync_state_import. found and fixed by pedro --- sys/net/if_pfsync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c index e9c5e62ead9..2c965023fd4 100644 --- a/sys/net/if_pfsync.c +++ b/sys/net/if_pfsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pfsync.c,v 1.200 2013/06/20 12:03:40 mpi Exp $ */ +/* $OpenBSD: if_pfsync.c,v 1.201 2013/08/07 05:39:05 dlg Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -916,7 +916,7 @@ pfsync_in_upd(caddr_t buf, int len, int count, int flags) st = pf_find_state_byid(&id_key); if (st == NULL) { /* insert the update */ - if (pfsync_state_import(sp, 0)) + if (pfsync_state_import(sp, flags)) pfsyncstats.pfsyncs_badstate++; continue; } -- cgit v1.2.3