Skip to content

Commit 04923c5

Browse files
angus19ayourtch
authored andcommitted
"Fix build failures observed so far" - take three.
1 parent b4263cc commit 04923c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nat46/modules/nat46-netdev.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,10 @@ static void nat46_netdev_setup(struct net_device *dev)
120120
dev->mtu = 16384; /* iptables does reassembly. Rather than using ETH_DATA_LEN, let's try to get as much mileage as we can with the Linux stack */
121121
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,12,0)
122122
dev->features = NETIF_F_NETNS_LOCAL;
123-
#else
123+
#elif LINUX_VERSION_CODE < KERNEL_VERSION(6,15,0)
124124
dev->netns_local = true;
125+
#else
126+
dev->netns_immutable = true;
125127
#endif
126128
dev->flags = IFF_NOARP | IFF_POINTOPOINT;
127129
}

0 commit comments

Comments
 (0)