| ... | ... | @@ -468,6 +468,36 @@ pub const SOCK_SEQPACKET = 5; |
| 468 | 468 | pub const SOCK_CLOEXEC = 0x8000; |
| 469 | 469 | pub const SOCK_NONBLOCK = 0x4000; |
| 470 | 470 | |
| 471 | pub const SO_DEBUG = 0x0001; |
| 472 | pub const SO_ACCEPTCONN = 0x0002; |
| 473 | pub const SO_REUSEADDR = 0x0004; |
| 474 | pub const SO_KEEPALIVE = 0x0008; |
| 475 | pub const SO_DONTROUTE = 0x0010; |
| 476 | pub const SO_BROADCAST = 0x0020; |
| 477 | pub const SO_USELOOPBACK = 0x0040; |
| 478 | pub const SO_LINGER = 0x0080; |
| 479 | pub const SO_OOBINLINE = 0x0100; |
| 480 | pub const SO_REUSEPORT = 0x0200; |
| 481 | pub const SO_TIMESTAMP = 0x0800; |
| 482 | pub const SO_BINDANY = 0x1000; |
| 483 | pub const SO_ZEROIZE = 0x2000; |
| 484 | pub const SO_SNDBUF = 0x1001; |
| 485 | pub const SO_RCVBUF = 0x1002; |
| 486 | pub const SO_SNDLOWAT = 0x1003; |
| 487 | pub const SO_RCVLOWAT = 0x1004; |
| 488 | pub const SO_SNDTIMEO = 0x1005; |
| 489 | pub const SO_RCVTIMEO = 0x1006; |
| 490 | pub const SO_ERROR = 0x1007; |
| 491 | pub const SO_TYPE = 0x1008; |
| 492 | pub const SO_NETPROC = 0x1020; |
| 493 | pub const SO_RTABLE = 0x1021; |
| 494 | pub const SO_PEERCRED = 0x1022; |
| 495 | pub const SO_SPLICE = 0x1023; |
| 496 | pub const SO_DOMAIN = 0x1024; |
| 497 | pub const SO_PROTOCOL = 0x1025; |
| 498 | |
| 499 | pub const SOL_SOCKET = 0xffff; |
| 500 | |
| 471 | 501 | pub const PF_UNSPEC = AF_UNSPEC; |
| 472 | 502 | pub const PF_LOCAL = AF_LOCAL; |
| 473 | 503 | pub const PF_UNIX = AF_UNIX; |