Lines Matching refs:pbody

1131 	       struct mgmt_body_t *pbody, const u_char *p, int offset,  in parse_elements()  argument
1145 pbody->challenge_present = 0; in parse_elements()
1146 pbody->ssid_present = 0; in parse_elements()
1147 pbody->rates_present = 0; in parse_elements()
1148 pbody->ds_present = 0; in parse_elements()
1149 pbody->cf_present = 0; in parse_elements()
1150 pbody->tim_present = 0; in parse_elements()
1184 if (!pbody->ssid_present) { in parse_elements()
1185 pbody->ssid = ssid; in parse_elements()
1186 pbody->ssid_present = 1; in parse_elements()
1210 if (!pbody->challenge_present) { in parse_elements()
1211 pbody->challenge = challenge; in parse_elements()
1212 pbody->challenge_present = 1; in parse_elements()
1242 if (!pbody->rates_present && rates.length != 0) { in parse_elements()
1243 pbody->rates = rates; in parse_elements()
1244 pbody->rates_present = 1; in parse_elements()
1266 if (!pbody->ds_present) { in parse_elements()
1267 pbody->ds = ds; in parse_elements()
1268 pbody->ds_present = 1; in parse_elements()
1299 if (!pbody->cf_present) { in parse_elements()
1300 pbody->cf = cf; in parse_elements()
1301 pbody->cf_present = 1; in parse_elements()
1334 if (!pbody->tim_present) { in parse_elements()
1335 pbody->tim = tim; in parse_elements()
1336 pbody->tim_present = 1; in parse_elements()
1364 struct mgmt_body_t pbody; in handle_beacon() local
1368 memset(&pbody, 0, sizeof(pbody)); in handle_beacon()
1375 memcpy(&pbody.timestamp, p, IEEE802_11_TSTAMP_LEN); in handle_beacon()
1378 pbody.beacon_interval = GET_LE_U_2(p + offset); in handle_beacon()
1381 pbody.capability_info = GET_LE_U_2(p + offset); in handle_beacon()
1385 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_beacon()
1387 PRINT_SSID(pbody); in handle_beacon()
1388 PRINT_RATES(pbody); in handle_beacon()
1390 CAPABILITY_ESS(pbody.capability_info) ? "ESS" : "IBSS"); in handle_beacon()
1391 PRINT_DS_CHANNEL(pbody); in handle_beacon()
1402 struct mgmt_body_t pbody; in handle_assoc_request() local
1406 memset(&pbody, 0, sizeof(pbody)); in handle_assoc_request()
1411 pbody.capability_info = GET_LE_U_2(p); in handle_assoc_request()
1414 pbody.listen_interval = GET_LE_U_2(p + offset); in handle_assoc_request()
1418 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_assoc_request()
1420 PRINT_SSID(pbody); in handle_assoc_request()
1421 PRINT_RATES(pbody); in handle_assoc_request()
1431 struct mgmt_body_t pbody; in handle_assoc_response() local
1435 memset(&pbody, 0, sizeof(pbody)); in handle_assoc_response()
1442 pbody.capability_info = GET_LE_U_2(p); in handle_assoc_response()
1445 pbody.status_code = GET_LE_U_2(p + offset); in handle_assoc_response()
1448 pbody.aid = GET_LE_U_2(p + offset); in handle_assoc_response()
1452 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_assoc_response()
1454 ND_PRINT(" AID(%x) :%s: %s", ((uint16_t)(pbody.aid << 2 )) >> 2 , in handle_assoc_response()
1455 CAPABILITY_PRIVACY(pbody.capability_info) ? " PRIVACY " : "", in handle_assoc_response()
1456 (pbody.status_code < NUM_STATUSES in handle_assoc_response()
1457 ? status_text[pbody.status_code] in handle_assoc_response()
1469 struct mgmt_body_t pbody; in handle_reassoc_request() local
1473 memset(&pbody, 0, sizeof(pbody)); in handle_reassoc_request()
1480 pbody.capability_info = GET_LE_U_2(p); in handle_reassoc_request()
1483 pbody.listen_interval = GET_LE_U_2(p + offset); in handle_reassoc_request()
1486 memcpy(&pbody.ap, p+offset, IEEE802_11_AP_LEN); in handle_reassoc_request()
1490 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_reassoc_request()
1492 PRINT_SSID(pbody); in handle_reassoc_request()
1493 ND_PRINT(" AP : %s", etheraddr_string(ndo, pbody.ap )); in handle_reassoc_request()
1512 struct mgmt_body_t pbody; in handle_probe_request() local
1516 memset(&pbody, 0, sizeof(pbody)); in handle_probe_request()
1518 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_probe_request()
1520 PRINT_SSID(pbody); in handle_probe_request()
1521 PRINT_RATES(pbody); in handle_probe_request()
1530 struct mgmt_body_t pbody; in handle_probe_response() local
1534 memset(&pbody, 0, sizeof(pbody)); in handle_probe_response()
1541 memcpy(&pbody.timestamp, p, IEEE802_11_TSTAMP_LEN); in handle_probe_response()
1544 pbody.beacon_interval = GET_LE_U_2(p + offset); in handle_probe_response()
1547 pbody.capability_info = GET_LE_U_2(p + offset); in handle_probe_response()
1551 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_probe_response()
1553 PRINT_SSID(pbody); in handle_probe_response()
1554 PRINT_RATES(pbody); in handle_probe_response()
1555 PRINT_DS_CHANNEL(pbody); in handle_probe_response()
1573 struct mgmt_body_t pbody; in handle_disassoc() local
1575 memset(&pbody, 0, sizeof(pbody)); in handle_disassoc()
1580 pbody.reason_code = GET_LE_U_2(p); in handle_disassoc()
1583 (pbody.reason_code < NUM_REASONS) in handle_disassoc()
1584 ? reason_text[pbody.reason_code] in handle_disassoc()
1596 struct mgmt_body_t pbody; in handle_auth() local
1600 memset(&pbody, 0, sizeof(pbody)); in handle_auth()
1605 pbody.auth_alg = GET_LE_U_2(p); in handle_auth()
1608 pbody.auth_trans_seq_num = GET_LE_U_2(p + offset); in handle_auth()
1611 pbody.status_code = GET_LE_U_2(p + offset); in handle_auth()
1615 ret = parse_elements(ndo, &pbody, p, offset, length); in handle_auth()
1617 if ((pbody.auth_alg == 1) && in handle_auth()
1618 ((pbody.auth_trans_seq_num == 2) || in handle_auth()
1619 (pbody.auth_trans_seq_num == 3))) { in handle_auth()
1621 (pbody.auth_alg < NUM_AUTH_ALGS) in handle_auth()
1622 ? auth_alg_text[pbody.auth_alg] in handle_auth()
1624 pbody.auth_trans_seq_num, in handle_auth()
1625 ((pbody.auth_trans_seq_num % 2) in handle_auth()
1626 ? ((pbody.status_code < NUM_STATUSES) in handle_auth()
1627 ? status_text[pbody.status_code] in handle_auth()
1632 (pbody.auth_alg < NUM_AUTH_ALGS) in handle_auth()
1633 ? auth_alg_text[pbody.auth_alg] in handle_auth()
1635 pbody.auth_trans_seq_num, in handle_auth()
1636 (pbody.auth_trans_seq_num % 2) in handle_auth()
1637 ? ((pbody.status_code < NUM_STATUSES) in handle_auth()
1638 ? status_text[pbody.status_code] in handle_auth()
1651 struct mgmt_body_t pbody; in handle_deauth() local
1654 memset(&pbody, 0, sizeof(pbody)); in handle_deauth()
1659 pbody.reason_code = GET_LE_U_2(p); in handle_deauth()
1661 reason = (pbody.reason_code < NUM_REASONS) in handle_deauth()
1662 ? reason_text[pbody.reason_code] in handle_deauth()