build(deps): update network-types requirement in the cargo-crates group

Updates the requirements on [network-types](https://github.com/vadorovsky/network-types) to permit the latest version.

Updates `network-types` to 0.0.7
- [Release notes](https://github.com/vadorovsky/network-types/releases)
- [Changelog](https://github.com/vadorovsky/network-types/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vadorovsky/network-types/compare/v0.0.7...v0.0.7)

---
updated-dependencies:
- dependency-name: network-types
  dependency-version: 0.0.7
  dependency-type: direct:production
  dependency-group: cargo-crates
...

Signed-off-by: dependabot[bot] <support@github.com>
pull/1256/head
dependabot[bot] 5 days ago committed by Tamir Duberstein
parent 6004fcdb0f
commit c0ff1aa0cc
No known key found for this signature in database

@ -82,7 +82,7 @@ indoc = { version = "2.0", default-features = false }
libc = { version = "0.2.105", default-features = false }
log = { version = "0.4", default-features = false }
netns-rs = { version = "0.1", default-features = false }
network-types = { version = "0.0.7", default-features = false }
network-types = { version = "0.0.8", default-features = false }
nix = { version = "0.29.0", default-features = false }
num_enum = { version = "0.7", default-features = false }
object = { version = "0.36", default-features = false }

@ -48,7 +48,7 @@ fn try_do_dnat(ctx: XdpContext) -> Result<u32, ()> {
match unsafe { *hproto } {
EtherType::Ipv6 => {
let ip_hdr: *const Ipv6Hdr = ptr_at(&ctx, EthHdr::LEN)?;
unsafe { (*ip_hdr.cast_mut()).dst_addr.in6_u.u6_addr8 = nat.orig_ip };
unsafe { (*ip_hdr.cast_mut()).dst_addr = nat.orig_ip };
}
_ => return Ok(xdp_action::XDP_PASS),
}

Loading…
Cancel
Save