This makes it a lot more clear as to the intent of the code
and it's not to handle from UDP.
}
static void
-dhcp_handlepacket(struct interface *ifp, uint8_t *data, size_t len)
+dhcp_handlebpf(struct interface *ifp, uint8_t *data, size_t len)
{
struct bootp *bootp;
struct in_addr from;
}
break;
}
- dhcp_handlepacket(ifp, buf, (size_t)bytes);
+ dhcp_handlebpf(ifp, buf, (size_t)bytes);
/* Check we still have a state after processing. */
if ((state = D_STATE(ifp)) == NULL)
break;