Title | Initializes the extension header to have the correct length field |
CommandLine | ./tst_inet6_opt_init_init --log=1.html --title=Initializes the extension header to have the correct length field |
TestVersion | REL_1_1_18 |
Start | 2023/01/17 08:41:50 |
SystemName | (null) |
KernelVersion | (null) |
08:41:50 | Start |
== calculate the needed buffer size if extlen is 0 == | |
08:41:50 | inet6_opt_init(extbuf:0x7ffe6d93c9e0, extlen:0) |
08:41:50 | return -1 |
08:41:50 | extension header is: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
== calculate the needed buffer size if extlen is not multiple of 8 == | |
08:41:50 | inet6_opt_init(extbuf:0x7ffe6d93c9e0, extlen:7) |
08:41:50 | return -1 |
08:41:50 | extension header is: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
== calculate the needed buffer size if extlen is multiple of 8 == | |
08:41:50 | inet6_opt_init(extbuf:0x7ffe6d93c9e0, extlen:16) |
08:41:50 | return 2 |
08:41:50 | extension header is: 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
OK | |
08:41:50 | End |