* Loop over all the options data
*/
while (p < end) {
- if (p[0] == 0) break; /* padding */
-
len = fr_dhcpv4_decode_option(ctx, &tmp, p, (end - p), packet_ctx);
if (len <= 0) {
fail:
p = data + 44;
end = p + 64;
while (p < end) {
- if (p[0] == 0) break; /* padding */
-
len = fr_dhcpv4_decode_option(ctx, &tmp,
p, end - p, packet_ctx);
if (len <= 0) goto fail;
p = data + 108;
end = p + 128;
while (p < end) {
- if (p[0] == 0) break; /* padding */
-
len = fr_dhcpv4_decode_option(ctx, &tmp,
p, end - p, packet_ctx);
if (len <= 0) goto fail;