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)
Mar 2 2024, 11:20 AM
Unknown Object (File)
Dec 20 2023, 12:15 AM
Unknown Object (File)
Sep 27 2023, 9:25 PM
Unknown Object (File)
Sep 1 2023, 12:28 AM
Unknown Object (File)
Sep 1 2023, 12:27 AM
Unknown Object (File)
Sep 1 2023, 12:26 AM
Unknown Object (File)
Sep 1 2023, 12:24 AM
Unknown Object (File)
Aug 31 2023, 11:55 PM
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).