Skip to content

Commit

Permalink
Add function for clearing interface flags
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Nov 27, 2024
1 parent d47081f commit 21176a5
Show file tree
Hide file tree
Showing 5 changed files with 739 additions and 3,524 deletions.
1 change: 1 addition & 0 deletions generate_bindings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ bindgen \
--allowlist-type pfioc_trans \
--allowlist-type pfioc_states \
--allowlist-type pfioc_state_kill \
--allowlist-type pfioc_iface \
--allowlist-var PF_.* \
--allowlist-var PFRULE_.* \
--default-enum-style rust \
Expand Down
2 changes: 2 additions & 0 deletions src/ffi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ ioctl!(readwrite pf_add_addr with b'D', 52; pfvar::pfioc_pooladdr);
ioctl!(readwrite pf_begin_trans with b'D', 81; pfvar::pfioc_trans);
// DIOCXCOMMIT
ioctl!(readwrite pf_commit_trans with b'D', 82; pfvar::pfioc_trans);
// DIOCCLRIFFLAG
ioctl!(readwrite pf_clear_iface_flag with b'D', 90; pfvar::pfioc_iface);
Loading

0 comments on commit 21176a5

Please sign in to comment.