aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dccp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/dccp.h')
-rw-r--r--include/linux/dccp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/dccp.h b/include/linux/dccp.h
index 53553c99cad6..90d04ffddae8 100644
--- a/include/linux/dccp.h
+++ b/include/linux/dccp.h
@@ -256,6 +256,13 @@ static inline struct dccp_hdr *dccp_hdr(const struct sk_buff *skb)
256 return (struct dccp_hdr *)skb->h.raw; 256 return (struct dccp_hdr *)skb->h.raw;
257} 257}
258 258
259static inline struct dccp_hdr *dccp_zeroed_hdr(struct sk_buff *skb, int headlen)
260{
261 skb->h.raw = skb_push(skb, headlen);
262 memset(skb->h.raw, 0, headlen);
263 return dccp_hdr(skb);
264}
265
259static inline struct dccp_hdr_ext *dccp_hdrx(const struct sk_buff *skb) 266static inline struct dccp_hdr_ext *dccp_hdrx(const struct sk_buff *skb)
260{ 267{
261 return (struct dccp_hdr_ext *)(skb->h.raw + sizeof(struct dccp_hdr)); 268 return (struct dccp_hdr_ext *)(skb->h.raw + sizeof(struct dccp_hdr));