Re: [RFC-PATCH] libiscsi dhcp handler

From: David Miller
Date: Tue Jan 05 2010 - 01:42:22 EST


From: Rakesh Ranjan <rakesh@xxxxxxxxxxx>
Date: Mon, 16 Nov 2009 19:15:34 +0530

> + /* Construct UDP header */
> + udph = &pkt->udph;
> + udph->source = htons(DHCPC_CLIENT_PORT);
> + udph->dest = htons(DHCPC_SERVER_PORT);
> + udph->len = htons(sizeof(struct dhcp_pkt) - sizeof(struct iphdr));

UDP checksum is not set, and is also not validated on receive.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/