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)
Mon, Feb 3, 11:39 PM
Unknown Object (File)
Fri, Jan 31, 11:27 AM
Unknown Object (File)
Fri, Jan 31, 10:27 AM
Unknown Object (File)
Jan 16 2025, 9:12 AM
Unknown Object (File)
Jan 8 2025, 8:22 AM
Unknown Object (File)
Dec 7 2024, 8:15 AM
Unknown Object (File)
Dec 3 2024, 10:19 PM
Unknown Object (File)
Nov 13 2024, 3:00 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).