]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-dhcp-client: fix packet length and checksum in IP header
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 20 Mar 2026 17:11:28 +0000 (02:11 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 20 Mar 2026 20:21:28 +0000 (05:21 +0900)
src/libsystemd-network/test-dhcp-client.c

index 7a8b149e2036346a2726dd313bcfec314128134c..95a7d0659228994a99d91655cb4802783a77d32a 100644 (file)
@@ -540,8 +540,8 @@ static void test_addr_acq(sd_event *e) {
 }
 
 static uint8_t test_addr_bootp_reply[] = {
-        0x45, 0x00, 0x01, 0x48, 0x00, 0x00, 0x40, 0x00,
-        0xff, 0x11, 0x70, 0xa3, 0x0a, 0x00, 0x00, 0x02,
+        0x45, 0x00, 0x01, 0x40, 0x00, 0x00, 0x40, 0x00,
+        0xff, 0x11, 0x70, 0xab, 0x0a, 0x00, 0x00, 0x02,
         0xff, 0xff, 0xff, 0xff, 0x00, 0x43, 0x00, 0x44,
         0x01, 0x2c, 0x2b, 0x91, 0x02, 0x01, 0x06, 0x00,
         0x69, 0xd3, 0x79, 0x11, 0x17, 0x00, 0x80, 0x00,