aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index cdd0050b97a4..6e392babda4a 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1229,6 +1229,11 @@ static inline struct sk_buff *tcp_write_queue_next(struct sock *sk, struct sk_bu
1229 for (; (skb != (struct sk_buff *)&(sk)->sk_write_queue);\ 1229 for (; (skb != (struct sk_buff *)&(sk)->sk_write_queue);\
1230 skb = skb->next) 1230 skb = skb->next)
1231 1231
1232#define tcp_for_write_queue_from_safe(skb, tmp, sk) \
1233 for (tmp = skb->next; \
1234 (skb != (struct sk_buff *)&(sk)->sk_write_queue); \
1235 skb = tmp, tmp = skb->next)
1236
1232static inline struct sk_buff *tcp_send_head(struct sock *sk) 1237static inline struct sk_buff *tcp_send_head(struct sock *sk)
1233{ 1238{
1234 return sk->sk_send_head; 1239 return sk->sk_send_head;