Test Information

TitleUpdated total length taking into account the final padding of the extension header
CommandLine./tst_inet6_opt_finish_do --log=5.html --title=Updated total length taking into account the final padding of 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:0x7fff6c5673f0, extlen:16)
08:41:52return 2
08:41:52extension header is:
ff 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff

== updated total length taking into account the final padding ==
08:41:53inet6_opt_finish(extbuf:0x7fff6c5673f0, extlen:16, offset:2)
08:41:53return 8
08:41:53extension header is:
ff 01 01 04 00 00 00 00 ff ff ff ff ff ff ff ff

== check whether initializes the option by inserting a Pad1 or PadN option ==

Padding with PadN option

== updated total length taking into account the final padding ==
08:41:53inet6_opt_finish(extbuf:0x7fff6c5673f0, extlen:16, offset:7)
08:41:53return 8
08:41:53extension header is:
ff ff ff ff ff ff ff 00 ff ff ff ff ff ff ff ff

== check whether initializes the option by inserting a Pad1 option ==

Padding with Pad1 option

== updated total length which not need padding ==
08:41:53inet6_opt_finish(extbuf:0x7fff6c5673f0, extlen:16, offset:8)
08:41:53return 8
08:41:53extension header is:
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

== check whether initializes the option by not inserted any option ==

== updated total length with bad paramter ==
08:41:53inet6_opt_finish(extbuf:0x7fff6c5673f0, extlen:16, offset:17)
08:41:53return -1
08:41:53extension header is:
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

OK
08:41:53End