Skip to contentSkip to conversation

Setting lladdr in NetBSD

Openvpn-devel Frederic Jaeckel 1 participant 2 messages Dec 22, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

todays openvpn isn't supporting NetBSDs way to set the lladdr for tap(4) devices.

Here's the patch to support this.

Please integrate this in the next release.

best regards and thanks for the work,
Frederic Jaeckel

lladdr.c.b 2009-12-22 12:08:14.000000000 +0100 renamed from lladdr.c 2009-12-22 12:08:23.000000000 +0100 +5 -0
@@ -36,6 +36,11 @@  
                    "%s %s lladdr %s",
                    IFCONFIG_PATH,
                    ifname, lladdr);
+#elif defined(TARGET_NETBSD)
+  argv_printf (&argv,
+                   "%s %s link %s",
+                   IFCONFIG_PATH,
+                   ifname, lladdr);
 #elif defined(TARGET_DARWIN)
   argv_printf (&argv,
                    "%s %s lladdr %s",
#1 lore raw

Ok, after some heavy testing this won't fix the problem.

Besides NetBSD wants an 'activate' after the lladdr, NetBSD won't calculate the inet6 address using the set lladdr, because somehow the ifconfig command will be provided _before_ the lladdr is set. Even the generic openvpn based lladdr is set _before_ the custom lladdr is set.

Dunno why, but it has to be fixed anyway. I'll look deeper into that in my free time soon.

regards,
Frederic Jaeckel

Quoted 26 lines · On Tue, 22 Dec 2009 12:15:45 +0100 Frederic Jaeckel <[email protected]...> wrote:

Hi,

todays openvpn isn't supporting NetBSDs way to set the lladdr for tap(4) devices.

Here's the patch to support this.

Please integrate this in the next release.

best regards and thanks for the work,
Frederic Jaeckel

lladdr.c.b 2009-12-22 12:08:14.000000000 +0100 renamed from lladdr.c 2009-12-22 12:08:23.000000000 +0100 +5 -0
@@ -36,6 +36,11 @@  
                    "%s %s lladdr %s",
                    IFCONFIG_PATH,
                    ifname, lladdr);
+#elif defined(TARGET_NETBSD)
+  argv_printf (&argv,
+                   "%s %s link %s",
+                   IFCONFIG_PATH,
+                   ifname, lladdr);
 #elif defined(TARGET_DARWIN)
   argv_printf (&argv,
                    "%s %s lladdr %s",