patch-2.1.15 linux/include/net/inet_common.h

Next file: linux/include/net/ip.h
Previous file: linux/include/net/icmp.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.14/linux/include/net/inet_common.h linux/include/net/inet_common.h
@@ -1,7 +1,8 @@
 #ifndef _INET_COMMON_H
 #define _INET_COMMON_H
 
-extern struct proto_ops		inet_proto_ops;
+extern struct proto_ops		inet_stream_ops;
+extern struct proto_ops		inet_dgram_ops;
 extern struct sock *		tcp_sock_array[SOCK_ARRAY_SIZE];
 extern struct sock *		udp_sock_array[SOCK_ARRAY_SIZE];
 
@@ -15,19 +16,20 @@
 					      struct sock *sk);
 extern int			inet_release(struct socket *sock, 
 					     struct socket *peer);
-extern int			inet_connect(struct socket *sock, 
-					     struct sockaddr * uaddr,
-					     int addr_len, int flags);
+extern int			inet_stream_connect(struct socket *sock,
+						    struct sockaddr * uaddr,
+						    int addr_len, int flags);
+extern int			inet_dgram_connect(struct socket *sock, 
+						   struct sockaddr * uaddr,
+						   int addr_len, int flags);
 extern int			inet_accept(struct socket *sock, 
 					    struct socket *newsock, int flags);
 extern int			inet_recvmsg(struct socket *sock, 
 					     struct msghdr *ubuf, 
-					     int size, int noblock, 
-					     int flags, int *addr_len );
+					     int size, int flags, struct scm_cookie *scm);
 extern int			inet_sendmsg(struct socket *sock, 
 					     struct msghdr *msg, 
-					     int size, int noblock, 
-					     int flags);
+					     int size, struct scm_cookie *scm);
 extern int			inet_shutdown(struct socket *sock, int how);
 extern int			inet_select(struct socket *sock, int sel_type,
 					    select_table *wait);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov