Home | History | Annotate | Download | only in wps

Lines Matching refs:pos

42 	u8 *pos = data + 1;
46 record->type_length = *pos++;
50 record->payload_length = *pos++;
54 record->payload_length = ntohl(*(u32 *)pos);
55 pos += sizeof(u32);
59 if ((int) size < pos - data + 1)
61 record->id_length = *pos++;
65 record->type = record->type_length == 0 ? NULL : pos;
66 pos += record->type_length;
68 record->id = record->id_length == 0 ? NULL : pos;
69 pos += record->id_length;
71 record->payload = record->payload_length == 0 ? NULL : pos;
72 pos += record->payload_length;
74 record->total_length = pos - data;