Skip to content

Commit

Permalink
make 'show arp' respect the current routing table
Browse files Browse the repository at this point in the history
ok Tom
  • Loading branch information
stspdotname committed Nov 1, 2024
1 parent f9706d0 commit c0130f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arp.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ arpsearch(FILE *output, char *delim, in_addr_t addr, void (*action)
struct rtdump *rtdump;
int found_entry = 0;

rtdump = getrtdump(AF_INET, RTF_LLINFO, 0);
rtdump = getrtdump(AF_INET, RTF_LLINFO, cli_rtable);
if (rtdump == NULL)
return 0;
for (next = rtdump->buf; next < rtdump->lim; next += rtm->rtm_msglen)
Expand Down

0 comments on commit c0130f8

Please sign in to comment.