← Commit list

a523e2efa

Denis Vlasenko
Denis Vlasenko
2008-02-20
FAILED Duration: 17s

Subject

udhcp: we were forgetting to set right op byte in tha packet for DHCPDECLINE. Fixing, and making code smaller.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/udhcp/packet.c+1 -6
@@ -18,13 +18,8 @@
void udhcp_init_header(struct dhcpMessage *packet, char type)
{
memset(packet, 0, sizeof(struct dhcpMessage));
+ packet->op = BOOTREQUEST;
switch (type) {
- case DHCPDISCOVER:
- case DHCPREQUEST:
- case DHCPRELEASE:
- case DHCPINFORM:
- packet->op = BOOTREQUEST;
- break;
case DHCPOFFER:
case DHCPACK:
case DHCPNAK: