From c0ff1aa0cc48c5a73783b2019cb21081796727d8 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 21 Apr 2025 14:09:11 +0000
Subject: [PATCH] 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>
---
 Cargo.toml                                | 2 +-
 test/integration-ebpf/src/memmove_test.rs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index 04b1ac67..ee049ed3 100644
--- a/Cargo.toml
+++ b/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 }
diff --git a/test/integration-ebpf/src/memmove_test.rs b/test/integration-ebpf/src/memmove_test.rs
index afadfc09..aae31c57 100644
--- a/test/integration-ebpf/src/memmove_test.rs
+++ b/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),
         }