Test Information

TitleSpecifying the traffic class as ancillary data
CommandLine./tst_send_tclass_udp --log=11.html --title=Specifying the traffic class as ancillary data
TestVersionREL_1_1_18
Start2023/02/03 01:01:19
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

01:01:19Start

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

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

== send message with traffic class set to -1 ==
01:01:21sendmsg(sockfd:4, msg:0x3ffebc78e38, flags:0)
01:01:21return 100

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

== send message with traffic class set to 0 ==
01:01:21sendmsg(sockfd:4, msg:0x3ffebc78e38, flags:0)
01:01:21return 100

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

== send message with traffic class set to 64 ==
01:01:21sendmsg(sockfd:4, msg:0x3ffebc78e38, flags:0)
01:01:21return 100

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

== send message with traffic class set to 255 ==
01:01:21sendmsg(sockfd:4, msg:0x3ffebc78e38, flags:0)
01:01:21return 100

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

== send message with traffic class set to 256 ==
01:01:21sendmsg(sockfd:4, msg:0x3ffebc78e38, flags:0)
01:01:21return -1

== send message with traffic class set to -2 ==
01:01:22sendmsg(sockfd:4, msg:0x3ffebc78e38, flags:0)
01:01:22return -1

OK
01:01:22End