For example it should not be surprised if caller asks to remove
state from pfsync queue which has been removed already. That kind
of race is sorted out later when pfsync_update_state() calls to
pfsync_q_ins()/pfsync_q_del(). Change relaxes pfsync_update_state()
to panic on sync_state value which is unknown.
OK dlg@
-/* $OpenBSD: if_pfsync.c,v 1.316 2023/05/26 12:13:26 kn Exp $ */
+/* $OpenBSD: if_pfsync.c,v 1.317 2023/06/05 08:45:20 sashan Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
st->sync_updates = 0;
break;
+ case PFSYNC_S_DEL:
+ case PFSYNC_S_COUNT:
+ case PFSYNC_S_DEFER:
+ break;
+
default:
panic("pfsync_update_state: unexpected sync state %d",
st->sync_state);