| ... | ... | @@ -396,6 +396,47 @@ pub const SOCK_SEQPACKET = 5; |
| 396 | 396 | pub const SOCK_CLOEXEC = 0x10000000; |
| 397 | 397 | pub const SOCK_NONBLOCK = 0x20000000; |
| 398 | 398 | |
| 399 | pub const SO_DEBUG = 0x00000001; |
| 400 | pub const SO_ACCEPTCONN = 0x00000002; |
| 401 | pub const SO_REUSEADDR = 0x00000004; |
| 402 | pub const SO_KEEPALIVE = 0x00000008; |
| 403 | pub const SO_DONTROUTE = 0x00000010; |
| 404 | pub const SO_BROADCAST = 0x00000020; |
| 405 | pub const SO_USELOOPBACK = 0x00000040; |
| 406 | pub const SO_LINGER = 0x00000080; |
| 407 | pub const SO_OOBINLINE = 0x00000100; |
| 408 | pub const SO_REUSEPORT = 0x00000200; |
| 409 | pub const SO_TIMESTAMP = 0x00000400; |
| 410 | pub const SO_NOSIGPIPE = 0x00000800; |
| 411 | pub const SO_ACCEPTFILTER = 0x00001000; |
| 412 | pub const SO_BINTIME = 0x00002000; |
| 413 | pub const SO_NO_OFFLOAD = 0x00004000; |
| 414 | pub const SO_NO_DDP = 0x00008000; |
| 415 | pub const SO_REUSEPORT_LB = 0x00010000; |
| 416 | |
| 417 | pub const SO_SNDBUF = 0x1001; |
| 418 | pub const SO_RCVBUF = 0x1002; |
| 419 | pub const SO_SNDLOWAT = 0x1003; |
| 420 | pub const SO_RCVLOWAT = 0x1004; |
| 421 | pub const SO_SNDTIMEO = 0x1005; |
| 422 | pub const SO_RCVTIMEO = 0x1006; |
| 423 | pub const SO_ERROR = 0x1007; |
| 424 | pub const SO_TYPE = 0x1008; |
| 425 | pub const SO_LABEL = 0x1009; |
| 426 | pub const SO_PEERLABEL = 0x1010; |
| 427 | pub const SO_LISTENQLIMIT = 0x1011; |
| 428 | pub const SO_LISTENQLEN = 0x1012; |
| 429 | pub const SO_LISTENINCQLEN = 0x1013; |
| 430 | pub const SO_SETFIB = 0x1014; |
| 431 | pub const SO_USER_COOKIE = 0x1015; |
| 432 | pub const SO_PROTOCOL = 0x1016; |
| 433 | pub const SO_PROTOTYPE = SO_PROTOCOL; |
| 434 | pub const SO_TS_CLOCK = 0x1017; |
| 435 | pub const SO_MAX_PACING_RATE = 0x1018; |
| 436 | pub const SO_DOMAIN = 0x1019; |
| 437 | |
| 438 | pub const SOL_SOCKET = 0xffff; |
| 439 | |
| 399 | 440 | pub const PF_UNSPEC = AF_UNSPEC; |
| 400 | 441 | pub const PF_LOCAL = AF_LOCAL; |
| 401 | 442 | pub const PF_UNIX = PF_LOCAL; |