aboutgitcodebugslistschat
path: root/contrib/qemu/git:
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2025-02-18 09:42:28 +0100
committerStefano Brivio <sbrivio@redhat.com>2025-02-19 23:33:19 +0100
commit16553c82806e0a55508baf553cb79e902638c10f (patch)
treeba34d65863998b22da924025aa66f2ffb87e2ad0 /contrib/qemu/git:
parent183bedf478e34079244fe4cfbb2c1a0f02a5a037 (diff)
downloadpasst-16553c82806e0a55508baf553cb79e902638c10f.tar
passt-16553c82806e0a55508baf553cb79e902638c10f.tar.gz
passt-16553c82806e0a55508baf553cb79e902638c10f.tar.bz2
passt-16553c82806e0a55508baf553cb79e902638c10f.tar.lz
passt-16553c82806e0a55508baf553cb79e902638c10f.tar.xz
passt-16553c82806e0a55508baf553cb79e902638c10f.tar.zst
passt-16553c82806e0a55508baf553cb79e902638c10f.zip
dhcp: Add option code byte in calculation for OPT_MAX boundary check
Otherwise we'll limit messages to 577 bytes, instead of 576 bytes as intended: $ fqdn="thirtytwocharactersforeachlabel.thirtytwocharactersforeachlabel.thirtytwocharactersforeachlabel.thirtytwocharactersforeachlabel.thirtytwocharactersforeachlabel.thirtytwocharactersforeachlabel.thirtytwocharactersforeachlabel.then_make_it_251_with_this" $ hostname="__eighteen_bytes__" $ ./pasta --fqdn ${fqdn} -H ${hostname} -p dhcp.pcap -- /sbin/dhclient -4 Saving packet capture to dhcp.pcap $ tshark -r dhcp.pcap -V -Y 'dhcp.option.value == 5' | grep "Total Length" Total Length: 577 This was hidden by the issue fixed by commit bcc4908c2b4a ("dhcp Remove option 255 length byte") until now. Fixes: 31e8109a86ee ("dhcp, dhcpv6: Add hostname and client fqdn ops") Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Enrique Llorente <ellorent@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/qemu/git:')
0 files changed, 0 insertions, 0 deletions