diff options
| author | Laurent Vivier <lvivier@redhat.com> | 2025-09-02 09:52:39 +0200 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-09-03 20:43:27 +0200 |
| commit | feb33305e24021c2e773ef417d45285003dfb00d (patch) | |
| tree | 4febb7d7299b3c1b3e1a87b92fbef81af3b7c787 /test | |
| parent | c4cad316e4e9d65e3b77ea3afa72cddc2b43258a (diff) | |
| download | passt-feb33305e24021c2e773ef417d45285003dfb00d.tar passt-feb33305e24021c2e773ef417d45285003dfb00d.tar.gz passt-feb33305e24021c2e773ef417d45285003dfb00d.tar.bz2 passt-feb33305e24021c2e773ef417d45285003dfb00d.tar.lz passt-feb33305e24021c2e773ef417d45285003dfb00d.tar.xz passt-feb33305e24021c2e773ef417d45285003dfb00d.tar.zst passt-feb33305e24021c2e773ef417d45285003dfb00d.zip | |
dhcpv6: Use iov_tail in dhcpv6_opt()
dhcpv6_opt() and its callers are refactored for iov_tail option parsing,
replacing direct offset management for improved robustness.
Its signature is now `bool dhcpv6_opt(iov_tail *data, type)`. `*data` (in/out)
points to a found option on `true` return or is restored on `false`.
The main dhcpv6() function uses IOV_REMOVE_HEADER for the msg_hdr, then
passes the iov_tail (now at options start) to the new dhcpv6_opt().
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
