Home
last modified time | relevance | path

Searched refs:dh (Results 1 – 12 of 12) sorted by relevance

/net/netfilter/
Dxt_dccp.c39 const struct dccp_hdr *dh, in dccp_find_option() argument
44 unsigned int optoff = __dccp_hdr_len(dh); in dccp_find_option()
45 unsigned int optlen = dh->dccph_doff*4 - __dccp_hdr_len(dh); in dccp_find_option()
48 if (dh->dccph_doff * 4 < __dccp_hdr_len(dh)) in dccp_find_option()
85 match_types(const struct dccp_hdr *dh, u_int16_t typemask) in match_types() argument
87 return typemask & (1 << dh->dccph_type); in match_types()
92 const struct dccp_hdr *dh, bool *hotdrop) in match_option() argument
94 return dccp_find_option(option, skb, protoff, dh, hotdrop); in match_option()
101 const struct dccp_hdr *dh; in dccp_mt() local
107 dh = skb_header_pointer(skb, par->thoff, sizeof(_dh), &_dh); in dccp_mt()
[all …]
Dnf_conntrack_proto_dccp.c399 struct dccp_hdr _hdr, *dh; in dccp_pkt_to_tuple() local
401 dh = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in dccp_pkt_to_tuple()
402 if (dh == NULL) in dccp_pkt_to_tuple()
405 tuple->src.u.dccp.port = dh->dccph_sport; in dccp_pkt_to_tuple()
406 tuple->dst.u.dccp.port = dh->dccph_dport; in dccp_pkt_to_tuple()
422 struct dccp_hdr _dh, *dh; in dccp_new() local
426 dh = skb_header_pointer(skb, dataoff, sizeof(_dh), &dh); in dccp_new()
427 BUG_ON(dh == NULL); in dccp_new()
429 state = dccp_state_table[CT_DCCP_ROLE_CLIENT][dh->dccph_type][CT_DCCP_NONE]; in dccp_new()
454 static u64 dccp_ack_seq(const struct dccp_hdr *dh) in dccp_ack_seq() argument
[all …]
Dxt_hashlimit.c343 struct dsthash_ent *dh; in htable_selective_cleanup() local
345 hlist_for_each_entry_safe(dh, pos, n, &ht->hash[i], node) { in htable_selective_cleanup()
346 if ((*select)(ht, dh)) in htable_selective_cleanup()
347 dsthash_free(ht, dh); in htable_selective_cleanup()
454 static inline void rateinfo_recalc(struct dsthash_ent *dh, unsigned long now) in rateinfo_recalc() argument
456 dh->rateinfo.credit += (now - dh->rateinfo.prev) * CREDITS_PER_JIFFY; in rateinfo_recalc()
457 if (dh->rateinfo.credit > dh->rateinfo.credit_cap) in rateinfo_recalc()
458 dh->rateinfo.credit = dh->rateinfo.credit_cap; in rateinfo_recalc()
459 dh->rateinfo.prev = now; in rateinfo_recalc()
572 struct dsthash_ent *dh; in hashlimit_mt_v0() local
[all …]
/net/dccp/
Dinput.c188 const struct dccp_hdr *dh = dccp_hdr(skb); in dccp_check_seqno() local
205 if (dh->dccph_type == DCCP_PKT_SYNC || in dccp_check_seqno()
206 dh->dccph_type == DCCP_PKT_SYNCACK) { in dccp_check_seqno()
228 if (dh->dccph_type == DCCP_PKT_CLOSEREQ || in dccp_check_seqno()
229 dh->dccph_type == DCCP_PKT_CLOSE || in dccp_check_seqno()
230 dh->dccph_type == DCCP_PKT_RESET) { in dccp_check_seqno()
240 if (dh->dccph_type != DCCP_PKT_SYNC && in dccp_check_seqno()
264 "sending SYNC...\n", dccp_packet_name(dh->dccph_type), in dccp_check_seqno()
274 if (dh->dccph_type == DCCP_PKT_RESET) in dccp_check_seqno()
284 const struct dccp_hdr *dh, const unsigned len) in __dccp_rcv_established() argument
[all …]
Dipv4.c200 const struct dccp_hdr *dh = (struct dccp_hdr *)(skb->data + offset); in dccp_v4_err() local
210 if (skb->len < offset + sizeof(*dh) || in dccp_v4_err()
211 skb->len < offset + __dccp_basic_hdr_len(dh)) { in dccp_v4_err()
217 iph->daddr, dh->dccph_dport, in dccp_v4_err()
218 iph->saddr, dh->dccph_sport, inet_iif(skb)); in dccp_v4_err()
240 seq = dccp_hdr_seq(dh); in dccp_v4_err()
278 req = inet_csk_search_req(sk, &prev, dh->dccph_dport, in dccp_v4_err()
352 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_send_check() local
355 dh->dccph_checksum = dccp_v4_csum_finish(skb, inet->saddr, inet->daddr); in dccp_v4_send_check()
424 const struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_hnd_req() local
[all …]
Doutput.c49 struct dccp_hdr *dh; in dccp_transmit_skb() local
51 const u32 dccp_header_size = sizeof(*dh) + in dccp_transmit_skb()
100 dh = dccp_zeroed_hdr(skb, dccp_header_size); in dccp_transmit_skb()
101 dh->dccph_type = dcb->dccpd_type; in dccp_transmit_skb()
102 dh->dccph_sport = inet->sport; in dccp_transmit_skb()
103 dh->dccph_dport = inet->dport; in dccp_transmit_skb()
104 dh->dccph_doff = (dccp_header_size + dcb->dccpd_opt_len) / 4; in dccp_transmit_skb()
105 dh->dccph_ccval = dcb->dccpd_ccval; in dccp_transmit_skb()
106 dh->dccph_cscov = dp->dccps_pcslen; in dccp_transmit_skb()
108 dh->dccph_x = 1; in dccp_transmit_skb()
[all …]
Dipv6.c66 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v6_send_check() local
69 dh->dccph_checksum = dccp_v6_csum_finish(skb, &np->saddr, &np->daddr); in dccp_v6_send_check()
91 const struct dccp_hdr *dh = (struct dccp_hdr *)(skb->data + offset); in dccp_v6_err() local
99 if (skb->len < offset + sizeof(*dh) || in dccp_v6_err()
100 skb->len < offset + __dccp_basic_hdr_len(dh)) { in dccp_v6_err()
107 &hdr->daddr, dh->dccph_dport, in dccp_v6_err()
108 &hdr->saddr, dh->dccph_sport, inet6_iif(skb)); in dccp_v6_err()
129 seq = dccp_hdr_seq(dh); in dccp_v6_err()
195 req = inet6_csk_search_req(sk, &prev, dh->dccph_dport, in dccp_v6_err()
288 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v6_send_response() local
[all …]
Ddccp.h207 const struct dccp_hdr* dh = dccp_hdr(skb); in dccp_csum_coverage() local
209 if (dh->dccph_cscov == 0) in dccp_csum_coverage()
211 return (dh->dccph_doff + dh->dccph_cscov - 1) * sizeof(u32); in dccp_csum_coverage()
274 struct dccp_hdr *dh, unsigned len);
276 const struct dccp_hdr *dh, const unsigned len);
392 static inline void dccp_hdr_set_seq(struct dccp_hdr *dh, const u64 gss) in dccp_hdr_set_seq() argument
394 struct dccp_hdr_ext *dhx = (struct dccp_hdr_ext *)((void *)dh + in dccp_hdr_set_seq()
395 sizeof(*dh)); in dccp_hdr_set_seq()
396 dh->dccph_seq2 = 0; in dccp_hdr_set_seq()
397 dh->dccph_seq = htons((gss >> 32) & 0xfffff); in dccp_hdr_set_seq()
Doptions.c59 const struct dccp_hdr *dh = dccp_hdr(skb); in dccp_parse_options() local
62 unsigned char *options = (unsigned char *)dh + dccp_hdr_len(skb); in dccp_parse_options()
64 const unsigned char *opt_end = (unsigned char *)dh + in dccp_parse_options()
65 (dh->dccph_doff * 4); in dccp_parse_options()
Dproto.c749 const struct dccp_hdr *dh; in dccp_recvmsg() local
767 dh = dccp_hdr(skb); in dccp_recvmsg()
769 switch (dh->dccph_type) { in dccp_recvmsg()
781 dccp_packet_name(dh->dccph_type)); in dccp_recvmsg()
786 dccp_packet_name(dh->dccph_type)); in dccp_recvmsg()
/net/dccp/ccids/lib/
Dpacket_history.c155 const struct dccp_hdr *dh = dccp_hdr(skb); in tfrc_rx_hist_entry_from_skb() local
158 entry->tfrchrx_ccval = dh->dccph_ccval; in tfrc_rx_hist_entry_from_skb()
159 entry->tfrchrx_type = dh->dccph_type; in tfrc_rx_hist_entry_from_skb()
/net/dccp/ccids/
Dccid2.c330 const struct dccp_hdr *dh = dccp_hdr(skb); in ccid2_ackvector() local
331 unsigned char *options = (unsigned char *)dh + dccp_hdr_len(skb); in ccid2_ackvector()
333 const unsigned char *opt_end = (unsigned char *)dh + in ccid2_ackvector()
334 (dh->dccph_doff * 4); in ccid2_ackvector()