On Sun, Jul 12, 2020 at 07:44:47PM +0200, Klemens Nanni wrote:
> Feedback? OK?

You need to have pf.h in scope to condition on NPF > 0.

panic: kernel diagnostic assertion "m->m_ptheader.pf.statekey == NULL" failed: 
file "/usr/src/sys/net/pf.c" line 7455

Index: sys/net/if_wg.c
===================================================================
RCS file: /var/cvs/src/sys/net/if_wg.c,v
retrieving revision 1.10
diff -u -p -r1.10 if_wg.c
--- sys/net/if_wg.c     12 Jul 2020 18:54:23 -0000      1.10
+++ sys/net/if_wg.c     13 Jul 2020 06:27:30 -0000
@@ -18,6 +18,7 @@
  */
 
 #include "bpfilter.h"
+#include "pf.h"
 
 #include <sys/types.h>
 #include <sys/systm.h>

Reply via email to