tcp.h (9cb5734e5b9b26097c7fa28a9c6426a204cc15e3) tcp.h (3ab224be6d69de912ee21302745ea45a99274dbc)
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Definitions for the TCP module.
7 *
8 * Version: @(#)tcp.h 1.0.5 05/23/93

--- 1182 unchanged lines hidden (view full) ---

1191}
1192
1193/* write queue abstraction */
1194static inline void tcp_write_queue_purge(struct sock *sk)
1195{
1196 struct sk_buff *skb;
1197
1198 while ((skb = __skb_dequeue(&sk->sk_write_queue)) != NULL)
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Definitions for the TCP module.
7 *
8 * Version: @(#)tcp.h 1.0.5 05/23/93

--- 1182 unchanged lines hidden (view full) ---

1191}
1192
1193/* write queue abstraction */
1194static inline void tcp_write_queue_purge(struct sock *sk)
1195{
1196 struct sk_buff *skb;
1197
1198 while ((skb = __skb_dequeue(&sk->sk_write_queue)) != NULL)
1199 sk_stream_free_skb(sk, skb);
1200 sk_stream_mem_reclaim(sk);
1199 sk_wmem_free_skb(sk, skb);
1200 sk_mem_reclaim(sk);
1201}
1202
1203static inline struct sk_buff *tcp_write_queue_head(struct sock *sk)
1204{
1205 struct sk_buff *skb = sk->sk_write_queue.next;
1206 if (skb == (struct sk_buff *) &sk->sk_write_queue)
1207 return NULL;
1208 return skb;

--- 222 unchanged lines hidden ---
1201}
1202
1203static inline struct sk_buff *tcp_write_queue_head(struct sock *sk)
1204{
1205 struct sk_buff *skb = sk->sk_write_queue.next;
1206 if (skb == (struct sk_buff *) &sk->sk_write_queue)
1207 return NULL;
1208 return skb;

--- 222 unchanged lines hidden ---