diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-09-01 16:00:19 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-09-01 16:49:21 +0200 |
commit | 353185cd3642d62dadfc9d9be020a4f729400e41 (patch) | |
tree | 879404f891fc0ec0497e455435e92236fcbaf49b /util.h | |
parent | d2272f74f72469c3d4c2368439f36bb3b348db7c (diff) | |
download | passt-353185cd3642d62dadfc9d9be020a4f729400e41.tar passt-353185cd3642d62dadfc9d9be020a4f729400e41.tar.gz passt-353185cd3642d62dadfc9d9be020a4f729400e41.tar.bz2 passt-353185cd3642d62dadfc9d9be020a4f729400e41.tar.lz passt-353185cd3642d62dadfc9d9be020a4f729400e41.tar.xz passt-353185cd3642d62dadfc9d9be020a4f729400e41.tar.zst passt-353185cd3642d62dadfc9d9be020a4f729400e41.zip |
dhcpv6: Fix parsing for IA_ADDR suboptions of IA_NA/IA_TA
Once we're past the IA_NA or IA_TA option itself, before we start
looking for IA_ADDR suboptions, we need to subtract the length
of the option we parsed so far, otherwise we might end up reading
past the end of the message, or miss some parts.
While at it, streamline calculations in dhcpv6_opt().
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.h')
0 files changed, 0 insertions, 0 deletions