Lines Matching refs:pbody

1138                  struct mgmt_body_t *pbody, const u_char *p, int offset,  in parse_elements()  argument
1152 pbody->challenge_present = 0; in parse_elements()
1153 pbody->ssid_present = 0; in parse_elements()
1154 pbody->rates_present = 0; in parse_elements()
1155 pbody->ds_present = 0; in parse_elements()
1156 pbody->cf_present = 0; in parse_elements()
1157 pbody->tim_present = 0; in parse_elements()
1191 if (!pbody->ssid_present) { in parse_elements()
1192 pbody->ssid = ssid; in parse_elements()
1193 pbody->ssid_present = 1; in parse_elements()
1217 if (!pbody->challenge_present) { in parse_elements()
1218 pbody->challenge = challenge; in parse_elements()
1219 pbody->challenge_present = 1; in parse_elements()
1249 if (!pbody->rates_present && rates.length != 0) { in parse_elements()
1250 pbody->rates = rates; in parse_elements()
1251 pbody->rates_present = 1; in parse_elements()
1273 if (!pbody->ds_present) { in parse_elements()
1274 pbody->ds = ds; in parse_elements()
1275 pbody->ds_present = 1; in parse_elements()
1297 if (!pbody->cf_present) { in parse_elements()
1298 pbody->cf = cf; in parse_elements()
1299 pbody->cf_present = 1; in parse_elements()
1327 if (!pbody->tim_present) { in parse_elements()
1328 pbody->tim = tim; in parse_elements()
1329 pbody->tim_present = 1; in parse_elements()
1357 struct mgmt_body_t pbody; in handle_beacon() local
1361 memset(&pbody, 0, sizeof(pbody)); in handle_beacon()
1368 memcpy(&pbody.timestamp, p, IEEE802_11_TSTAMP_LEN); in handle_beacon()
1371 pbody.beacon_interval = GET_LE_U_2(p + offset); in handle_beacon()
1374 pbody.capability_info = GET_LE_U_2(p + offset); in handle_beacon()
1378 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_beacon()
1380 PRINT_SSID(pbody); in handle_beacon()
1381 PRINT_RATES(pbody); in handle_beacon()
1383 CAPABILITY_ESS(pbody.capability_info) ? "ESS" : "IBSS"); in handle_beacon()
1384 PRINT_DS_CHANNEL(pbody); in handle_beacon()
1395 struct mgmt_body_t pbody; in handle_assoc_request() local
1399 memset(&pbody, 0, sizeof(pbody)); in handle_assoc_request()
1404 pbody.capability_info = GET_LE_U_2(p); in handle_assoc_request()
1407 pbody.listen_interval = GET_LE_U_2(p + offset); in handle_assoc_request()
1411 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_assoc_request()
1413 PRINT_SSID(pbody); in handle_assoc_request()
1414 PRINT_RATES(pbody); in handle_assoc_request()
1424 struct mgmt_body_t pbody; in handle_assoc_response() local
1428 memset(&pbody, 0, sizeof(pbody)); in handle_assoc_response()
1435 pbody.capability_info = GET_LE_U_2(p); in handle_assoc_response()
1438 pbody.status_code = GET_LE_U_2(p + offset); in handle_assoc_response()
1441 pbody.aid = GET_LE_U_2(p + offset); in handle_assoc_response()
1445 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_assoc_response()
1447 ND_PRINT(" AID(%x) :%s: %s", ((uint16_t)(pbody.aid << 2 )) >> 2 , in handle_assoc_response()
1448 CAPABILITY_PRIVACY(pbody.capability_info) ? " PRIVACY " : "", in handle_assoc_response()
1449 (pbody.status_code < NUM_STATUSES in handle_assoc_response()
1450 ? status_text[pbody.status_code] in handle_assoc_response()
1462 struct mgmt_body_t pbody; in handle_reassoc_request() local
1466 memset(&pbody, 0, sizeof(pbody)); in handle_reassoc_request()
1473 pbody.capability_info = GET_LE_U_2(p); in handle_reassoc_request()
1476 pbody.listen_interval = GET_LE_U_2(p + offset); in handle_reassoc_request()
1479 memcpy(&pbody.ap, p+offset, IEEE802_11_AP_LEN); in handle_reassoc_request()
1483 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_reassoc_request()
1485 PRINT_SSID(pbody); in handle_reassoc_request()
1486 ND_PRINT(" AP : %s", etheraddr_string(ndo, pbody.ap )); in handle_reassoc_request()
1505 struct mgmt_body_t pbody; in handle_probe_request() local
1509 memset(&pbody, 0, sizeof(pbody)); in handle_probe_request()
1511 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_probe_request()
1513 PRINT_SSID(pbody); in handle_probe_request()
1514 PRINT_RATES(pbody); in handle_probe_request()
1523 struct mgmt_body_t pbody; in handle_probe_response() local
1527 memset(&pbody, 0, sizeof(pbody)); in handle_probe_response()
1534 memcpy(&pbody.timestamp, p, IEEE802_11_TSTAMP_LEN); in handle_probe_response()
1537 pbody.beacon_interval = GET_LE_U_2(p + offset); in handle_probe_response()
1540 pbody.capability_info = GET_LE_U_2(p + offset); in handle_probe_response()
1544 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_probe_response()
1546 PRINT_SSID(pbody); in handle_probe_response()
1547 PRINT_RATES(pbody); in handle_probe_response()
1548 PRINT_DS_CHANNEL(pbody); in handle_probe_response()
1566 struct mgmt_body_t pbody; in handle_disassoc() local
1568 memset(&pbody, 0, sizeof(pbody)); in handle_disassoc()
1573 pbody.reason_code = GET_LE_U_2(p); in handle_disassoc()
1576 (pbody.reason_code < NUM_REASONS) in handle_disassoc()
1577 ? reason_text[pbody.reason_code] in handle_disassoc()
1589 struct mgmt_body_t pbody; in handle_auth() local
1593 memset(&pbody, 0, sizeof(pbody)); in handle_auth()
1598 pbody.auth_alg = GET_LE_U_2(p); in handle_auth()
1601 pbody.auth_trans_seq_num = GET_LE_U_2(p + offset); in handle_auth()
1604 pbody.status_code = GET_LE_U_2(p + offset); in handle_auth()
1608 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_auth()
1610 if ((pbody.auth_alg == 1) && in handle_auth()
1611 ((pbody.auth_trans_seq_num == 2) || in handle_auth()
1612 (pbody.auth_trans_seq_num == 3))) { in handle_auth()
1614 (pbody.auth_alg < NUM_AUTH_ALGS) in handle_auth()
1615 ? auth_alg_text[pbody.auth_alg] in handle_auth()
1617 pbody.auth_trans_seq_num, in handle_auth()
1618 ((pbody.auth_trans_seq_num % 2) in handle_auth()
1619 ? ((pbody.status_code < NUM_STATUSES) in handle_auth()
1620 ? status_text[pbody.status_code] in handle_auth()
1625 (pbody.auth_alg < NUM_AUTH_ALGS) in handle_auth()
1626 ? auth_alg_text[pbody.auth_alg] in handle_auth()
1628 pbody.auth_trans_seq_num, in handle_auth()
1629 (pbody.auth_trans_seq_num % 2) in handle_auth()
1630 ? ((pbody.status_code < NUM_STATUSES) in handle_auth()
1631 ? status_text[pbody.status_code] in handle_auth()
1644 struct mgmt_body_t pbody; in handle_deauth() local
1647 memset(&pbody, 0, sizeof(pbody)); in handle_deauth()
1652 pbody.reason_code = GET_LE_U_2(p); in handle_deauth()
1654 reason = (pbody.reason_code < NUM_REASONS) in handle_deauth()
1655 ? reason_text[pbody.reason_code] in handle_deauth()