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/01/17 08:40:10
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

08:40:10Start

== ifname "abc0" is not a name of an interface ==
08:40:10if_nametoindex(ifname:"abc0")
08:40:10return 0

== ifname "ifname" is not a name of an interface ==
08:40:10if_nametoindex(ifname:"ifname")
08:40:10return 0

== ifname "" is not a name of an interface ==
08:40:10if_nametoindex(ifname:"")
08:40:10return 0

OK
08:40:11End