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/02/03 01:00:35
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

01:00:35Start

== source address string is 192.168.0.1 ==
01:00:36inet_pton(af:AF_INET, src:"192.168.0.1", dst:0x3ffcae793f4)
01:00:36return 1, dst=192.168.0.1

== source address string is 192.168.0.01 ==
01:00:36inet_pton(af:AF_INET, src:"192.168.0.01", dst:0x3ffcae793f4)
01:00:36return 0

== source address string is 192.168.0.FF ==
01:00:36inet_pton(af:AF_INET, src:"192.168.0.FF", dst:0x3ffcae793f4)
01:00:36return 0

== source address string is 192.168.0.1000 ==
01:00:36inet_pton(af:AF_INET, src:"192.168.0.1000", dst:0x3ffcae793f4)
01:00:36return 0

== source address string is 192.168.0.256 ==
01:00:36inet_pton(af:AF_INET, src:"192.168.0.256", dst:0x3ffcae793f4)
01:00:36return 0

== source address string is 192.168.0 ==
01:00:36inet_pton(af:AF_INET, src:"192.168.0", dst:0x3ffcae793f4)
01:00:36return 0

== source address string is unix, not an AF_INET address ==
01:00:36inet_pton(af:AF_UNIX, src:"unix", dst:0x3ffcae793f4)
01:00:36return -1, error=EAFNOSUPPORT

OK
01:00:36End