Cosmetics from FreeBSD.

This commit is contained in:
Ralf Corsepius
2007-03-25 07:33:20 +00:00
parent 590bf06bbd
commit 3bf2241fd2

View File

@@ -38,12 +38,15 @@
#include <sys/queue.h> /* for TAILQ macros */ #include <sys/queue.h> /* for TAILQ macros */
#include <sys/select.h> /* for struct selinfo */ #include <sys/select.h> /* for struct selinfo */
/* /*
* Kernel structure per socket. * Kernel structure per socket.
* Contains send and receive buffer queues, * Contains send and receive buffer queues,
* handle on protocol and pointer to protocol * handle on protocol and pointer to protocol
* private data and error information. * private data and error information.
*/ */
typedef u_quad_t so_gen_t;
struct socket { struct socket {
short so_type; /* generic type, see socket.h */ short so_type; /* generic type, see socket.h */
short so_options; /* from socket call, see socket.h */ short so_options; /* from socket call, see socket.h */
@@ -77,7 +80,7 @@ struct socket {
/* /*
* Variables for socket buffering. * Variables for socket buffering.
*/ */
struct sockbuf { struct sockbuf {
u_int sb_cc; /* actual chars in buffer */ u_int sb_cc; /* actual chars in buffer */
u_int sb_hiwat; /* max actual char count */ u_int sb_hiwat; /* max actual char count */
u_int sb_mbcnt; /* chars of mbufs used */ u_int sb_mbcnt; /* chars of mbufs used */