Page MenuHomeFreeBSD

Move the definition of struct bpf_if to bpf.c.
ClosedPublic

Authored by markj on Apr 17 2015, 8:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 3:00 AM
Unknown Object (File)
Oct 18 2024, 4:33 AM
Unknown Object (File)
Sep 24 2024, 5:18 AM
Unknown Object (File)
Sep 24 2024, 4:59 AM
Unknown Object (File)
Sep 22 2024, 10:53 PM
Unknown Object (File)
Sep 21 2024, 11:57 PM
Unknown Object (File)
Sep 19 2024, 2:03 AM
Unknown Object (File)
Sep 18 2024, 9:50 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

markj retitled this revision from to Move the definition of struct bpf_if to bpf.c..
markj edited the test plan for this revision. (Show Details)
markj updated this object.
  • Make sure struct bpf_if's definition is available for bp_null.
rpaulo added a reviewer: rpaulo.
This revision is now accepted and ready to land.Apr 18 2015, 9:37 PM
melifaro added a reviewer: melifaro.
melifaro added a subscriber: melifaro.

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)

markj updated this revision to Diff 4934.

Closed by commit rS281797 (authored by @markj).