Home
last modified time | relevance | path

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

/net/netfilter/
Dxt_dccp.c40 const struct dccp_hdr *dh, in dccp_find_option() argument
45 unsigned int optoff = __dccp_hdr_len(dh); in dccp_find_option()
46 unsigned int optlen = dh->dccph_doff*4 - __dccp_hdr_len(dh); in dccp_find_option()
49 if (dh->dccph_doff * 4 < __dccp_hdr_len(dh)) in dccp_find_option()
86 match_types(const struct dccp_hdr *dh, u_int16_t typemask) in match_types() argument
88 return typemask & (1 << dh->dccph_type); in match_types()
93 const struct dccp_hdr *dh, bool *hotdrop) in match_option() argument
95 return dccp_find_option(option, skb, protoff, dh, hotdrop); in match_option()
102 const struct dccp_hdr *dh; in dccp_mt() local
108 dh = skb_header_pointer(skb, par->thoff, sizeof(_dh), &_dh); in dccp_mt()
[all …]
Dxt_hashlimit.c306 struct dsthash_ent *dh; in htable_selective_cleanup() local
308 hlist_for_each_entry_safe(dh, n, &ht->hash[i], node) { in htable_selective_cleanup()
309 if ((*select)(ht, dh)) in htable_selective_cleanup()
310 dsthash_free(ht, dh); in htable_selective_cleanup()
441 static void rateinfo_recalc(struct dsthash_ent *dh, unsigned long now, u32 mode) in rateinfo_recalc() argument
443 unsigned long delta = now - dh->rateinfo.prev; in rateinfo_recalc()
449 dh->rateinfo.prev = now; in rateinfo_recalc()
452 u32 tmp = dh->rateinfo.credit; in rateinfo_recalc()
453 dh->rateinfo.credit += CREDITS_PER_JIFFY_BYTES * delta; in rateinfo_recalc()
455 if (tmp >= dh->rateinfo.credit) {/* overflow */ in rateinfo_recalc()
[all …]
Dnf_conntrack_proto_dccp.c403 struct dccp_hdr _hdr, *dh; in dccp_pkt_to_tuple() local
405 dh = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in dccp_pkt_to_tuple()
406 if (dh == NULL) in dccp_pkt_to_tuple()
409 tuple->src.u.dccp.port = dh->dccph_sport; in dccp_pkt_to_tuple()
410 tuple->dst.u.dccp.port = dh->dccph_dport; in dccp_pkt_to_tuple()
427 struct dccp_hdr _dh, *dh; in dccp_new() local
431 dh = skb_header_pointer(skb, dataoff, sizeof(_dh), &dh); in dccp_new()
432 BUG_ON(dh == NULL); in dccp_new()
434 state = dccp_state_table[CT_DCCP_ROLE_CLIENT][dh->dccph_type][CT_DCCP_NONE]; in dccp_new()
464 static u64 dccp_ack_seq(const struct dccp_hdr *dh) in dccp_ack_seq() argument
[all …]
/net/dccp/
Dinput.c191 const struct dccp_hdr *dh = dccp_hdr(skb); in dccp_check_seqno() local
208 if (dh->dccph_type == DCCP_PKT_SYNC || in dccp_check_seqno()
209 dh->dccph_type == DCCP_PKT_SYNCACK) { in dccp_check_seqno()
231 if (dh->dccph_type == DCCP_PKT_CLOSEREQ || in dccp_check_seqno()
232 dh->dccph_type == DCCP_PKT_CLOSE || in dccp_check_seqno()
233 dh->dccph_type == DCCP_PKT_RESET) { in dccp_check_seqno()
243 if (dh->dccph_type != DCCP_PKT_SYNC && in dccp_check_seqno()
268 "sending SYNC...\n", dccp_packet_name(dh->dccph_type), in dccp_check_seqno()
278 if (dh->dccph_type == DCCP_PKT_RESET) in dccp_check_seqno()
288 const struct dccp_hdr *dh, const unsigned int len) in __dccp_rcv_established() argument
[all …]
Dipv4.c215 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
[all …]
Doutput.c52 struct dccp_hdr *dh; in dccp_transmit_skb() local
54 const u32 dccp_header_size = sizeof(*dh) + in dccp_transmit_skb()
103 dh = dccp_zeroed_hdr(skb, dccp_header_size); in dccp_transmit_skb()
104 dh->dccph_type = dcb->dccpd_type; in dccp_transmit_skb()
105 dh->dccph_sport = inet->inet_sport; in dccp_transmit_skb()
106 dh->dccph_dport = inet->inet_dport; in dccp_transmit_skb()
107 dh->dccph_doff = (dccp_header_size + dcb->dccpd_opt_len) / 4; in dccp_transmit_skb()
108 dh->dccph_ccval = dcb->dccpd_ccval; in dccp_transmit_skb()
109 dh->dccph_cscov = dp->dccps_pcslen; in dccp_transmit_skb()
111 dh->dccph_x = 1; in dccp_transmit_skb()
[all …]
Dipv6.c67 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v6_send_check() local
70 dh->dccph_checksum = dccp_v6_csum_finish(skb, &np->saddr, &np->daddr); in dccp_v6_send_check()
86 const struct dccp_hdr *dh = (struct dccp_hdr *)(skb->data + offset); in dccp_v6_err() local
94 if (skb->len < offset + sizeof(*dh) || in dccp_v6_err()
95 skb->len < offset + __dccp_basic_hdr_len(dh)) { in dccp_v6_err()
102 &hdr->daddr, dh->dccph_dport, in dccp_v6_err()
103 &hdr->saddr, dh->dccph_sport, inet6_iif(skb)); in dccp_v6_err()
124 seq = dccp_hdr_seq(dh); in dccp_v6_err()
166 req = inet6_csk_search_req(sk, &prev, dh->dccph_dport, in dccp_v6_err()
250 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v6_send_response() local
[all …]
Ddccp.h210 const struct dccp_hdr* dh = dccp_hdr(skb); in dccp_csum_coverage() local
212 if (dh->dccph_cscov == 0) in dccp_csum_coverage()
214 return (dh->dccph_doff + dh->dccph_cscov - 1) * sizeof(u32); in dccp_csum_coverage()
290 struct dccp_hdr *dh, unsigned int len);
292 const struct dccp_hdr *dh, const unsigned int len);
409 static inline void dccp_hdr_set_seq(struct dccp_hdr *dh, const u64 gss) in dccp_hdr_set_seq() argument
411 struct dccp_hdr_ext *dhx = (struct dccp_hdr_ext *)((void *)dh + in dccp_hdr_set_seq()
412 sizeof(*dh)); in dccp_hdr_set_seq()
413 dh->dccph_seq2 = 0; in dccp_hdr_set_seq()
414 dh->dccph_seq = htons((gss >> 32) & 0xfffff); in dccp_hdr_set_seq()
Doptions.c55 const struct dccp_hdr *dh = dccp_hdr(skb); in dccp_parse_options() local
57 unsigned char *options = (unsigned char *)dh + dccp_hdr_len(skb); in dccp_parse_options()
59 const unsigned char *opt_end = (unsigned char *)dh + in dccp_parse_options()
60 (dh->dccph_doff * 4); in dccp_parse_options()
Dproto.c813 const struct dccp_hdr *dh; in dccp_recvmsg() local
831 dh = dccp_hdr(skb); in dccp_recvmsg()
833 switch (dh->dccph_type) { in dccp_recvmsg()
845 dccp_packet_name(dh->dccph_type)); in dccp_recvmsg()
850 dccp_packet_name(dh->dccph_type)); in dccp_recvmsg()
/net/dccp/ccids/lib/
Dpacket_history.c114 const struct dccp_hdr *dh = dccp_hdr(skb); in tfrc_rx_hist_entry_from_skb() local
117 entry->tfrchrx_ccval = dh->dccph_ccval; in tfrc_rx_hist_entry_from_skb()
118 entry->tfrchrx_type = dh->dccph_type; in tfrc_rx_hist_entry_from_skb()