]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r209063:
authormlaier <mlaier@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 17 Jun 2010 19:46:36 +0000 (19:46 +0000)
committermlaier <mlaier@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 17 Jun 2010 19:46:36 +0000 (19:46 +0000)
commitfd0f003b258a0db9be15434f3cd140256acd3568
treee0abcb303a468982ef4b24da19afdbdd318ca1e8
parentcc38cadb4904d23253f94f7c10cf543c3fbb26ef
MFC r209063:
  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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209267 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/arp/arp.c