Skip to content

Commit

Permalink
make 'flush routes' and 'flush arp' operate on the current rtable
Browse files Browse the repository at this point in the history
These commands were hard-coded to use rtable 0.

Problem found by Tom.
  • Loading branch information
stspdotname committed Nov 1, 2024
1 parent 9f47d3c commit f9706d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kroute.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ flushroutes(int af, int af2, int flush_verbose)
}

shutdown(s, 0); /* Don't want to read back our messages */
rtdump = getrtdump(af, 0, 0);
rtdump = getrtdump(af, 0, cli_rtable);
if (rtdump == NULL) {
close(s);
return;
Expand Down

0 comments on commit f9706d0

Please sign in to comment.