Home | History | Annotate | Download | only in tcpdump

Lines Matching refs:dh

64 	const struct dccp_hdr *dh, u_int len)
89 return in_cksum((u_short *)dh, len, sp[0]+sp[1]+sp[2]+sp[3]+sp[4]+sp[5]);
93 static int dccp6_cksum(const struct ip6_hdr *ip6, const struct dccp_hdr *dh, u_int len)
120 sp = (const u_int16_t *)dh;
143 static u_int64_t dccp_seqno(const struct dccp_hdr *dh)
145 u_int32_t seq_high = DCCPH_SEQ(dh);
148 if (DCCPH_X(dh) != 0) {
149 const struct dccp_hdr_ext *dhx = (void *)(dh + 1);
158 static inline unsigned int dccp_basic_hdr_len(const struct dccp_hdr *dh)
160 return sizeof(*dh) + (DCCPH_X(dh) ? sizeof(struct dccp_hdr_ext) : 0);
165 const struct dccp_hdr *dh = (const struct dccp_hdr *)bp;
167 (struct dccp_hdr_ack_bits *)(bp + dccp_basic_hdr_len(dh));
175 if (DCCPH_X(dh) != 0) {
218 const struct dccp_hdr *dh;
228 dh = (const struct dccp_hdr *)bp;
237 cp = (const u_char *)(dh + 1);
249 sport = EXTRACT_16BITS(&dh->dccph_sport);
250 dport = EXTRACT_16BITS(&dh->dccph_dport);
251 hlen = dh->dccph_doff * 4;
278 (void)printf("CCVal %d, CsCov %d, ", DCCPH_CCVAL(dh), DCCPH_CSCOV(dh));
287 sum = dccp6_cksum(ip6, dh, len);
288 dccp_sum = EXTRACT_16BITS(&dh->dccph_checksum);
301 sum = dccp_cksum(ip, dh, len);
302 dccp_sum = EXTRACT_16BITS(&dh->dccph_checksum);
310 switch (DCCPH_TYPE(dh)) {
313 (struct dccp_hdr_request *)(bp + dccp_basic_hdr_len(dh));
322 (struct dccp_hdr_response *)(bp + dccp_basic_hdr_len(dh));
352 (struct dccp_hdr_reset *)(bp + dccp_basic_hdr_len(dh));
372 if ((DCCPH_TYPE(dh) != DCCP_PKT_DATA) &&
373 (DCCPH_TYPE(dh) != DCCP_PKT_REQUEST))
379 (void)printf("seq %" PRIu64, dccp_seqno(dh));
382 if (hlen > dccp_basic_hdr_len(dh) + extlen){
385 cp = bp + dccp_basic_hdr_len(dh) + extlen;
388 hlen -= dccp_basic_hdr_len(dh) + extlen;