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

Test Sequence Execution Log

08:40:37Start

== source address string is 192.168.0.1 ==
08:40:37inet_pton(af:AF_INET, src:"192.168.0.1", dst:0x7fff4a9393fc)
08:40:37return 1, dst=192.168.0.1

== source address string is 192.168.0.01 ==
08:40:37inet_pton(af:AF_INET, src:"192.168.0.01", dst:0x7fff4a9393fc)
08:40:37return 0

== source address string is 192.168.0.FF ==
08:40:37inet_pton(af:AF_INET, src:"192.168.0.FF", dst:0x7fff4a9393fc)
08:40:37return 0

== source address string is 192.168.0.1000 ==
08:40:38inet_pton(af:AF_INET, src:"192.168.0.1000", dst:0x7fff4a9393fc)
08:40:38return 0

== source address string is 192.168.0.256 ==
08:40:38inet_pton(af:AF_INET, src:"192.168.0.256", dst:0x7fff4a9393fc)
08:40:38return 0

== source address string is 192.168.0 ==
08:40:38inet_pton(af:AF_INET, src:"192.168.0", dst:0x7fff4a9393fc)
08:40:38return 0

== source address string is unix, not an AF_INET address ==
08:40:38inet_pton(af:AF_UNIX, src:"unix", dst:0x7fff4a9393fc)
08:40:38return -1, error=EAFNOSUPPORT

OK
08:40:38End