commit 8c49d18a44147af1ab39ce950b96914db1bde50f from: Stefan Sperling date: Thu Oct 31 17:35:46 2024 UTC do not try to remove routes for local addresses during 'flush arp' Attempting this results in "invalid argument" errors from the kernel. commit - 94e2f9700de638cd21a4fe0aa58bf6254215ae02 commit + 8c49d18a44147af1ab39ce950b96914db1bde50f blob - a899258cb7f4da6759becc236358b0b715f46fc0 blob + 00017bf8a8f2051af1d1393e820c5bfc9a69e7d3 --- kroute.c +++ kroute.c @@ -172,6 +172,8 @@ flushroutes(int af, int af2) for (next = rtdump->buf; next < rtdump->lim; next += rtm->rtm_msglen) { 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");