aboutgitcodebugslistschat
path: root/util.c
diff options
context:
space:
mode:
authorEnrique Llorente <ellorent@redhat.com>2025-02-04 10:43:37 +0100
committerStefano Brivio <sbrivio@redhat.com>2025-02-07 10:36:10 +0100
commitfe8b6a7c42625ee1fc63186204d32458b1ba31b9 (patch)
treebf4e540b87ce0f6ceaa3b402092af8814face4cc /util.c
parentb7b70ba24369891d79079d247f246c1e357948d2 (diff)
downloadpasst-fe8b6a7c42625ee1fc63186204d32458b1ba31b9.tar
passt-fe8b6a7c42625ee1fc63186204d32458b1ba31b9.tar.gz
passt-fe8b6a7c42625ee1fc63186204d32458b1ba31b9.tar.bz2
passt-fe8b6a7c42625ee1fc63186204d32458b1ba31b9.tar.lz
passt-fe8b6a7c42625ee1fc63186204d32458b1ba31b9.tar.xz
passt-fe8b6a7c42625ee1fc63186204d32458b1ba31b9.tar.zst
passt-fe8b6a7c42625ee1fc63186204d32458b1ba31b9.zip
dhcp: Don't re-use request message for reply
The logic composing the DHCP reply message is reusing the request message to compose it, future long options like FQDN may exceed the request message limit making it go beyond the lower bound. This change creates a new reply message with a fixed options size of 308 and fills it in with proper fields from requests adding on top the generated options, this way the reply lower bound does not depend on the request. Signed-off-by: Enrique Llorente <ellorent@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.c')
0 files changed, 0 insertions, 0 deletions