Browse Source

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>
dependabot[bot] 1 month ago
parent
commit
c0ff1aa0cc
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Cargo.toml
  2. 1 1
      test/integration-ebpf/src/memmove_test.rs

+ 1 - 1
Cargo.toml

@@ -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 }

+ 1 - 1
test/integration-ebpf/src/memmove_test.rs

@@ -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),
         }