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/26 16:33:41
SystemName(null)
KernelVersion(null)

Test Sequence Execution Log

16:33:41Start

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

OK
16:33:42End