Lines Matching defs:dhcp
13 #include "common/dhcp.h"
40 struct dhcp_data *dhcp;
55 dhcp = (struct dhcp_data *) pos;
56 pos = (u8 *) (dhcp + 1);
91 sta->hlp_dhcp_discover->used = pos - (u8 *) dhcp;
136 wpa_printf(MSG_ERROR, "FILS: DHCP sendto failed: %s",
141 "FILS: Acting as DHCP rapid commit proxy for %s:%d",
155 struct dhcp_data *dhcp;
171 wpa_printf(MSG_DEBUG, "FILS: DHCP read failed: %s",
175 wpa_printf(MSG_DEBUG, "FILS: DHCP response from server %s:%d (len=%d)",
177 wpa_hexdump(MSG_MSGDUMP, "FILS: HLP - DHCP server response", buf, res);
178 if ((size_t) res < sizeof(*dhcp))
180 dhcp = (struct dhcp_data *) buf;
181 if (dhcp->op != 2)
183 if (dhcp->relay_ip != hapd->conf->own_ip_addr.u.v4.s_addr) {
185 "FILS: HLP - DHCP response to unknown relay address 0x%x",
186 dhcp->relay_ip);
189 dhcp->relay_ip = 0;
190 pos = (u8 *) (dhcp + 1);
194 wpa_printf(MSG_DEBUG, "FILS: HLP - no DHCP magic in response");
199 wpa_hexdump(MSG_DEBUG, "FILS: HLP - DHCP options in response",
228 "FILS: HLP - DHCP message type %u (rapid_commit=%d hw_addr="
230 msgtype, rapid_commit, MAC2STR(dhcp->hw_addr));
232 sta = ap_get_sta(hapd, dhcp->hw_addr);
235 "FILS: No pending HLP DHCP exchange with hw_addr "
236 MACSTR, MAC2STR(dhcp->hw_addr));
244 if (fils_dhcp_request(hapd, sta, dhcp, end) == 0)
268 iph->daddr = dhcp->client_ip;
329 const struct dhcp_data *dhcp;
338 if (len < sizeof(*dhcp))
340 dhcp = (const struct dhcp_data *) pos;
343 "FILS: HLP request DHCP: op=%u htype=%u hlen=%u hops=%u xid=0x%x",
344 dhcp->op, dhcp->htype, dhcp->hlen, dhcp->hops,
345 ntohl(dhcp->xid));
346 pos += sizeof(*dhcp);
347 if (dhcp->op != 1)
353 wpa_printf(MSG_DEBUG, "FILS: HLP - no DHCP magic");
358 wpa_hexdump(MSG_DEBUG, "FILS: HLP - DHCP options", pos, end - pos);
383 wpa_printf(MSG_DEBUG, "FILS: HLP - DHCP message type %u", msgtype);
407 "FILS: Failed to open DHCP socket: %s",
420 "FILS: Failed to bind DHCP socket: %s",
448 wpa_printf(MSG_ERROR, "FILS: DHCP sendto failed: %s",
459 "FILS: HLP relayed DHCP request to server %s:%d (rapid_commit=%d)",