Lines Matching refs:dh
215 const struct dccp_hdr *dh = (struct dccp_hdr *)(skb->data + offset); in dccp_v4_err() local
225 if (skb->len < offset + sizeof(*dh) || in dccp_v4_err()
226 skb->len < offset + __dccp_basic_hdr_len(dh)) { in dccp_v4_err()
232 iph->daddr, dh->dccph_dport, in dccp_v4_err()
233 iph->saddr, dh->dccph_sport, inet_iif(skb)); in dccp_v4_err()
255 seq = dccp_hdr_seq(dh); in dccp_v4_err()
296 req = inet_csk_search_req(sk, &prev, dh->dccph_dport, in dccp_v4_err()
371 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_send_check() local
374 dh->dccph_checksum = dccp_v4_csum_finish(skb, in dccp_v4_send_check()
451 const struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_hnd_req() local
457 dh->dccph_sport, in dccp_v4_hnd_req()
463 iph->saddr, dh->dccph_sport, in dccp_v4_hnd_req()
464 iph->daddr, dh->dccph_dport, in dccp_v4_hnd_req()
517 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_send_response() local
519 dh->dccph_checksum = dccp_v4_csum_finish(skb, ireq->loc_addr, in dccp_v4_send_response()
677 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_do_rcv() local
680 if (dccp_rcv_established(sk, skb, dh, skb->len)) in dccp_v4_do_rcv()
721 if (dccp_rcv_state_process(sk, skb, dh, skb->len)) in dccp_v4_do_rcv()
741 const struct dccp_hdr *dh; in dccp_invalid_packet() local
753 dh = dccp_hdr(skb); in dccp_invalid_packet()
756 if (dh->dccph_type >= DCCP_PKT_INVALID) { in dccp_invalid_packet()
764 if (dh->dccph_doff < dccp_hdr_len(skb) / sizeof(u32)) { in dccp_invalid_packet()
765 DCCP_WARN("P.Data Offset(%u) too small\n", dh->dccph_doff); in dccp_invalid_packet()
771 if (!pskb_may_pull(skb, dh->dccph_doff * sizeof(u32))) { in dccp_invalid_packet()
772 DCCP_WARN("P.Data Offset(%u) too large\n", dh->dccph_doff); in dccp_invalid_packet()
780 if ((dh->dccph_type < DCCP_PKT_DATA || in dccp_invalid_packet()
781 dh->dccph_type > DCCP_PKT_DATAACK) && dh->dccph_x == 0) { in dccp_invalid_packet()
783 dccp_packet_name(dh->dccph_type)); in dccp_invalid_packet()
794 dh->dccph_cscov, skb->len); in dccp_invalid_packet()
810 const struct dccp_hdr *dh; in dccp_v4_rcv() local
827 dh = dccp_hdr(skb); in dccp_v4_rcv()
829 DCCP_SKB_CB(skb)->dccpd_seq = dccp_hdr_seq(dh); in dccp_v4_rcv()
830 DCCP_SKB_CB(skb)->dccpd_type = dh->dccph_type; in dccp_v4_rcv()
833 dccp_packet_name(dh->dccph_type), in dccp_v4_rcv()
834 &iph->saddr, ntohs(dh->dccph_sport), in dccp_v4_rcv()
835 &iph->daddr, ntohs(dh->dccph_dport), in dccp_v4_rcv()
850 dh->dccph_sport, dh->dccph_dport); in dccp_v4_rcv()
879 if (dh->dccph_cscov && (min_cov == 0 || dh->dccph_cscov < min_cov)) { in dccp_v4_rcv()
881 dh->dccph_cscov, min_cov); in dccp_v4_rcv()
903 if (dh->dccph_type != DCCP_PKT_RESET) { in dccp_v4_rcv()