Test Information

TitleReturn zero if the ifname is not a name of an interface
CommandLine./tst_if_name_to_index_bad --log=2.html --title=Return zero if the ifname is not a name of an interface
TestVersionREL_1_1_18
Start2023/02/03 01:00:09
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

01:00:09Start

== ifname "abc0" is not a name of an interface ==
01:00:09if_nametoindex(ifname:"abc0")
01:00:09return 0

== ifname "ifname" is not a name of an interface ==
01:00:09if_nametoindex(ifname:"ifname")
01:00:09return 0

== ifname "" is not a name of an interface ==
01:00:09if_nametoindex(ifname:"")
01:00:09return 0

OK
01:00:09End