Home | History | Annotate | Download | only in wps

Lines Matching refs:pos

37 	const u8 *pos = data + 1;
41 record->type_length = *pos++;
45 record->payload_length = *pos++;
49 record->payload_length = ntohl(*(u32 *)pos);
50 pos += sizeof(u32);
54 if ((int) size < pos - data + 1)
56 record->id_length = *pos++;
60 record->type = record->type_length == 0 ? NULL : pos;
61 pos += record->type_length;
63 record->id = record->id_length == 0 ? NULL : pos;
64 pos += record->id_length;
66 record->payload = record->payload_length == 0 ? NULL : pos;
67 pos += record->payload_length;
69 record->total_length = pos - data;