Fields needed for bpf_peers_present() are kept in a struct bpf_if_ext at
the beginning of struct bpf_if, so bpf_peers_present() effectively works
the same as before. While here, rename the flags field to bif_flags.
Details
Details
- Reviewers
melifaro rpaulo - Commits
- rS281797: Move the definition of struct bpf_if to bpf.c.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
Well, while this change doesn't eliminate bpf_peers_present() hack, it makes it feel a bit less ugly.
(One of options to do this is to make per-interface PFIL hook and attach all bridge,netgraph,vlan and BPF hooks there)