return -1;
}
+ debug_pair(vp);
*opt_len += len;
p += len;
};
} else {
len = fr_dhcp_vp2data(p, freespace, vp);
+ if (len >= 0) debug_pair(vp);
fr_cursor_next(cursor);
previous = vp->da;
}
p += len;
*opt_len += len;
freespace -= len;
- debug_pair(vp);
} while ((vp = fr_cursor_current(cursor)) && previous && (previous == vp->da) && vp->da->flags.array);
p[2] = packet->code - PW_DHCP_OFFSET;
p += 3;
-
/*
* Pre-sort attributes into contiguous blocks so that fr_dhcp_encode_option
* operates correctly. This changes the order of the list, but never mind...