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/01/17 08:41:22
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

08:41:22Start

== create an IPv6/UDP socket ==
08:41:22socket(domain:AF_INET6, type:SOCK_DGRAM, protocol:0)
08:41:22return sockfd=4
08:41:23tst_get_unused_port() get port 45762

== bind socket to address ==
08:41:23bind(sockfd:4, my_addr:0x7ffc8f161dd0, addrlen:28)
08:41:23return 0

== send message with traffic class set to -1 ==
08:41:23sendmsg(sockfd:4, msg:0x7ffc8f161d90, flags:0)
08:41:23return 100

== recv message ==
08:41:23recv(sockfd:4, buf:0x7ffc8f161cf0, len:100, flags:64)
08:41:23return 100

== send message with traffic class set to 0 ==
08:41:23sendmsg(sockfd:4, msg:0x7ffc8f161d90, flags:0)
08:41:23return 100

== recv message ==
08:41:23recv(sockfd:4, buf:0x7ffc8f161cf0, len:100, flags:64)
08:41:23return 100

== send message with traffic class set to 64 ==
08:41:24sendmsg(sockfd:4, msg:0x7ffc8f161d90, flags:0)
08:41:24return 100

== recv message ==
08:41:24recv(sockfd:4, buf:0x7ffc8f161cf0, len:100, flags:64)
08:41:24return 100

== send message with traffic class set to 255 ==
08:41:24sendmsg(sockfd:4, msg:0x7ffc8f161d90, flags:0)
08:41:24return 100

== recv message ==
08:41:24recv(sockfd:4, buf:0x7ffc8f161cf0, len:100, flags:64)
08:41:24return 100

== send message with traffic class set to 256 ==
08:41:24sendmsg(sockfd:4, msg:0x7ffc8f161d90, flags:0)
08:41:24return -1

== send message with traffic class set to -2 ==
08:41:24sendmsg(sockfd:4, msg:0x7ffc8f161d90, flags:0)
08:41:24return -1

OK
08:41:24End