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/01/17 08:41:52 |
SystemName | (null) |
KernelVersion | (null) |
08:41:52 | Start |
== calculate the needed buffer size == | |
08:41:52 | inet6_opt_init(extbuf:0x7fff6c5673f0, extlen:16) |
08:41:52 | return 2 |
08:41:52 | 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 == | |
08:41:53 | inet6_opt_finish(extbuf:0x7fff6c5673f0, extlen:16, offset:2) |
08:41:53 | return 8 |
08:41:53 | 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 == | |
08:41:53 | inet6_opt_finish(extbuf:0x7fff6c5673f0, extlen:16, offset:7) |
08:41:53 | return 8 |
08:41:53 | 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 == | |
08:41:53 | inet6_opt_finish(extbuf:0x7fff6c5673f0, extlen:16, offset:8) |
08:41:53 | return 8 |
08:41:53 | 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 == | |
08:41:53 | inet6_opt_finish(extbuf:0x7fff6c5673f0, extlen:16, offset:17) |
08:41:53 | return -1 |
08:41:53 | extension header is: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |
OK | |
08:41:53 | End |