Update sockets.

PR:		docs/88507
Submitted by:	Ulf Lilleengen <lulf@kerneled.org>
Approved by:	trhodes (mentor)
This commit is contained in:
Jesus R. Camou 2005-11-09 03:30:59 +00:00
parent 25d00cc4a6
commit 1a115bf288
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=26292

View file

@ -449,7 +449,7 @@ int socket(int domain, int type, int protocol);
* addresses.
*/
struct sockaddr {
u_char sa_len; /* total length */
unsigned char sa_len; /* total lenght */
sa_family_t sa_family; /* address family */
char sa_data[14]; /* actually longer; address value */
};
@ -519,8 +519,12 @@ struct sockaddr {
* in interface output routine
*/
#define AF_NETGRAPH 32 /* Netgraph sockets */
#define AF_SLOW 33 /* 802.3ad slow protocol */
#define AF_SCLUSTER 34 /* Sitara cluster protocol */
#define AF_ARP 35
#define AF_BLUETOOTH 36 /* Bluetooth sockets */
#define AF_MAX 37
#define AF_MAX 33
</programlisting>
<para>The one used for <acronym>IP</acronym> is
@ -544,9 +548,9 @@ struct sockaddr {
* Socket address, internet style.
*/
struct sockaddr_in {
u_char sin_len;
u_char sin_family;
u_short sin_port;
uint8_t sin_len;
sa_family_t sin_family;
in_port_t sin_port;
struct in_addr sin_addr;
char sin_zero[8];
};