Home | History | Annotate | Download | only in tcpdump

Lines Matching refs:offset

156 parse_elements(struct mgmt_body_t *pbody, const u_char *p, int offset)
169 if (!TTEST2(*(p + offset), 1))
171 switch (*(p + offset)) {
175 if (!TTEST2(*(p + offset), 2))
177 memcpy(&pbody->ssid, p + offset, 2);
178 offset += 2;
183 if (!TTEST2(*(p + offset), pbody->ssid.length))
185 memcpy(&pbody->ssid.ssid, p + offset,
187 offset += pbody->ssid.length;
196 if (!TTEST2(*(p + offset), 2))
198 memcpy(&pbody->challenge, p + offset, 2);
199 offset += 2;
204 if (!TTEST2(*(p + offset), pbody->challenge.length))
206 memcpy(&pbody->challenge.text, p + offset,
208 offset += pbody->challenge.length;
217 if (!TTEST2(*(p + offset), 2))
219 memcpy(&(pbody->rates), p + offset, 2);
220 offset += 2;
224 if (!TTEST2(*(p + offset), pbody->rates.length))
226 memcpy(&pbody->rates.rate, p + offset,
228 offset += pbody->rates.length;
236 if (!TTEST2(*(p + offset), 3))
238 memcpy(&pbody->ds, p + offset, 3);
239 offset += 3;
246 if (!TTEST2(*(p + offset), 8))
248 memcpy(&pbody->cf, p + offset, 8);
249 offset += 8;
256 if (!TTEST2(*(p + offset), 2))
258 memcpy(&pbody->tim, p + offset, 2);
259 offset += 2;
260 if (!TTEST2(*(p + offset), 3))
262 memcpy(&pbody->tim.count, p + offset, 3);
263 offset += 3;
269 if (!TTEST2(*(p + offset), pbody->tim.length - 3))
273 offset += pbody->tim.length - 3;
280 *(p + offset) );
282 if (!TTEST2(*(p + offset), 2))
284 if (!TTEST2(*(p + offset + 2), *(p + offset + 1)))
286 offset += *(p + offset + 1) + 2;
300 int offset = 0;
308 offset += IEEE802_11_TSTAMP_LEN;
309 pbody.beacon_interval = EXTRACT_LE_16BITS(p+offset);
310 offset += IEEE802_11_BCNINT_LEN;
311 pbody.capability_info = EXTRACT_LE_16BITS(p+offset);
312 offset += IEEE802_11_CAPINFO_LEN;
314 parse_elements(&pbody, p, offset);
329 int offset = 0;
336 offset += IEEE802_11_CAPINFO_LEN;
337 pbody.listen_interval = EXTRACT_LE_16BITS(p+offset);
338 offset += IEEE802_11_LISTENINT_LEN;
340 parse_elements(&pbody, p, offset);
351 int offset = 0;
359 offset += IEEE802_11_CAPINFO_LEN;
360 pbody.status_code = EXTRACT_LE_16BITS(p+offset);
361 offset += IEEE802_11_STATUS_LEN;
362 pbody.aid = EXTRACT_LE_16BITS(p+offset);
363 offset += IEEE802_11_AID_LEN;
365 parse_elements(&pbody, p, offset);
380 int offset = 0;
388 offset += IEEE802_11_CAPINFO_LEN;
389 pbody.listen_interval = EXTRACT_LE_16BITS(p+offset);
390 offset += IEEE802_11_LISTENINT_LEN;
391 memcpy(&pbody.ap, p+offset, IEEE802_11_AP_LEN);
392 offset += IEEE802_11_AP_LEN;
394 parse_elements(&pbody, p, offset);
413 int offset = 0;
417 parse_elements(&pbody, p, offset);
429 int offset = 0;
438 offset += IEEE802_11_TSTAMP_LEN;
439 pbody.beacon_interval = EXTRACT_LE_16BITS(p+offset);
440 offset += IEEE802_11_BCNINT_LEN;
441 pbody.capability_info = EXTRACT_LE_16BITS(p+offset);
442 offset += IEEE802_11_CAPINFO_LEN;
444 parse_elements(&pbody, p, offset);
483 int offset = 0;
490 offset += 2;
491 pbody.auth_trans_seq_num = EXTRACT_LE_16BITS(p + offset);
492 offset += 2;
493 pbody.status_code = EXTRACT_LE_16BITS(p + offset);
494 offset += 2;
496 parse_elements(&pbody, p, offset);
530 int offset = 0;
538 offset += IEEE802_11_REASON_LEN;