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

Test Sequence Execution Log

01:01:15Start

== create an IPv6/UDP socket ==
01:01:15socket(domain:AF_INET6, type:SOCK_DGRAM, protocol:0)
01:01:15return sockfd=4
01:01:16tst_get_unused_port() get port 47202

== bind socket to address ==
01:01:16bind(sockfd:4, my_addr:0x3ffc1678e14, addrlen:28)
01:01:16return 0

== send message with hot limit set to -1 ==
01:01:17sendmsg(sockfd:4, msg:0x3ffc1678dd8, flags:0)
01:01:17return 100

== recv message ==
01:01:17recv(sockfd:4, buf:0x3ffc1678d4c, len:100, flags:64)
01:01:17return 100

== send message with hot limit set to 0 ==
01:01:17sendmsg(sockfd:4, msg:0x3ffc1678dd8, flags:0)
01:01:17return 100

== recv message ==
01:01:17recv(sockfd:4, buf:0x3ffc1678d4c, len:100, flags:64)
01:01:17return 100

== send message with hot limit set to 64 ==
01:01:17sendmsg(sockfd:4, msg:0x3ffc1678dd8, flags:0)
01:01:17return 100

== recv message ==
01:01:17recv(sockfd:4, buf:0x3ffc1678d4c, len:100, flags:64)
01:01:17return 100

== send message with hot limit set to 255 ==
01:01:17sendmsg(sockfd:4, msg:0x3ffc1678dd8, flags:0)
01:01:17return 100

== recv message ==
01:01:17recv(sockfd:4, buf:0x3ffc1678d4c, len:100, flags:64)
01:01:17return 100

== send message with hot limit set to 256 ==
01:01:17sendmsg(sockfd:4, msg:0x3ffc1678dd8, flags:0)
01:01:17return -1

== send message with hot limit set to -2 ==
01:01:17sendmsg(sockfd:4, msg:0x3ffc1678dd8, flags:0)
01:01:17return -1

OK
01:01:18End