Home | History | Annotate | Download | only in ap

Lines Matching defs:hdr

181 	struct iapp_hdr *hdr;
188 hdr = (struct iapp_hdr *) buf;
189 hdr->version = IAPP_VERSION;
190 hdr->command = IAPP_CMD_ADD_notify;
191 hdr->identifier = host_to_be16(iapp->identifier++);
192 hdr->length = host_to_be16(sizeof(*hdr) + sizeof(*add));
194 add = (struct iapp_add_notify *) (hdr + 1);
266 struct iapp_hdr *hdr, int len)
268 struct iapp_add_notify *add = (struct iapp_add_notify *) (hdr + 1);
314 struct iapp_hdr *hdr;
334 len < (int) sizeof(*hdr) ? " (too short)" : "");
336 if (len < (int) sizeof(*hdr))
339 hdr = (struct iapp_hdr *) buf;
340 hlen = be_to_host16(hdr->length);
344 hdr->version, hdr->command,
345 be_to_host16(hdr->identifier), hlen);
346 if (hdr->version != IAPP_VERSION) {
348 hdr->version);
362 switch (hdr->command) {
364 iapp_process_add_notify(iapp, &from, hdr, hlen - sizeof(*hdr));
374 wpa_printf(MSG_INFO, "Unknown IAPP command %d", hdr->command);