nss-ecm: fix compilation undefined dev when tunipip6 is enabled

Resolves the following error

```
'dev' undeclared (first use in this function)
```

Signed-off-by: Sean Khan <datapronix@protonmail.com>
This commit is contained in:
Sean Khan 2025-04-25 16:20:19 -04:00
parent 6895d8bb10
commit 709ddc324a

View File

@ -0,0 +1,11 @@
--- a/frontends/nss/ecm_nss_non_ported_ipv6.c
+++ b/frontends/nss/ecm_nss_non_ported_ipv6.c
@@ -342,7 +342,7 @@ static void ecm_nss_non_ported_ipv6_conn
ip_addr_t src_ip;
ip_addr_t dest_ip;
ecm_front_end_acceleration_mode_t result_mode;
-#if defined(ECM_INTERFACE_GRE_TAP_ENABLE) || defined(ECM_INTERFACE_GRE_TUN_ENABLE)
+#if defined(ECM_INTERFACE_GRE_TAP_ENABLE) || defined(ECM_INTERFACE_GRE_TUN_ENABLE) || defined(ECM_INTERFACE_TUNIPIP6_ENABLE)
struct net_device *dev;
#endif