Skip to content

Commit

Permalink
do not try to remove routes for local addresses during 'flush arp'
Browse files Browse the repository at this point in the history
Attempting this results in "invalid argument" errors from the kernel.

testing + ok Tom
  • Loading branch information
stspdotname committed Nov 1, 2024
1 parent 8c06089 commit d4510bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kroute.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ flushroutes(int af, int af2)
rtm = (struct rt_msghdr *)next;
if ((rtm->rtm_flags & (RTF_GATEWAY|RTF_STATIC|RTF_LLINFO)) == 0)
continue;
if (af2 == AF_LINK && (rtm->rtm_flags & RTF_LOCAL))
continue;
if (verbose) {
printf("\n%% Read message:\n");
print_rtmsg(rtm);
Expand Down

0 comments on commit d4510bc

Please sign in to comment.