DragonFly kernel List (threaded) for 2010-05
Updating PF to OpenBSD Release 4,1
I am trying (and I mean >trying<) to update our version of PF to the PF
in OpenBSD 4.1. I have hit one obstacle (many more to come I am sure) I
don't know how to solve:
In sys/net/pf/if_pflog.c in function pflog_packet() we used to have
in OpenBSD 3.5 (which our version is based on) this was:
In OpenBSD 4.1 this changed to:
bpf_mtap_hdr(ifn->if_bpf, (char *)&hdr, PFLOG_HDRLEN, m,
Unfortunatley we don't have the BPF_MTAP2 Macro either. So I am stuck
here and don't know how to proceed.
We don't have bpf_mtap_hdr. So I looked what FreeBSD did:
BPF_MTAP2(ifn, &hdr, PFLOG_HDRLEN, m);
If you want to see the whole thing (pflog_packet() is at the very end):
and for what DF has at the moment (starting at line 194):
Thanks for support!