mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-17 08:33:22 +00:00
![]() While benefit from using ll_name_to_index() with populated cache can potentially be exploited only in few places (e.g. bridge fdb/mdb/vlan show routines) there is another advantage of ll_name_to_index() over plain if_nametoindex(): in case of if_nametoindex() failure ll_name_to_index() will attempt to get index from common name in form "if%d" that may be returned from ll_index_to_name(). This makes output from ip(8) coherent with it's input. Note that most of the code already switched from plain if_nametoindex() to ll_name_to_index() to cached variant. Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> |
||
---|---|---|
.. | ||
.gitignore | ||
br_common.h | ||
bridge.c | ||
fdb.c | ||
link.c | ||
Makefile | ||
mdb.c | ||
monitor.c | ||
vlan.c |