Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
be8f04e4
Commit
be8f04e4
authored
Sep 16, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/acme/socket-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6
parents
2508d59b
3b116033
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
include/asm-mips/socket.h
include/asm-mips/socket.h
+27
-0
include/linux/net.h
include/linux/net.h
+9
-1
No files found.
include/asm-mips/socket.h
View file @
be8f04e4
...
...
@@ -68,4 +68,31 @@ To add: #define SO_REUSEPORT 0x0200 /* Allow local address and port reuse. */
#define SO_PEERSEC 30
/** sock_type - Socket types
*
* Please notice that for binary compat reasons MIPS has to
* override the enum sock_type in include/linux/net.h, so
* we define ARCH_HAS_SOCKET_TYPES here.
*
* @SOCK_DGRAM - datagram (conn.less) socket
* @SOCK_STREAM - stream (connection) socket
* @SOCK_RAW - raw socket
* @SOCK_RDM - reliably-delivered message
* @SOCK_SEQPACKET - sequential packet socket
* @SOCK_PACKET - linux specific way of getting packets at the dev level.
* For writing rarp and other similar things on the user level.
*/
enum
sock_type
{
SOCK_DGRAM
=
1
,
SOCK_STREAM
=
2
,
SOCK_RAW
=
3
,
SOCK_RDM
=
4
,
SOCK_SEQPACKET
=
5
,
SOCK_PACKET
=
10
,
};
#define SOCK_MAX (SOCK_PACKET + 1)
#define ARCH_HAS_SOCKET_TYPES
#endif
/* _ASM_SOCKET_H */
include/linux/net.h
View file @
be8f04e4
...
...
@@ -21,6 +21,7 @@
#include <linux/config.h>
#include <linux/wait.h>
#include <linux/stringify.h>
#include <asm/socket.h>
struct
poll_table_struct
;
struct
inode
;
...
...
@@ -61,8 +62,13 @@ typedef enum {
#define SOCK_ASYNC_WAITDATA 1
#define SOCK_NOSPACE 2
#ifndef ARCH_HAS_SOCKET_TYPES
/** sock_type - Socket types
*
*
* When adding some new socket type please
* grep ARCH_HAS_SOCKET_TYPE include/asm-* /socket.h, at least MIPS
* overrides this enum for binary compat reasons.
*
* @SOCK_STREAM - stream (connection) socket
* @SOCK_DGRAM - datagram (conn.less) socket
* @SOCK_RAW - raw socket
...
...
@@ -82,6 +88,8 @@ enum sock_type {
#define SOCK_MAX (SOCK_PACKET + 1)
#endif
/* ARCH_HAS_SOCKET_TYPES */
/**
* struct socket - general BSD socket
* @state - socket state (%SS_CONNECTED, etc)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment