08:41:53 | Start |
| == calculate the needed buffer size == |
08:41:54 | inet6_opt_init(extbuf:(nil), extlen:16)
|
08:41:54 | return 2
|
| == calculate the needed buffer size while the offset is not multiple of 8 bytes == |
08:41:54 | inet6_opt_finish(extbuf:(nil), extlen:16, offset:2)
|
08:41:54 | return 8
|
| == calculate the needed buffer size while the offset is multiple of 8 bytes == |
08:41:54 | inet6_opt_finish(extbuf:(nil), extlen:16, offset:8)
|
08:41:54 | return 8
|
| == calculate the needed buffer size while the offset is lager than extlen == |
08:41:54 | inet6_opt_finish(extbuf:(nil), extlen:16, offset:17)
|
08:41:54 | return 24
|
| == calculate the needed buffer size while the offset is equal to extlen == |
08:41:54 | inet6_opt_finish(extbuf:(nil), extlen:16, offset:16)
|
08:41:54 | return 16
|
| OK |
08:41:54 | End |