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/02/03 01:01:49
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

01:01:49Start

== calculate the needed buffer size ==
01:01:49inet6_opt_init(extbuf:0x3ffff3f8440, extlen:16)
01:01:49return 2
01:01:49extension 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 ==
01:01:49inet6_opt_finish(extbuf:0x3ffff3f8440, extlen:16, offset:2)
01:01:49return 8
01:01:49extension 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 ==
01:01:50inet6_opt_finish(extbuf:0x3ffff3f8440, extlen:16, offset:7)
01:01:50return 8
01:01:50extension 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 ==
01:01:50inet6_opt_finish(extbuf:0x3ffff3f8440, extlen:16, offset:8)
01:01:50return 8
01:01:50extension 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 ==
01:01:50inet6_opt_finish(extbuf:0x3ffff3f8440, extlen:16, offset:17)
01:01:50return -1
01:01:50extension header is:
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

OK
01:01:50End