sock.h (97fc2f0848c928c63c2ae619deee61a0b1107b69) sock.h (624d1164730d58a494cc5aa4afa37d02c41e83a7)
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 AF_INET socket handler.
7 *
8 * Version: @(#)sock.h 1.0.4 05/13/93

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

1268/**
1269 * sk_eat_skb - Release a skb if it is no longer needed
1270 * @sk: socket to eat this skb from
1271 * @skb: socket buffer to eat
1272 *
1273 * This routine must be called with interrupts disabled or with the socket
1274 * locked so that the sk_buff queue operation is ok.
1275*/
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 AF_INET socket handler.
7 *
8 * Version: @(#)sock.h 1.0.4 05/13/93

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

1268/**
1269 * sk_eat_skb - Release a skb if it is no longer needed
1270 * @sk: socket to eat this skb from
1271 * @skb: socket buffer to eat
1272 *
1273 * This routine must be called with interrupts disabled or with the socket
1274 * locked so that the sk_buff queue operation is ok.
1275*/
1276static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb)
1276#ifdef CONFIG_NET_DMA
1277static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb, int copied_early)
1277{
1278 __skb_unlink(skb, &sk->sk_receive_queue);
1278{
1279 __skb_unlink(skb, &sk->sk_receive_queue);
1280 if (!copied_early)
1281 __kfree_skb(skb);
1282 else
1283 __skb_queue_tail(&sk->sk_async_wait_queue, skb);
1284}
1285#else
1286static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb, int copied_early)
1287{
1288 __skb_unlink(skb, &sk->sk_receive_queue);
1279 __kfree_skb(skb);
1280}
1289 __kfree_skb(skb);
1290}
1291#endif
1281
1282extern void sock_enable_timestamp(struct sock *sk);
1283extern int sock_get_timestamp(struct sock *, struct timeval __user *);
1284
1285/*
1286 * Enable debug/info messages
1287 */
1288

--- 64 unchanged lines hidden ---
1292
1293extern void sock_enable_timestamp(struct sock *sk);
1294extern int sock_get_timestamp(struct sock *, struct timeval __user *);
1295
1296/*
1297 * Enable debug/info messages
1298 */
1299

--- 64 unchanged lines hidden ---