#include <assert.h>#include <errno.h>#include <stdio.h>#include <string.h>#include <sys/ioctl.h>#include <sys/socket.h>#include <sys/types.h>#include <netinet/tcp.h>#include <net/gen/in.h>#include <net/gen/tcp.h>#include <net/gen/tcp_io.h>#include <net/gen/udp.h>#include <net/gen/udp_io.h>Include dependency graph for getsockopt.c:

Go to the source code of this file.
Defines | |
| #define | DEBUG 0 |
Functions | |
| static int | _tcp_getsockopt (int socket, int level, int option_name, void *_RESTRICT option_value, socklen_t *_RESTRICT option_len) |
| static int | _udp_getsockopt (int socket, int level, int option_name, void *_RESTRICT option_value, socklen_t *_RESTRICT option_len) |
| int | getsockopt (int socket, int level, int option_name, void *_RESTRICT option_value, socklen_t *_RESTRICT option_len) |
|
|
Definition at line 16 of file getsockopt.c. |
|
||||||||||||||||||||||||
|
Definition at line 61 of file getsockopt.c. References ENOPROTOOPT, err, errno, fprintf(), i, ioctl, IPPROTO_TCP, memcpy(), NWIOTCPGERROR, r, SO_ERROR, SO_KEEPALIVE, SO_RCVBUF, SO_SNDBUF, SOL_SOCKET, stderr, and TCP_NODELAY. Referenced by getsockopt(). |
|
||||||||||||||||||||||||
|
Definition at line 129 of file getsockopt.c. References ENOSYS, errno, fprintf(), i, and stderr. Referenced by getsockopt(). |
|
||||||||||||||||||||||||
|
Definition at line 23 of file getsockopt.c. References _tcp_getsockopt(), _udp_getsockopt(), ENOTSOCK, ENOTTY, errno, fprintf(), ioctl, NWIOGTCPOPT, NWIOGUDPOPT, r, and stderr. |
1.4.6