[radvd-devel-l] Radvd fails to handle interface names with capital letters in them.

Ben Greear greearb at candelatech.com
Thu Jun 19 15:30:46 EDT 2008


This patch appears to fix the problem, though I haven't
actually tested full functionality.  That said, why is
it so restrictive to begin with?  Why not just the equivalent
of \S+ in perl-speak?  Mac-vlans have a # in their name by
default, for example, and users can rename it to anything they
want anyway...

diff -u radvd-1.1/scanner.l  radvd-1.1.ben/scanner.l
--- radvd-1.1/scanner.l 2007-10-25 13:34:55.000000000 -0700
+++ radvd-1.1.ben/scanner.l     2008-06-19 12:08:41.000000000 -0700
@@ -34,7 +34,7 @@
  addr3          ({hexdigit}{1,4}":"){7}{hexdigit}{1,4}
  addr           ({addr1}|{addr2}|{addr3}|"::")
  whitespace     ([ \t])+
-string         [a-z]([a-z:._-]|{digit})*([:.]{digit}+)?
+string         [a-zA-Z]([a-zA-Z:._-]|{digit})*([:.]{digit}+)?
  %%

  #.*$                   {/* ignore comments */}



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




More information about the radvd-devel-l mailing list