Test Information

TitleCalculate the needed buffer size for the extension header
CommandLine./tst_inet6_opt_append_calc --log=4.html --title=Calculate the needed buffer size for the extension header
TestVersionREL_1_1_18
Start2023/01/17 08:41:52
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

08:41:52Start

== calculate the needed buffer size ==
08:41:52inet6_opt_init(extbuf:(nil), extlen:16)
08:41:52return 2

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

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

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

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

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

== append option to extension header ==
08:41:52inet6_opt_append(extbuf:(nil), extlen:16, offset:2, type:3, len:8, align:4, databufp:(nil))
08:41:52return 12

OK
08:41:52End