Applied debian/patches/004_mac_address_range_fix.patch from
[rpld.git] / rpld_conf.lex
index a05ebb3..522fcb5 100644 (file)
@@ -125,9 +125,9 @@ hb  [0-9A-Fa-f][0-9A-Fa-f]
                                return MACADDR;
                        }
 
-{hb}:{hb}:{hb}:{hb}:{hb}:{hb}/[1-6]    {
+{hb}:{hb}:{hb}:{hb}:{hb}:{hb}\/[1-6]   {
                                strtomac(yytext, (yylval.pm.mac_address));
-                               yylval.pm.mac_len = yytext[13] - '0';
+                               yylval.pm.mac_len = 6 - (yytext[18] - '0');
                                return MACADDR_PARTIAL;
                        }