Lines Matching refs:pbody
999 struct mgmt_body_t *pbody, const u_char *p, int offset, in parse_elements() argument
1013 pbody->challenge_present = 0; in parse_elements()
1014 pbody->ssid_present = 0; in parse_elements()
1015 pbody->rates_present = 0; in parse_elements()
1016 pbody->ds_present = 0; in parse_elements()
1017 pbody->cf_present = 0; in parse_elements()
1018 pbody->tim_present = 0; in parse_elements()
1054 if (!pbody->ssid_present) { in parse_elements()
1055 pbody->ssid = ssid; in parse_elements()
1056 pbody->ssid_present = 1; in parse_elements()
1080 if (!pbody->challenge_present) { in parse_elements()
1081 pbody->challenge = challenge; in parse_elements()
1082 pbody->challenge_present = 1; in parse_elements()
1112 if (!pbody->rates_present && rates.length != 0) { in parse_elements()
1113 pbody->rates = rates; in parse_elements()
1114 pbody->rates_present = 1; in parse_elements()
1136 if (!pbody->ds_present) { in parse_elements()
1137 pbody->ds = ds; in parse_elements()
1138 pbody->ds_present = 1; in parse_elements()
1160 if (!pbody->cf_present) { in parse_elements()
1161 pbody->cf = cf; in parse_elements()
1162 pbody->cf_present = 1; in parse_elements()
1190 if (!pbody->tim_present) { in parse_elements()
1191 pbody->tim = tim; in parse_elements()
1192 pbody->tim_present = 1; in parse_elements()
1218 struct mgmt_body_t pbody; in handle_beacon() local
1222 memset(&pbody, 0, sizeof(pbody)); in handle_beacon()
1230 memcpy(&pbody.timestamp, p, IEEE802_11_TSTAMP_LEN); in handle_beacon()
1233 pbody.beacon_interval = EXTRACT_LE_16BITS(p+offset); in handle_beacon()
1236 pbody.capability_info = EXTRACT_LE_16BITS(p+offset); in handle_beacon()
1240 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_beacon()
1242 PRINT_SSID(pbody); in handle_beacon()
1243 PRINT_RATES(pbody); in handle_beacon()
1245 CAPABILITY_ESS(pbody.capability_info) ? "ESS" : "IBSS")); in handle_beacon()
1246 PRINT_DS_CHANNEL(pbody); in handle_beacon()
1255 struct mgmt_body_t pbody; in handle_assoc_request() local
1259 memset(&pbody, 0, sizeof(pbody)); in handle_assoc_request()
1265 pbody.capability_info = EXTRACT_LE_16BITS(p); in handle_assoc_request()
1268 pbody.listen_interval = EXTRACT_LE_16BITS(p+offset); in handle_assoc_request()
1272 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_assoc_request()
1274 PRINT_SSID(pbody); in handle_assoc_request()
1275 PRINT_RATES(pbody); in handle_assoc_request()
1283 struct mgmt_body_t pbody; in handle_assoc_response() local
1287 memset(&pbody, 0, sizeof(pbody)); in handle_assoc_response()
1295 pbody.capability_info = EXTRACT_LE_16BITS(p); in handle_assoc_response()
1298 pbody.status_code = EXTRACT_LE_16BITS(p+offset); in handle_assoc_response()
1301 pbody.aid = EXTRACT_LE_16BITS(p+offset); in handle_assoc_response()
1305 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_assoc_response()
1307 ND_PRINT((ndo, " AID(%x) :%s: %s", ((uint16_t)(pbody.aid << 2 )) >> 2 , in handle_assoc_response()
1308 CAPABILITY_PRIVACY(pbody.capability_info) ? " PRIVACY " : "", in handle_assoc_response()
1309 (pbody.status_code < NUM_STATUSES in handle_assoc_response()
1310 ? status_text[pbody.status_code] in handle_assoc_response()
1320 struct mgmt_body_t pbody; in handle_reassoc_request() local
1324 memset(&pbody, 0, sizeof(pbody)); in handle_reassoc_request()
1332 pbody.capability_info = EXTRACT_LE_16BITS(p); in handle_reassoc_request()
1335 pbody.listen_interval = EXTRACT_LE_16BITS(p+offset); in handle_reassoc_request()
1338 memcpy(&pbody.ap, p+offset, IEEE802_11_AP_LEN); in handle_reassoc_request()
1342 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_reassoc_request()
1344 PRINT_SSID(pbody); in handle_reassoc_request()
1345 ND_PRINT((ndo, " AP : %s", etheraddr_string(ndo, pbody.ap ))); in handle_reassoc_request()
1362 struct mgmt_body_t pbody; in handle_probe_request() local
1366 memset(&pbody, 0, sizeof(pbody)); in handle_probe_request()
1368 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_probe_request()
1370 PRINT_SSID(pbody); in handle_probe_request()
1371 PRINT_RATES(pbody); in handle_probe_request()
1380 struct mgmt_body_t pbody; in handle_probe_response() local
1384 memset(&pbody, 0, sizeof(pbody)); in handle_probe_response()
1392 memcpy(&pbody.timestamp, p, IEEE802_11_TSTAMP_LEN); in handle_probe_response()
1395 pbody.beacon_interval = EXTRACT_LE_16BITS(p+offset); in handle_probe_response()
1398 pbody.capability_info = EXTRACT_LE_16BITS(p+offset); in handle_probe_response()
1402 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_probe_response()
1404 PRINT_SSID(pbody); in handle_probe_response()
1405 PRINT_RATES(pbody); in handle_probe_response()
1406 PRINT_DS_CHANNEL(pbody); in handle_probe_response()
1422 struct mgmt_body_t pbody; in handle_disassoc() local
1424 memset(&pbody, 0, sizeof(pbody)); in handle_disassoc()
1430 pbody.reason_code = EXTRACT_LE_16BITS(p); in handle_disassoc()
1433 (pbody.reason_code < NUM_REASONS) in handle_disassoc()
1434 ? reason_text[pbody.reason_code] in handle_disassoc()
1444 struct mgmt_body_t pbody; in handle_auth() local
1448 memset(&pbody, 0, sizeof(pbody)); in handle_auth()
1454 pbody.auth_alg = EXTRACT_LE_16BITS(p); in handle_auth()
1457 pbody.auth_trans_seq_num = EXTRACT_LE_16BITS(p + offset); in handle_auth()
1460 pbody.status_code = EXTRACT_LE_16BITS(p + offset); in handle_auth()
1464 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_auth()
1466 if ((pbody.auth_alg == 1) && in handle_auth()
1467 ((pbody.auth_trans_seq_num == 2) || in handle_auth()
1468 (pbody.auth_trans_seq_num == 3))) { in handle_auth()
1470 (pbody.auth_alg < NUM_AUTH_ALGS) in handle_auth()
1471 ? auth_alg_text[pbody.auth_alg] in handle_auth()
1473 pbody.auth_trans_seq_num, in handle_auth()
1474 ((pbody.auth_trans_seq_num % 2) in handle_auth()
1475 ? ((pbody.status_code < NUM_STATUSES) in handle_auth()
1476 ? status_text[pbody.status_code] in handle_auth()
1481 (pbody.auth_alg < NUM_AUTH_ALGS) in handle_auth()
1482 ? auth_alg_text[pbody.auth_alg] in handle_auth()
1484 pbody.auth_trans_seq_num, in handle_auth()
1485 (pbody.auth_trans_seq_num % 2) in handle_auth()
1486 ? ((pbody.status_code < NUM_STATUSES) in handle_auth()
1487 ? status_text[pbody.status_code] in handle_auth()
1498 struct mgmt_body_t pbody; in handle_deauth() local
1501 memset(&pbody, 0, sizeof(pbody)); in handle_deauth()
1507 pbody.reason_code = EXTRACT_LE_16BITS(p); in handle_deauth()
1509 reason = (pbody.reason_code < NUM_REASONS) in handle_deauth()
1510 ? reason_text[pbody.reason_code] in handle_deauth()