Skip to content

Commit

Permalink
Update rust code for new field names
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed May 28, 2024
1 parent 74b0947 commit bc0c342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rule/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,8 @@ impl CopyTo<ffi::pfvar::pf_addr_wrap> for IpNetwork {
impl CopyTo<ffi::pfvar::pf_addr> for IpAddr {
fn copy_to(&self, pf_addr: &mut ffi::pfvar::pf_addr) {
match *self {
IpAddr::V4(ip) => ip.copy_to(unsafe { &mut pf_addr.pfa.v4 }),
IpAddr::V6(ip) => ip.copy_to(unsafe { &mut pf_addr.pfa.v6 }),
IpAddr::V4(ip) => ip.copy_to(unsafe { &mut pf_addr.pfa._v4addr }),
IpAddr::V6(ip) => ip.copy_to(unsafe { &mut pf_addr.pfa._v6addr }),
}
}
}
Expand Down

0 comments on commit bc0c342

Please sign in to comment.