8 #include <linux/list.h>
65 return (
struct dccp_hdr *)skb_transport_header(skb);
71 skb_reset_transport_header(skb);
72 return memset(skb_transport_header(skb), 0, headlen);
77 return (
struct dccp_hdr_ext *)((
unsigned char *)dh +
sizeof(*dh));
80 static inline unsigned int __dccp_basic_hdr_len(
const struct dccp_hdr *dh)
82 return sizeof(*dh) + (dh->dccph_x ?
sizeof(
struct dccp_hdr_ext) : 0);
85 static
inline unsigned
int dccp_basic_hdr_len(const struct sk_buff *skb)
88 return __dccp_basic_hdr_len(dh);
96 seq_nr = (seq_nr << 32) +
ntohl(dccp_hdrx(dh)->dccph_seq_low);
106 dccp_basic_hdr_len(skb));
112 dccp_basic_hdr_len(skb));
115 static inline u64 dccp_hdr_ack_seq(
const struct sk_buff *skb)
124 dccp_basic_hdr_len(skb));
130 dccp_basic_hdr_len(skb));
133 static inline unsigned int __dccp_hdr_len(
const struct dccp_hdr *dh)
135 return __dccp_basic_hdr_len(dh) +
136 dccp_packet_hdr_len(dh->dccph_type);
139 static inline unsigned int dccp_hdr_len(
const struct sk_buff *skb)
141 return __dccp_hdr_len(
dccp_hdr(skb));
200 #define DCCP_SERVICE_INVALID_VALUE htonl((__u32)-1)
201 #define DCCP_SERVICE_CODE_IS_ABSENT 0
263 #define dccps_syn_rtt dccps_inet_connection.icsk_ack.lrcvtime
311 switch (dccp_sk(sk)->dccps_role) {