Lines Matching defs:hdr
177 struct iapp_hdr *hdr;
184 hdr = (struct iapp_hdr *) buf;
185 hdr->version = IAPP_VERSION;
186 hdr->command = IAPP_CMD_ADD_notify;
187 hdr->identifier = host_to_be16(iapp->identifier++);
188 hdr->length = host_to_be16(sizeof(*hdr) + sizeof(*add));
190 add = (struct iapp_add_notify *) (hdr + 1);
262 struct iapp_hdr *hdr, int len)
264 struct iapp_add_notify *add = (struct iapp_add_notify *) (hdr + 1);
310 struct iapp_hdr *hdr;
330 len < (int) sizeof(*hdr) ? " (too short)" : "");
332 if (len < (int) sizeof(*hdr))
335 hdr = (struct iapp_hdr *) buf;
336 hlen = be_to_host16(hdr->length);
340 hdr->version, hdr->command,
341 be_to_host16(hdr->identifier), hlen);
342 if (hdr->version != IAPP_VERSION) {
344 hdr->version);
358 switch (hdr->command) {
360 iapp_process_add_notify(iapp, &from, hdr, len - sizeof(*hdr));
370 wpa_printf(MSG_INFO, "Unknown IAPP command %d", hdr->command);