Commit db67ddf1 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra

ipv4: recent recvfrom change broke expected lengths

parent dd8c58bc
......@@ -64,9 +64,9 @@ void ipv4_poll(void)
if ((len = ptpd_netif_recvfrom(ipv4_socket, &addr,
buf, sizeof(buf), 0)) > 0) {
if (needIP)
process_bootp(buf, len - 14);
process_bootp(buf, len);
if (!needIP && (len = process_icmp(buf, len - 14)) > 0)
if (!needIP && (len = process_icmp(buf, len)) > 0)
ptpd_netif_sendto(ipv4_socket, &addr, buf, len, 0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment