Test Information

TitleConvert an text string address into its AF_INET numeric binary form
CommandLine./tst_inet_pton_inet --log=6.html --title=Convert an text string address into its AF_INET numeric binary form
TestVersionREL_1_1_18
Start2023/01/26 16:32:27
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

16:32:27Start

== source address string is 192.168.0.1 ==
16:32:27inet_pton(af:AF_INET, src:"192.168.0.1", dst:0x3ffde4f89b4)
16:32:27return 1, dst=192.168.0.1

== source address string is 192.168.0.01 ==
16:32:27inet_pton(af:AF_INET, src:"192.168.0.01", dst:0x3ffde4f89b4)
16:32:27return 0

== source address string is 192.168.0.FF ==
16:32:27inet_pton(af:AF_INET, src:"192.168.0.FF", dst:0x3ffde4f89b4)
16:32:27return 0

== source address string is 192.168.0.1000 ==
16:32:27inet_pton(af:AF_INET, src:"192.168.0.1000", dst:0x3ffde4f89b4)
16:32:27return 0

== source address string is 192.168.0.256 ==
16:32:27inet_pton(af:AF_INET, src:"192.168.0.256", dst:0x3ffde4f89b4)
16:32:27return 0

== source address string is 192.168.0 ==
16:32:27inet_pton(af:AF_INET, src:"192.168.0", dst:0x3ffde4f89b4)
16:32:27return 0

== source address string is unix, not an AF_INET address ==
16:32:27inet_pton(af:AF_UNIX, src:"unix", dst:0x3ffde4f89b4)
16:32:27return -1, error=EAFNOSUPPORT

OK
16:32:27End