Test Information

TitleInitialize the option and returns a pointer to the location for the option content
CommandLine./tst_inet6_opt_append_init --log=3.html --title=Initialize the option and returns a pointer to the location for the option content
TestVersionREL_1_1_18
Start2023/01/17 08:41:51
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

08:41:51Start

== calculate the needed buffer size ==
08:41:51inet6_opt_init(extbuf:0x7fff476fa0d0, extlen:16)
08:41:51return 2
08:41:51extension header is:
00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00

== append option with option type set to 0 ==
08:41:51inet6_opt_append(extbuf:0x7fff476fa0d0, extlen:16, offset:2, type:0, len:4, align:4, databufp:0x7fff476fa0c8)
08:41:51return -1

== append option with option type set to 1 ==
08:41:51inet6_opt_append(extbuf:0x7fff476fa0d0, extlen:16, offset:2, type:1, len:4, align:4, databufp:0x7fff476fa0c8)
08:41:51return -1

== append option with align set to 3 ==
08:41:51inet6_opt_append(extbuf:0x7fff476fa0d0, extlen:16, offset:2, type:3, len:4, align:3, databufp:0x7fff476fa0c8)
08:41:51return -1

== append option with align set to 6 ==
08:41:51inet6_opt_append(extbuf:0x7fff476fa0d0, extlen:16, offset:2, type:3, len:4, align:6, databufp:0x7fff476fa0c8)
08:41:51return -1

== append option with align set to 16 ==
08:41:51inet6_opt_append(extbuf:0x7fff476fa0d0, extlen:16, offset:2, type:3, len:4, align:16, databufp:0x7fff476fa0c8)
08:41:51return -1

== append option to extension header ==
08:41:51inet6_opt_append(extbuf:0x7fff476fa0d0, extlen:16, offset:2, type:3, len:8, align:4, databufp:0x7fff476fa0c8)
08:41:51return 12
08:41:51extension header is:
00 01 03 08 00 00 00 00 00 00 00 00 00 00 00 00

OK
08:41:52End