Home | History | Annotate | Download | only in tcpdump

Lines Matching refs:EXTRACT_16BITS

160 #define ForCES_BLN(forcesh)	((uint32_t)(EXTRACT_16BITS(&(forcesh)->fm_len) << 2))
392 #define TLV_RDAT_LEN(tlv) ((int)(EXTRACT_16BITS(&(tlv)->length) - TLV_SET_LEN(0))
394 #define GO_NXT_TLV(tlv,rlen) ((rlen) -= F_ALN_LEN(EXTRACT_16BITS(&(tlv)->length)), \
396 + F_ALN_LEN(EXTRACT_16BITS(&(tlv)->length))))
421 if (EXTRACT_16BITS(&tlv->length) < TLV_HDRL)
423 if (EXTRACT_16BITS(&tlv->length) > rlen)
425 if (rlen < F_ALN_LEN(EXTRACT_16BITS(&tlv->length)))
698 type = EXTRACT_16BITS(&tlv->type);
779 type = EXTRACT_16BITS(&tlv->type);
810 type = EXTRACT_16BITS(&kdtlv->type);
816 EXTRACT_16BITS(&kdtlv->length)));
824 tll = EXTRACT_16BITS(&kdtlv->length);
901 tll = EXTRACT_16BITS(&keytlv->length);
927 type = EXTRACT_16BITS(&pdtlv->type);
932 EXTRACT_16BITS(&pdtlv->length)));
940 tll = EXTRACT_16BITS(&pdtlv->length) - TLV_HDRL;
941 aln = F_ALN_LEN(EXTRACT_16BITS(&pdtlv->length));
942 if (aln > EXTRACT_16BITS(&pdtlv->length)) {
946 type, EXTRACT_16BITS(&pdtlv->length), aln - len));
948 pad = aln - EXTRACT_16BITS(&pdtlv->length);
957 ib, ops->s, EXTRACT_16BITS(&pdtlv->length), tll, pad));
960 ib, ops->s, EXTRACT_16BITS(&pdtlv->length), tll));
972 type, EXTRACT_16BITS(&pdtlv->length)));
974 if (EXTRACT_16BITS(&pdtlv->length)) {
1006 ib, EXTRACT_16BITS(&pdh->pflags), EXTRACT_16BITS(&pdh->pIDcnt)));
1009 if (EXTRACT_16BITS(&pdh->pflags) & F_SELKEY) {
1014 if (EXTRACT_16BITS(&pdh->pflags) & F_SELTABRANGE) {
1018 if (EXTRACT_16BITS(&pdh->pflags) & F_TABAPPEND) {
1024 idcnt = EXTRACT_16BITS(&pdh->pIDcnt);
1066 type = EXTRACT_16BITS(&pdtlv->type);
1067 tll = EXTRACT_16BITS(&pdtlv->length) - TLV_HDRL;
1070 tok2str(ForCES_TLV, NULL, type), type, EXTRACT_16BITS(&pdtlv->length)));
1081 EXTRACT_16BITS(&pdtlv->length)));
1087 EXTRACT_16BITS(&pdtlv->length), tll));
1125 type = EXTRACT_16BITS(&pdtlv->type);
1127 tll = EXTRACT_16BITS(&pdtlv->length) - TLV_HDRL;
1132 EXTRACT_16BITS(&pdtlv->length),
1133 EXTRACT_16BITS(&pdtlv->length) - TLV_HDRL));
1143 EXTRACT_16BITS(&pdtlv->type), len - EXTRACT_16BITS(&pdtlv->length)));
1181 * lfbselect_print() has ensured that EXTRACT_16BITS(&otlv->length)
1185 type = EXTRACT_16BITS(&otlv->type);
1186 tll = EXTRACT_16BITS(&otlv->length) - TLV_HDRL;
1190 EXTRACT_16BITS(&otlv->length)));
1195 EXTRACT_16BITS(&otlv->length)));
1473 if (EXTRACT_16BITS(&tlv->type) == F_TLV_METD) {
1475 EXTRACT_16BITS(&tlv->length), 0, indent);
1476 } else if ((EXTRACT_16BITS(&tlv->type) == F_TLV_REDD)) {
1478 EXTRACT_16BITS(&tlv->length), 0, indent);
1481 EXTRACT_16BITS(&tlv->type),
1482 EXTRACT_16BITS(&tlv->length)));
1491 EXTRACT_16BITS(&tlv->type),
1492 rlen - EXTRACT_16BITS(&tlv->length)));
1558 if (op_valid(EXTRACT_16BITS(&otlv->type), op_msk)) {
1565 EXTRACT_16BITS(&otlv->type), EXTRACT_16BITS(&otlv->length)));
1574 EXTRACT_16BITS(&otlv->type), rlen - EXTRACT_16BITS(&otlv->length)));
1636 if (!ttlv_valid(EXTRACT_16BITS(&tltlv->type))) {
1638 EXTRACT_16BITS(&tltlv->type)));
1644 tok2str(ForCES_TLV, NULL, EXTRACT_16BITS(&tltlv->type)),
1645 EXTRACT_16BITS(&tltlv->length),
1646 EXTRACT_16BITS(&tltlv->length) - TLV_HDRL));
1649 EXTRACT_16BITS(&tltlv->length), tops->op_msk, 9);
1664 TLV_HDRL, rlen, EXTRACT_16BITS(&tltlv->length)));