sock.h (1f782fee18b39b9ad438ebbd82c2915a16c879ee) sock.h (f845172531fb7410c7fb7780b1a6e51ee6df7d52)
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

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

307 struct page *sk_sndmsg_page;
308 struct sk_buff *sk_send_head;
309 __u32 sk_sndmsg_off;
310 int sk_write_pending;
311#ifdef CONFIG_SECURITY
312 void *sk_security;
313#endif
314 __u32 sk_mark;
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

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

307 struct page *sk_sndmsg_page;
308 struct sk_buff *sk_send_head;
309 __u32 sk_sndmsg_off;
310 int sk_write_pending;
311#ifdef CONFIG_SECURITY
312 void *sk_security;
313#endif
314 __u32 sk_mark;
315 /* XXX 4 bytes hole on 64 bit */
315 u32 sk_classid;
316 void (*sk_state_change)(struct sock *sk);
317 void (*sk_data_ready)(struct sock *sk, int bytes);
318 void (*sk_write_space)(struct sock *sk);
319 void (*sk_error_report)(struct sock *sk);
320 int (*sk_backlog_rcv)(struct sock *sk,
321 struct sk_buff *skb);
322 void (*sk_destruct)(struct sock *sk);
323};

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

1069 unsigned long data_len,
1070 int noblock,
1071 int *errcode);
1072extern void *sock_kmalloc(struct sock *sk, int size,
1073 gfp_t priority);
1074extern void sock_kfree_s(struct sock *sk, void *mem, int size);
1075extern void sk_send_sigurg(struct sock *sk);
1076
316 void (*sk_state_change)(struct sock *sk);
317 void (*sk_data_ready)(struct sock *sk, int bytes);
318 void (*sk_write_space)(struct sock *sk);
319 void (*sk_error_report)(struct sock *sk);
320 int (*sk_backlog_rcv)(struct sock *sk,
321 struct sk_buff *skb);
322 void (*sk_destruct)(struct sock *sk);
323};

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

1069 unsigned long data_len,
1070 int noblock,
1071 int *errcode);
1072extern void *sock_kmalloc(struct sock *sk, int size,
1073 gfp_t priority);
1074extern void sock_kfree_s(struct sock *sk, void *mem, int size);
1075extern void sk_send_sigurg(struct sock *sk);
1076
1077#ifdef CONFIG_CGROUPS
1078extern void sock_update_classid(struct sock *sk);
1079#else
1080static inline void sock_update_classid(struct sock *sk)
1081{
1082}
1083#endif
1084
1077/*
1078 * Functions to fill in entries in struct proto_ops when a protocol
1079 * does not implement a particular function.
1080 */
1081extern int sock_no_bind(struct socket *,
1082 struct sockaddr *, int);
1083extern int sock_no_connect(struct socket *,
1084 struct sockaddr *, int, int);

--- 690 unchanged lines hidden ---
1085/*
1086 * Functions to fill in entries in struct proto_ops when a protocol
1087 * does not implement a particular function.
1088 */
1089extern int sock_no_bind(struct socket *,
1090 struct sockaddr *, int);
1091extern int sock_no_connect(struct socket *,
1092 struct sockaddr *, int, int);

--- 690 unchanged lines hidden ---