Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
f81ef558
Commit
f81ef558
authored
7 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Trivial re-ordering of socket option bit numbers to match order presented on OpenGroup.org.
parent
b0e30afd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/sys/socket.h
+17
-17
17 additions, 17 deletions
include/sys/socket.h
net/socket/socket.h
+7
-7
7 additions, 7 deletions
net/socket/socket.h
with
24 additions
and
24 deletions
include/sys/socket.h
+
17
−
17
View file @
f81ef558
...
...
@@ -116,38 +116,38 @@
/* Socket-level options */
#define SO_
DEBUG 0
/* Enables recording of debugging information (get/set
).
#define SO_
ACCEPTCONN 0
/* Reports whether socket listening is enabled (get only
).
* arg: pointer to integer containing a boolean value */
#define SO_
ACCEPTCONN 1
/* Reports whether socket list
ening
is enabled (get only
).
#define SO_
BROADCAST 1
/* Permits s
en
d
ing
of broadcast messages (get/set
).
* arg: pointer to integer containing a boolean value */
#define SO_
BROADCAST 2
/* Permits sending of broadcast messages
(get/set).
#define SO_
DEBUG 2
/* Enables recording of debugging information
(get/set).
* arg: pointer to integer containing a boolean value */
#define SO_
REUSEADDR 3
/* Allow reuse of local addresses
(get/set)
#define SO_
DONTROUTE 3
/* Requests that outgoing messages bypass standard routing
(get/set)
* arg: pointer to integer containing a boolean value */
#define SO_KEEPALIVE 4
/* Keeps connections active by enabling the periodic transmission
#define SO_ERROR 4
/* Reports and clears error status (get only). arg: returns
* an integer value */
#define SO_KEEPALIVE 5
/* Keeps connections active by enabling the periodic transmission
* of messages (get/set).
* arg: pointer to integer containing a boolean value */
#define SO_LINGER
5
/* Lingers on a close() if data is present (get/set)
#define SO_LINGER
6
/* Lingers on a close() if data is present (get/set)
* arg: struct linger */
#define SO_OOBINLINE
6
/* Leaves received out-of-band data (data marked urgent) inline
#define SO_OOBINLINE
7
/* Leaves received out-of-band data (data marked urgent) inline
* (get/set) arg: pointer to integer containing a boolean value */
#define SO_SNDBUF 7
/* Sets send buffer size. arg: integer value (get/set). */
#define SO_RCVBUF 8
/* Sets receive buffer size. arg: integer value (get/set). */
#define SO_ERROR 9
/* Reports and clears error status (get only). arg: returns
* an integer value */
#define SO_TYPE 10
/* Reports the socket type (get only). return: int */
#define SO_DONTROUTE 11
/* Requests that outgoing messages bypass standard routing (get/set)
* arg: pointer to integer containing a boolean value */
#define SO_RCVLOWAT 12
/* Sets the minimum number of bytes to process for socket input
#define SO_RCVLOWAT 9
/* Sets the minimum number of bytes to process for socket input
* (get/set). arg: integer value */
#define SO_RCVTIMEO 1
3
/* Sets the timeout value that specifies the maximum amount of time
#define SO_RCVTIMEO 1
0
/* Sets the timeout value that specifies the maximum amount of time
* an input function waits until it completes (get/set).
* arg: struct timeval */
#define SO_SNDLOWAT 14
/* Sets the minimum number of bytes to process for socket output
#define SO_REUSEADDR 11
/* Allow reuse of local addresses (get/set)
* arg: pointer to integer containing a boolean value */
#define SO_SNDBUF 12
/* Sets send buffer size. arg: integer value (get/set). */
#define SO_SNDLOWAT 13
/* Sets the minimum number of bytes to process for socket output
* (get/set). arg: integer value */
#define SO_SNDTIMEO 1
5
/* Sets the timeout value specifying the amount of time that an
#define SO_SNDTIMEO 1
4
/* Sets the timeout value specifying the amount of time that an
* output function blocks because flow control prevents data from
* being sent(get/set). arg: struct timeval */
#define SO_TYPE 15
/* Reports the socket type (get only). return: int */
/* Protocol-level socket options may begin with this value */
...
...
This diff is collapsed.
Click to expand it.
net/socket/socket.h
+
7
−
7
View file @
f81ef558
...
...
@@ -95,24 +95,24 @@
/* These define bit positions for each socket option (see sys/socket.h) */
#define _SO_DEBUG _SO_BIT(SO_DEBUG)
#define _SO_ACCEPTCONN _SO_BIT(SO_ACCEPTCONN)
#define _SO_BROADCAST _SO_BIT(SO_BROADCAST)
#define _SO_REUSEADDR _SO_BIT(SO_REUSEADDR)
#define _SO_DEBUG _SO_BIT(SO_DEBUG)
#define _SO_DONTROUTE _SO_BIT(SO_DONTROUTE)
#define _SO_ERROR _SO_BIT(SO_ERROR)
#define _SO_KEEPALIVE _SO_BIT(SO_KEEPALIVE)
#define _SO_LINGER _SO_BIT(SO_LINGER)
#define _SO_OOBINLINE _SO_BIT(SO_OOBINLINE)
#define _SO_SNDBUF _SO_BIT(SO_SNDBUF)
#define _SO_RCVBUF _SO_BIT(SO_RCVBUF)
#define _SO_ERROR _SO_BIT(SO_ERROR)
#define _SO_TYPE _SO_BIT(SO_TYPE)
#define _SO_DONTROUTE _SO_BIT(SO_DONTROUTE)
#define _SO_RCVLOWAT _SO_BIT(SO_RCVLOWAT)
#define _SO_RCVTIMEO _SO_BIT(SO_RCVTIMEO)
#define _SO_REUSEADDR _SO_BIT(SO_REUSEADDR)
#define _SO_SNDBUF _SO_BIT(SO_SNDBUF)
#define _SO_SNDLOWAT _SO_BIT(SO_SNDLOWAT)
#define _SO_SNDTIMEO _SO_BIT(SO_SNDTIMEO)
#define _SO_TYPE _SO_BIT(SO_TYPE)
/* This is the larget option value */
/* This is the large
s
t option value
. REVISIT: belongs in sys/socket.h
*/
#define _SO_MAXOPT (15)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment