Skip to contentSkip to conversation

Wireguard in OpenWRT/LEDE: FYI: Pull Request

WireGuard Michal Kowalski 3 participants 5 messages Dec 12, 2016 – Dec 16, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

Is possible to add/modify version to support IPv4 only ? I would like to disable IPv6 and compile LEDE but than wireguard disappear. It is because of flash size 4MB.

Thanks,
Michal

#1 lore raw
Quoted 1 line · Michal Kowalski

Is possible to add/modify version to support IPv4 only ? I would like to disable IPv6 and compile LEDE but than wireguard disappear. It is because of flash size 4MB.

Yes. WireGuard supports this already. You just need to remove the v6 deps from the LEDE wireguard makefile. Not sure why the dependency is hard coded like this; it shouldn't be.

#2 lore raw
Quoted 3 lines

Not sure why the dependency is
hard coded like this; it shouldn't be.

Even if it wasn't hardcoded, it would be introduced by +kmod-udptunnel6 = anyway.

Remove both manually if you really need to throw away IP and want to = compile legacyIP only. It should work with both, @IP6 and = kmod-udptunnel6 removed.=20=

#3 lore raw
Quoted 5 lines · On Wed, Dec 14, 2016 at 8:48 PM, Dan L=C3=BCdtke <[email protected]> wrote:
Quoted 3 lines

Not sure why the dependency is
hard coded like this; it shouldn't be.

Even if it wasn't hardcoded, it would be introduced by +kmod-udptunnel6 a=

nyway.

Quoted 2 lines

Remove both manually if you really need to throw away IP and want to comp=

ile legacyIP only. It should work with both, @IP6 and kmod-udptunnel6 remov= ed.

kmod-udptunnel6 is only required if IPv6 is turned on.

At least in menuconfig, it's easy to describe conditional dependencies like this one. Can the OpenWRT makefile thinger do it too? Baptiste?