Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arp - accept NUD_PERMANENT entries #2937

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/waltz/ip/fd_ip.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,9 @@ fd_ip_route_ip_addr( uchar * out_dst_mac,
fd_memcpy( out_dst_mac, arp_entry->mac_addr, 6 );

/* check the status */
if( arp_entry->state == NUD_REACHABLE ) return FD_IP_SUCCESS;
/* both NUD_REACHABLE and NUD_PERMANENT are acceptable */
uint accept_states = (uint)NUD_REACHABLE | (uint)NUD_PERMANENT;
if( FD_LIKELY( (uint)arp_entry->state & accept_states ) ) return FD_IP_SUCCESS;

/* all other statutes, try probing */
return FD_IP_PROBE_RQD;
Expand Down
Loading