Title | Updated 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 |
TestVersion | REL_1_1_18 |
Start | 2023/02/03 01:01:49 |
SystemName | (null) |
KernelVersion | (null) |
01:01:49 | Start |
== calculate the needed buffer size == | |
01:01:49 | inet6_opt_init(extbuf:0x3ffff3f8440, extlen:16) |
01:01:49 | return 2 |
01:01:49 | extension 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:49 | inet6_opt_finish(extbuf:0x3ffff3f8440, extlen:16, offset:2) |
01:01:49 | return 8 |
01:01:49 | extension 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:50 | inet6_opt_finish(extbuf:0x3ffff3f8440, extlen:16, offset:7) |
01:01:50 | return 8 |
01:01:50 | extension 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:50 | inet6_opt_finish(extbuf:0x3ffff3f8440, extlen:16, offset:8) |
01:01:50 | return 8 |
01:01:50 | extension 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:50 | inet6_opt_finish(extbuf:0x3ffff3f8440, extlen:16, offset:17) |
01:01:50 | return -1 |
01:01:50 | extension header is: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |
OK | |
01:01:50 | End |