Skip to content
Snippets Groups Projects
Commit 6f2ad30c authored by Jan-Philipp Litza's avatar Jan-Philipp Litza
Browse files

gluon-radv-filterd: Fix and simplify originators parsing

Previously, only one nexthop was recognized. The parsing of the whole file
failed immediately when two or more hops were possible for *any* originator (not
only for one with a router behind it).

This makes the parser ignore most of the line in the originators table.
parent 0cffcfc5
No related branches found
No related tags found
No related merge requests found
...@@ -379,7 +379,7 @@ static void update_tqs() { ...@@ -379,7 +379,7 @@ static void update_tqs() {
// skip header // skip header
while (fgetc(f) != '\n'); while (fgetc(f) != '\n');
while (fgetc(f) != '\n'); while (fgetc(f) != '\n');
while (fscanf(f, F_MAC " %*fs (%hhu) " F_MAC_IGN " [ %*[^]]]: " F_MAC_IGN " (%*3u)\n", while (fscanf(f, F_MAC " %*fs (%hhu) %*[^\n]\n",
F_MAC_VAR(&mac_a), &tq) == 7) { F_MAC_VAR(&mac_a), &tq) == 7) {
foreach(router, G.routers) { foreach(router, G.routers) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment