use ioctl_sys::ioctl;
#[allow(non_camel_case_types)]
#[allow(non_upper_case_globals)]
#[allow(non_snake_case)]
#[allow(dead_code)]
pub mod pfvar;
pub mod tcp {
use std::os::raw::c_uint;
pub const TH_FIN: c_uint = 0x01;
pub const TH_SYN: c_uint = 0x02;
pub const TH_RST: c_uint = 0x04;
pub const TH_PSH: c_uint = 0x08;
pub const TH_ACK: c_uint = 0x10;
pub const TH_URG: c_uint = 0x20;
pub const TH_ECE: c_uint = 0x40;
pub const TH_CWR: c_uint = 0x80;
}
ioctl!(none pf_start with b'D', 1);
ioctl!(none pf_stop with b'D', 2);
ioctl!(readwrite pf_add_rule with b'D', 4; pfvar::pfioc_rule);
ioctl!(readwrite pf_get_rules with b'D', 6; pfvar::pfioc_rule);
ioctl!(readwrite pf_get_rule with b'D', 7; pfvar::pfioc_rule);
ioctl!(readwrite pf_clear_states with b'D', 18; pfvar::pfioc_state_kill);
ioctl!(readwrite pf_get_status with b'D', 21; pfvar::pf_status);
ioctl!(readwrite pf_get_states with b'D', 25; pfvar::pfioc_states);
ioctl!(readwrite pf_change_rule with b'D', 26; pfvar::pfioc_rule);
ioctl!(readwrite pf_insert_rule with b'D', 27; pfvar::pfioc_rule);
ioctl!(readwrite pf_delete_rule with b'D', 28; pfvar::pfioc_rule);
ioctl!(readwrite pf_kill_states with b'D', 41; pfvar::pfioc_state_kill);
ioctl!(readwrite pf_begin_addrs with b'D', 51; pfvar::pfioc_pooladdr);
ioctl!(readwrite pf_add_addr with b'D', 52; pfvar::pfioc_pooladdr);
ioctl!(readwrite pf_begin_trans with b'D', 81; pfvar::pfioc_trans);
ioctl!(readwrite pf_commit_trans with b'D', 82; pfvar::pfioc_trans);
ioctl!(readwrite pf_set_iface_flag with b'D', 89; pfvar::pfioc_iface);
ioctl!(readwrite pf_clear_iface_flag with b'D', 90; pfvar::pfioc_iface);