HomeFreeBSD

Cache the last result from if_indextoname for printing. This speeds up
rS209063Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Cache the last result from if_indextoname for printing. This speeds up
"arp -an" when using a lot of aliases (on a single interface).

A better fix would include a better interface for if_indextoname than
getting the whole address list from the kernel just to find the one
index->name mapping.

Reported & analyzed by: Nick Rogers
MFC after: 3 days

Details

Provenance
mlaierAuthored on
Parents
rS209062: fix a few cases where a string is passed via format argument instead of
Branches
Unknown
Tags
Unknown

Event Timeline