Home | History | Annotate | Download | only in ap

Lines Matching refs: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);
273 struct iapp_hdr *hdr, int len)
275 struct iapp_add_notify *add = (struct iapp_add_notify *) (hdr + 1);
321 struct iapp_hdr *hdr;
340 len < (int) sizeof(*hdr) ? " (too short)" : "");
342 if (len < (int) sizeof(*hdr))
345 hdr = (struct iapp_hdr *) buf;
346 hlen = be_to_host16(hdr->length);
350 hdr->version, hdr->command,
351 be_to_host16(hdr->identifier), hlen);
352 if (hdr->version != IAPP_VERSION) {
354 hdr->version);
367 switch (hdr->command) {
369 iapp_process_add_notify(iapp, &from, hdr, hlen - sizeof(*hdr));
379 printf("Unknown IAPP command %d\n", hdr->command);