/external/tcpdump/ |
token.h | 37 #define BROADCAST(trp) ((EXTRACT_16BITS(&(trp)->token_rcf) & 0xE000) >> 13) 38 #define RIF_LENGTH(trp) ((EXTRACT_16BITS(&(trp)->token_rcf) & 0x1f00) >> 8) 39 #define DIRECTION(trp) ((EXTRACT_16BITS(&(trp)->token_rcf) & 0x0080) >> 7) 40 #define LARGEST_FRAME(trp) ((EXTRACT_16BITS(&(trp)->token_rcf) & 0x0070) >> 4) 41 #define RING_NUMBER(trp, x) ((EXTRACT_16BITS(&(trp)->token_rseg[x]) & 0xfff0) >> 4) 42 #define BRIDGE_NUMBER(trp, x) ((EXTRACT_16BITS(&(trp)->token_rseg[x]) & 0x000f))
|
print-frag6.c | 57 EXTRACT_16BITS(&dp->ip6f_offlg) & IP6F_OFF_MASK, 58 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) - 62 EXTRACT_16BITS(&dp->ip6f_offlg) & IP6F_OFF_MASK, 63 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) - 69 if ((EXTRACT_16BITS(&dp->ip6f_offlg) & IP6F_OFF_MASK) != 0)
|
print-l2tp.c | 257 printf("%u", EXTRACT_16BITS(dat)); 275 EXTRACT_16BITS(ptr))); 283 printf("%u", EXTRACT_16BITS(ptr)); ptr++; /* Result Code */ 285 printf("/%u", EXTRACT_16BITS(ptr)); ptr++; 296 printf("%u.%u", (EXTRACT_16BITS(dat) >> 8), 297 (EXTRACT_16BITS(dat) & 0xff)); 375 "AuthType-#%u", EXTRACT_16BITS(ptr))); 383 printf("%u", EXTRACT_16BITS(ptr) & L2TP_PROXY_AUTH_ID_MASK); 394 val_h = EXTRACT_16BITS(ptr); ptr++; 395 val_l = EXTRACT_16BITS(ptr); ptr++ [all...] |
print-sctp.c | 127 sourcePort = EXTRACT_16BITS(&sctpPktHdr->source); 128 destPort = EXTRACT_16BITS(&sctpPktHdr->destination); 177 chunkLength = EXTRACT_16BITS(&chunkDescPtr->chunkLength); 226 printf("[SID: %u] ", EXTRACT_16BITS(&dataHdrPtr->streamId)); 227 printf("[SSEQ %u] ", EXTRACT_16BITS(&dataHdrPtr->sequence)); 235 if (EXTRACT_16BITS(&chunkDescPtr->chunkLength) < 240 EXTRACT_16BITS(&chunkDescPtr->chunkLength)); 244 forces_print(payloadPtr, EXTRACT_16BITS(&chunkDescPtr->chunkLength)- chunksize); 254 if (EXTRACT_16BITS(&chunkDescPtr->chunkLength) < 259 EXTRACT_16BITS(&chunkDescPtr->chunkLength)) [all...] |
print-lmp.c | 403 tlen=EXTRACT_16BITS(lmp_com_header->length); 420 lmp_obj_len=EXTRACT_16BITS(lmp_obj_header->length); 525 EXTRACT_16BITS(obj_tptr), 526 EXTRACT_16BITS(obj_tptr+2)); 551 EXTRACT_16BITS(obj_tptr)>>8)); 576 EXTRACT_16BITS(obj_tptr)>>8)); 591 subobj_type = EXTRACT_16BITS(obj_tptr+offset)>>8; 592 subobj_len = EXTRACT_16BITS(obj_tptr+offset)&0x00FF; 604 EXTRACT_16BITS(obj_tptr+offset+2)>>8), 605 EXTRACT_16BITS(obj_tptr+offset+2)>>8) [all...] |
print-ipx.c | 65 EXTRACT_16BITS(&ipx->srcSkt)); 69 EXTRACT_16BITS(&ipx->dstSkt)); 73 length = EXTRACT_16BITS(&ipx->length); 97 dstSkt = EXTRACT_16BITS(&ipx->dstSkt); 138 command = EXTRACT_16BITS(ipx); 151 (void)printf(" %s", ipxsap_string(htons(EXTRACT_16BITS(&ipx[0])))); 163 (void)printf(" %s '", ipxsap_string(htons(EXTRACT_16BITS(&ipx[0])))); 190 command = EXTRACT_16BITS(ipx); 200 EXTRACT_16BITS(&ipx[2]), EXTRACT_16BITS(&ipx[3])) [all...] |
print-netbios.c | 75 EXTRACT_16BITS(ipx->srcSkt)); 79 EXTRACT_16BITS(ipx->dstSkt)); 87 length = EXTRACT_16BITS(&ipx->length);
|
print-lwres.c | 225 l = EXTRACT_16BITS(p); 245 l = EXTRACT_16BITS(p); 265 l = EXTRACT_16BITS(&ap->length); 311 v = EXTRACT_16BITS(&np->version); 319 response = EXTRACT_16BITS(&np->pktflags) & LWRES_LWPACKETFLAG_RESPONSE; 327 v = EXTRACT_16BITS(&np->pktflags); 338 printf(" authtype:0x%x", EXTRACT_16BITS(&np->authtype)); 339 printf(" authlen:%u", EXTRACT_16BITS(&np->authlength)); 368 l = EXTRACT_16BITS(&gabn->namelen); 425 EXTRACT_16BITS(&grbn->rdtype))) [all...] |
print-stp.c | 114 EXTRACT_16BITS(&stp_bpdu->port_id), length); 123 (float)EXTRACT_16BITS(&stp_bpdu->message_age) / STP_TIME_BASE, 124 (float)EXTRACT_16BITS(&stp_bpdu->max_age) / STP_TIME_BASE, 125 (float)EXTRACT_16BITS(&stp_bpdu->hello_time) / STP_TIME_BASE, 126 (float)EXTRACT_16BITS(&stp_bpdu->forward_delay) / STP_TIME_BASE); 267 printf("CIST port-id %04x, ", EXTRACT_16BITS(&stp_bpdu->port_id)); 271 (float)EXTRACT_16BITS(&stp_bpdu->message_age) / STP_TIME_BASE, 272 (float)EXTRACT_16BITS(&stp_bpdu->max_age) / STP_TIME_BASE, 273 (float)EXTRACT_16BITS(&stp_bpdu->hello_time) / STP_TIME_BASE, 274 (float)EXTRACT_16BITS(&stp_bpdu->forward_delay) / STP_TIME_BASE) [all...] |
print-ldp.c | 260 tlv_len=EXTRACT_16BITS(ldp_tlv_header->length); 262 tlv_type=LDP_MASK_TLV_TYPE(EXTRACT_16BITS(ldp_tlv_header->type)); 271 LDP_MASK_U_BIT(EXTRACT_16BITS(&ldp_tlv_header->type)) ? "continue processing" : "ignore", 272 LDP_MASK_F_BIT(EXTRACT_16BITS(&ldp_tlv_header->type)) ? "do" : "don't"); 281 EXTRACT_16BITS(tptr), 282 (EXTRACT_16BITS(tptr+2)&0x8000) ? "Targeted" : "Link", 283 (EXTRACT_16BITS(tptr+2)&0x4000) ? ", Request for targeted Hellos" : ""); 303 af = EXTRACT_16BITS(tptr); 336 EXTRACT_16BITS(tptr), EXTRACT_16BITS(tptr+2) [all...] |
print-sll.c | 58 printf("%3s ",tok2str(sll_pkttype_values,"?",EXTRACT_16BITS(&sllp->sll_pkttype))); 65 if (EXTRACT_16BITS(&sllp->sll_halen) == 6) 69 ether_type = EXTRACT_16BITS(&sllp->sll_protocol); 145 ether_type = EXTRACT_16BITS(&sllp->sll_protocol); 201 u_int16_t tag = EXTRACT_16BITS(p); 209 ether_type = EXTRACT_16BITS(p + 2);
|
print-mpcp.c | 156 opcode = EXTRACT_16BITS(mpcp.common_header->opcode); 190 EXTRACT_16BITS(mpcp.grant->duration)); 196 printf("\n\tSync-Time %u ticks", EXTRACT_16BITS(tptr)); 223 EXTRACT_16BITS(tptr)); 247 EXTRACT_16BITS(mpcp.reg->assigned_port), 249 EXTRACT_16BITS(mpcp.reg->sync_time), 259 EXTRACT_16BITS(mpcp.reg_ack->echoed_assigned_port), 261 EXTRACT_16BITS(mpcp.reg_ack->echoed_sync_time));
|
print-forces.c | 179 #define ForCES_BLN(forcesh) ((u_int32_t)(EXTRACT_16BITS(&(forcesh)->fm_len) << 2)) 409 #define TLV_RDAT_LEN(tlv) ((int)(EXTRACT_16BITS(&(tlv)->length) - TLV_SET_LEN(0)) 411 #define GO_NXT_TLV(tlv,rlen) ((rlen) -= F_ALN_LEN(EXTRACT_16BITS(&(tlv)->length)), \ 413 + F_ALN_LEN(EXTRACT_16BITS(&(tlv)->length)))) 438 if (EXTRACT_16BITS(&tlv->length) < TLV_HDRL) 440 if (EXTRACT_16BITS(&tlv->length) > rlen) 442 if (rlen < F_ALN_LEN(EXTRACT_16BITS(&tlv->length))) 713 type = EXTRACT_16BITS(&tlv->type); 792 type = EXTRACT_16BITS(&tlv->type); 822 type = EXTRACT_16BITS(&kdtlv->type) [all...] |
print-rsvp.c | 509 parameter_length = EXTRACT_16BITS(tptr+2)<<2; /* convert wordcount to bytecount */ 673 rsvp_obj_len=EXTRACT_16BITS(rsvp_obj_header->length); 731 EXTRACT_16BITS(obj_tptr+6)); 746 EXTRACT_16BITS(obj_tptr+sizeof(struct in6_addr)+2)); 757 EXTRACT_16BITS(obj_tptr+18), 769 EXTRACT_16BITS(obj_tptr+6), 781 EXTRACT_16BITS(obj_tptr+6), [all...] |
print-lane.c | 66 (void)ND_PRINT((ndo, "lecid:%x ", EXTRACT_16BITS(bp))); 88 if (EXTRACT_16BITS(&lec->lec_header) == 0xff00) { 94 tok2str(lecop2str, "opcode-#%u", EXTRACT_16BITS(&lec->lec_opcode)));
|
print-lspping.c | 507 if (EXTRACT_16BITS(&lspping_com_header->version[0]) != LSPPING_VERSION) { 509 EXTRACT_16BITS(&lspping_com_header->version[0])); 516 EXTRACT_16BITS(&lspping_com_header->version[0]), 528 EXTRACT_16BITS(&lspping_com_header->version[0]), 583 lspping_tlv_type=EXTRACT_16BITS(lspping_tlv_header->type); 584 lspping_tlv_len=EXTRACT_16BITS(lspping_tlv_header->length); 620 lspping_subtlv_type=EXTRACT_16BITS(lspping_subtlv_header->type); 621 lspping_subtlv_len=EXTRACT_16BITS(lspping_subtlv_header->length); 681 EXTRACT_16BITS(subtlv_ptr.lspping_tlv_targetfec_subtlv_rsvp_ipv4->lsp_id), 682 EXTRACT_16BITS(subtlv_ptr.lspping_tlv_targetfec_subtlv_rsvp_ipv4->tunnel_id) [all...] |
print-igrp.c | 65 mtu = EXTRACT_16BITS(igr->igr_mtu); 92 nint = EXTRACT_16BITS(&hdr->ig_ni); 93 nsys = EXTRACT_16BITS(&hdr->ig_ns); 94 next = EXTRACT_16BITS(&hdr->ig_nx); 100 EXTRACT_16BITS(&hdr->ig_as),
|
print-rip.c | 104 family = EXTRACT_16BITS(&ni->rip_family); 110 if (EXTRACT_16BITS(&ni->rip_tag) || 133 family = EXTRACT_16BITS(&ni->rip_family); 135 u_int16_t auth_type = EXTRACT_16BITS(&ni->rip_tag); 144 printf(" Packet Len %u,", EXTRACT_16BITS((u_int8_t *)ni + 4)); 156 EXTRACT_16BITS(&ni->rip_tag)); 167 EXTRACT_16BITS(&ni->rip_tag),
|
print-babel.c | 312 bodylen = EXTRACT_16BITS(cp + 2); 353 nonce = EXTRACT_16BITS(message + 4); 354 interval = EXTRACT_16BITS(message + 6); 367 nonce = EXTRACT_16BITS(message + 2); 380 seqno = EXTRACT_16BITS(message + 4); 381 interval = EXTRACT_16BITS(message + 6); 396 txcost = EXTRACT_16BITS(message + 4); 397 interval = EXTRACT_16BITS(message + 6); 455 interval = EXTRACT_16BITS(message + 6); 456 seqno = EXTRACT_16BITS(message + 8) [all...] |
print-pim.c | 129 ((njoin = EXTRACT_16BITS(&bp[20])) + EXTRACT_16BITS(&bp[22])) == 1) { 133 hold = EXTRACT_16BITS(&bp[6]); 158 relts_print(EXTRACT_16BITS(&bp[6])); 179 njoin = EXTRACT_16BITS(&bp[8]); 180 nprune = EXTRACT_16BITS(&bp[10]); 242 relts_print(EXTRACT_16BITS(&bp[10])); 273 relts_print(EXTRACT_16BITS(&bp[22])); 348 hold = EXTRACT_16BITS(&bp[2]); 350 relts_print(EXTRACT_16BITS(&bp[2])) [all...] |
print-atalk.c | 134 snet = EXTRACT_16BITS(&dp->srcNet); 138 ataddr_string(EXTRACT_16BITS(&dp->dstNet), dp->dstNode), 179 snet = EXTRACT_16BITS(&dp->srcNet); 183 ataddr_string(EXTRACT_16BITS(&dp->dstNet), dp->dstNode), 200 if (EXTRACT_16BITS(&ap->htype) == 1 && 201 EXTRACT_16BITS(&ap->ptype) == ETHERTYPE_ATALK && 203 switch (EXTRACT_16BITS(&ap->op)) { 221 length, EXTRACT_16BITS(&ap->op), EXTRACT_16BITS(&ap->htype), 222 EXTRACT_16BITS(&ap->ptype), ap->halen, ap->palen) [all...] |
print-domain.c | 331 i = EXTRACT_16BITS(cp); 335 i = EXTRACT_16BITS(cp); 374 typ = EXTRACT_16BITS(cp); 377 i = EXTRACT_16BITS(cp); 393 opt_flags = EXTRACT_16BITS(cp); 407 len = EXTRACT_16BITS(cp); 462 printf(" %d", EXTRACT_16BITS(cp)); 481 printf(":%d %d %d", EXTRACT_16BITS(cp + 4), 482 EXTRACT_16BITS(cp), EXTRACT_16BITS(cp + 2)) [all...] |
print-tftp.c | 90 opcode = EXTRACT_16BITS(&tp->th_opcode); 129 printf(" block %d", EXTRACT_16BITS(&tp->th_block)); 136 EXTRACT_16BITS(&tp->th_code)));
|
print-udld.c | 116 printf("\n\tChecksum 0x%04x (unverified)", EXTRACT_16BITS(tptr+2)); 125 type = EXTRACT_16BITS(tptr); 126 len = EXTRACT_16BITS(tptr+2);
|
print-gre.c | 100 vers = EXTRACT_16BITS(bp) & GRE_VERS_MASK; 124 flags = EXTRACT_16BITS(bp); 134 prot = EXTRACT_16BITS(bp); 142 printf(", sum 0x%x", EXTRACT_16BITS(bp)); 148 printf(", off 0x%x", EXTRACT_16BITS(bp)); 177 af = EXTRACT_16BITS(bp); 246 flags = EXTRACT_16BITS(bp); 256 prot = EXTRACT_16BITS(bp); 397 EXTRACT_16BITS(bp));
|