Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 175911 | Differences between
and this patch

Collapse All | Expand All

(-)dhcp.c (-3 / +2 lines)
Lines 245-259 Link Here
245
		p += iface->hwlen;
245
		p += iface->hwlen;
246
	}
246
	}
247
247
248
	*p++ = DHCP_END;
249
250
#ifdef BOOTP_MESSAGE_LENTH_MIN
248
#ifdef BOOTP_MESSAGE_LENTH_MIN
251
	/* Some crappy DHCP servers think they have to obey the BOOTP minimum
249
	/* Some crappy DHCP servers think they have to obey the BOOTP minimum
252
	 * messag length. They are wrong, but we should still cater for them */
250
	 * messag length. They are wrong, but we should still cater for them */
253
	while (p - m < BOOTP_MESSAGE_LENTH_MIN)
251
	while (p - m < BOOTP_MESSAGE_LENTH_MIN - 1)
254
		*p++ = DHCP_PAD;
252
		*p++ = DHCP_PAD;
255
#endif
253
#endif
256
254
255
	*p++ = DHCP_END;
257
	message_length = p - m;
256
	message_length = p - m;
258
257
259
	memset (&packet, 0, sizeof (struct udp_dhcp_packet));
258
	memset (&packet, 0, sizeof (struct udp_dhcp_packet));

Return to bug 175911