[radvd-devel-l] Why not start if routing is disabled?

Ben Greear greearb at candelatech.com
Thu May 6 19:35:19 EDT 2010


On 05/06/2010 04:04 PM, Ben Greear wrote:
> Radvd seems to check for net.ipv6.conf.all.forwarding being enabled,
> but I'd like to disable this sysctl and just enable individual
> interfaces for IPv6 routing.
>
> I can hack the radvd code, but perhaps upstream code could also
> be fixed so that it warns at worst if IPv6 routing is disabled?
>
> Thanks,
> Ben
>

Something like this, perhaps?

diff --git a/3plibs/radvd-1.6/radvd.c b/3plibs/radvd-1.6/radvd.c
index 310b16c..bf50d31 100644
--- a/3plibs/radvd-1.6/radvd.c
+++ b/3plibs/radvd-1.6/radvd.c
@@ -207,12 +207,7 @@ main(int argc, char *argv[])

         /* if we know how to do it, check whether forwarding is enabled */
         if (check_ip6_forwarding()) {
-               if (get_debuglevel() == 0) {
-                       flog(LOG_ERR, "IPv6 forwarding seems to be disabled, exiting");
-                       exit(1);
-               }
-               else
-                       flog(LOG_WARNING, "IPv6 forwarding seems to be disabled, but continuing anyway.");
+               flog(LOG_WARNING, "Global IPv6 forwarding seems to be disabled, continuing anyway.");
         }

         /* parse config file */


-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com




More information about the radvd-devel-l mailing list