Home
last modified time | relevance | path

Searched refs:scan_state (Results 1 – 3 of 3) sorted by relevance

/busybox-1.35.0/networking/udhcp/ !
Dcommon.c234 void FAST_FUNC init_scan_state(struct dhcp_packet *packet, struct dhcp_scan_state *scan_state) in init_scan_state() argument
236 scan_state->overload = 0; in init_scan_state()
237 scan_state->rem = sizeof(packet->options); in init_scan_state()
238 scan_state->optionptr = packet->options; in init_scan_state()
244 …nt8_t* FAST_FUNC udhcp_scan_options(struct dhcp_packet *packet, struct dhcp_scan_state *scan_state) in udhcp_scan_options() argument
254 if (scan_state->rem <= 0) { in udhcp_scan_options()
261 if (scan_state->optionptr[OPT_CODE] == DHCP_PADDING) { in udhcp_scan_options()
262 scan_state->rem--; in udhcp_scan_options()
263 scan_state->optionptr++; in udhcp_scan_options()
266 if (scan_state->optionptr[OPT_CODE] == DHCP_END) { in udhcp_scan_options()
[all …]
Dcommon.h232 void init_scan_state(struct dhcp_packet *packet, struct dhcp_scan_state *scan_state) FAST_FUNC;
233 uint8_t *udhcp_scan_options(struct dhcp_packet *packet, struct dhcp_scan_state *scan_state) FAST_FU…
Ddhcpc.c481 struct dhcp_scan_state scan_state; in fill_envp() local
489 init_scan_state(packet, &scan_state); in fill_envp()
495 while ((optptr = udhcp_scan_options(packet, &scan_state)) != NULL) { in fill_envp()
557 if (!(scan_state.overload & FILE_FIELD) && packet->file[0]) { in fill_envp()
562 if (!(scan_state.overload & SNAME_FIELD) && packet->sname[0]) { in fill_envp()