nss-packages-qosmio/qca-nss-ecm/patches/00222-fix-undefined-dev-for-tunipip6.patch
Sean Khan 709ddc324a 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>
2025-04-25 16:20:19 -04:00

12 lines
489 B
Diff

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