Lines Matching refs:fc
1294 mgmt_body_print(u_int16_t fc, const struct mgmt_header_t *pmh, in mgmt_body_print() argument
1297 switch (FC_SUBTYPE(fc)) { in mgmt_body_print()
1344 FC_SUBTYPE(fc)); in mgmt_body_print()
1355 ctrl_body_print(u_int16_t fc, const u_char *p) in ctrl_body_print() argument
1357 switch (FC_SUBTYPE(fc)) { in ctrl_body_print()
1449 data_header_print(u_int16_t fc, const u_char *p, const u_int8_t **srcp, in data_header_print() argument
1452 u_int subtype = FC_SUBTYPE(fc); in data_header_print()
1476 if (!FC_TO_DS(fc) && !FC_FROM_DS(fc)) { in data_header_print()
1486 } else if (!FC_TO_DS(fc) && FC_FROM_DS(fc)) { in data_header_print()
1496 } else if (FC_TO_DS(fc) && !FC_FROM_DS(fc)) { in data_header_print()
1506 } else if (FC_TO_DS(fc) && FC_FROM_DS(fc)) { in data_header_print()
1543 ctrl_header_print(u_int16_t fc, const u_char *p, const u_int8_t **srcp, in ctrl_header_print() argument
1553 switch (FC_SUBTYPE(fc)) { in ctrl_header_print()
1600 extract_header_length(u_int16_t fc) in extract_header_length() argument
1604 switch (FC_TYPE(fc)) { in extract_header_length()
1608 switch (FC_SUBTYPE(fc)) { in extract_header_length()
1627 len = (FC_TO_DS(fc) && FC_FROM_DS(fc)) ? 30 : 24; in extract_header_length()
1628 if (DATA_FRAME_IS_QOS(FC_SUBTYPE(fc))) in extract_header_length()
1632 printf("unknown IEEE802.11 frame type (%d)", FC_TYPE(fc)); in extract_header_length()
1649 ieee_802_11_hdr_print(u_int16_t fc, const u_char *p, u_int hdrlen, in ieee_802_11_hdr_print() argument
1653 if (FC_MORE_DATA(fc)) in ieee_802_11_hdr_print()
1655 if (FC_MORE_FLAG(fc)) in ieee_802_11_hdr_print()
1657 if (FC_POWER_MGMT(fc)) in ieee_802_11_hdr_print()
1659 if (FC_RETRY(fc)) in ieee_802_11_hdr_print()
1661 if (FC_ORDER(fc)) in ieee_802_11_hdr_print()
1663 if (FC_WEP(fc)) in ieee_802_11_hdr_print()
1665 if (FC_TYPE(fc) != T_CTRL || FC_SUBTYPE(fc) != CTRL_PS_POLL) in ieee_802_11_hdr_print()
1686 switch (FC_TYPE(fc)) { in ieee_802_11_hdr_print()
1691 ctrl_header_print(fc, p, srcp, dstp); in ieee_802_11_hdr_print()
1694 data_header_print(fc, p, srcp, dstp); in ieee_802_11_hdr_print()
1698 FC_TYPE(fc)); in ieee_802_11_hdr_print()
1713 u_int16_t fc; in ieee802_11_print() local
1737 fc = EXTRACT_LE_16BITS(p); in ieee802_11_print()
1738 hdrlen = extract_header_length(fc); in ieee802_11_print()
1741 if (Hflag && FC_TYPE(fc) == T_DATA && in ieee802_11_print()
1742 DATA_FRAME_IS_QOS(FC_SUBTYPE(fc))) { in ieee802_11_print()
1754 ieee_802_11_hdr_print(fc, p, hdrlen, meshdrlen, &src, &dst); in ieee802_11_print()
1763 switch (FC_TYPE(fc)) { in ieee802_11_print()
1765 if (!mgmt_body_print(fc, in ieee802_11_print()
1772 if (!ctrl_body_print(fc, p - hdrlen)) { in ieee802_11_print()
1778 if (DATA_FRAME_IS_NULL(FC_SUBTYPE(fc))) in ieee802_11_print()
1781 if (FC_WEP(fc)) { in ieee802_11_print()
1793 ieee_802_11_hdr_print(fc, p - hdrlen, hdrlen, in ieee802_11_print()
1804 printf("unknown 802.11 frame type (%d)", FC_TYPE(fc)); in ieee802_11_print()