Test Information

TitleSpecifying the outgoing Hop Limit as ancillary data
CommandLine./tst_send_hop_limit_udp --log=9.html --title=Specifying the outgoing Hop Limit as ancillary data
TestVersionREL_1_1_18
Start2023/01/26 16:33:07
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

16:33:07Start

== create an IPv6/UDP socket ==
16:33:07socket(domain:AF_INET6, type:SOCK_DGRAM, protocol:0)
16:33:07return sockfd=4
16:33:08tst_get_unused_port() get port 51959

== bind socket to address ==
16:33:08bind(sockfd:4, my_addr:0x3ffe2178dc4, addrlen:28)
16:33:08return 0

== send message with hot limit set to -1 ==
16:33:08sendmsg(sockfd:4, msg:0x3ffe2178d88, flags:0)
16:33:08return 100

== recv message ==
16:33:08recv(sockfd:4, buf:0x3ffe2178cfc, len:100, flags:64)
16:33:08return 100

== send message with hot limit set to 0 ==
16:33:08sendmsg(sockfd:4, msg:0x3ffe2178d88, flags:0)
16:33:08return 100

== recv message ==
16:33:08recv(sockfd:4, buf:0x3ffe2178cfc, len:100, flags:64)
16:33:08return 100

== send message with hot limit set to 64 ==
16:33:08sendmsg(sockfd:4, msg:0x3ffe2178d88, flags:0)
16:33:08return 100

== recv message ==
16:33:09recv(sockfd:4, buf:0x3ffe2178cfc, len:100, flags:64)
16:33:09return 100

== send message with hot limit set to 255 ==
16:33:09sendmsg(sockfd:4, msg:0x3ffe2178d88, flags:0)
16:33:09return 100

== recv message ==
16:33:09recv(sockfd:4, buf:0x3ffe2178cfc, len:100, flags:64)
16:33:09return 100

== send message with hot limit set to 256 ==
16:33:09sendmsg(sockfd:4, msg:0x3ffe2178d88, flags:0)
16:33:09return -1

== send message with hot limit set to -2 ==
16:33:09sendmsg(sockfd:4, msg:0x3ffe2178d88, flags:0)
16:33:09return -1

OK
16:33:09End