File tree Expand file tree Collapse file tree 8 files changed +36
-4
lines changed Expand file tree Collapse file tree 8 files changed +36
-4
lines changed Original file line number Diff line number Diff line change @@ -407,6 +407,7 @@ pub const PF_NATM: ::c_int = AF_NATM;
407407pub const SOCK_STREAM : :: c_int = 1 ;
408408pub const SOCK_DGRAM : :: c_int = 2 ;
409409pub const SOCK_RAW : :: c_int = 3 ;
410+ pub const SOCK_RDM : :: c_int = 4 ;
410411pub const SOCK_SEQPACKET : :: c_int = 5 ;
411412pub const IPPROTO_ICMP : :: c_int = 1 ;
412413pub const IPPROTO_ICMPV6 : :: c_int = 58 ;
Original file line number Diff line number Diff line change @@ -486,11 +486,14 @@ pub const SO_KEEPALIVE: ::c_int = 9;
486486pub const SO_OOBINLINE : :: c_int = 10 ;
487487pub const SO_LINGER : :: c_int = 13 ;
488488pub const SO_REUSEPORT : :: c_int = 15 ;
489+ pub const SO_PASSCRED : :: c_int = 16 ;
490+ pub const SO_PEERCRED : :: c_int = 17 ;
489491pub const SO_RCVLOWAT : :: c_int = 18 ;
490492pub const SO_SNDLOWAT : :: c_int = 19 ;
491493pub const SO_RCVTIMEO : :: c_int = 20 ;
492494pub const SO_SNDTIMEO : :: c_int = 21 ;
493495pub const SO_ACCEPTCONN : :: c_int = 30 ;
496+ pub const SO_SNDBUFFORCE : :: c_int = 32 ;
494497
495498pub const O_ACCMODE : :: c_int = 3 ;
496499pub const O_APPEND : :: c_int = 1024 ;
Original file line number Diff line number Diff line change @@ -328,6 +328,13 @@ pub const B3000000: ::speed_t = 0o010015;
328328pub const B3500000 : :: speed_t = 0o010016 ;
329329pub const B4000000 : :: speed_t = 0o010017 ;
330330
331+ pub const SO_BINDTODEVICE : :: c_int = 25 ;
332+ pub const SO_TIMESTAMP : :: c_int = 29 ;
333+ pub const SO_MARK : :: c_int = 36 ;
334+ pub const SO_RXQ_OVFL : :: c_int = 40 ;
335+ pub const SO_PEEK_OFF : :: c_int = 42 ;
336+ pub const SO_BUSY_POLL : :: c_int = 46 ;
337+
331338extern {
332339 pub fn ioctl ( fd : :: c_int , request : :: c_int , ...) -> :: c_int ;
333340 pub fn ptrace ( request : :: c_int , ...) -> :: c_long ;
Original file line number Diff line number Diff line change @@ -172,9 +172,19 @@ pub const SO_SNDBUF: ::c_int = 7;
172172pub const SO_RCVBUF : :: c_int = 8 ;
173173pub const SO_KEEPALIVE : :: c_int = 9 ;
174174pub const SO_OOBINLINE : :: c_int = 10 ;
175+ pub const SO_PRIORITY : :: c_int = 12 ;
175176pub const SO_LINGER : :: c_int = 13 ;
177+ pub const SO_BSDCOMPAT : :: c_int = 14 ;
176178pub const SO_REUSEPORT : :: c_int = 15 ;
179+ pub const SO_BINDTODEVICE : :: c_int = 25 ;
180+ pub const SO_TIMESTAMP : :: c_int = 29 ;
177181pub const SO_ACCEPTCONN : :: c_int = 30 ;
182+ pub const SO_MARK : :: c_int = 36 ;
183+ pub const SO_PROTOCOL : :: c_int = 38 ;
184+ pub const SO_DOMAIN : :: c_int = 39 ;
185+ pub const SO_RXQ_OVFL : :: c_int = 40 ;
186+ pub const SO_PEEK_OFF : :: c_int = 42 ;
187+ pub const SO_BUSY_POLL : :: c_int = 46 ;
178188
179189pub const SA_ONSTACK : :: c_int = 0x08000000 ;
180190pub const SA_SIGINFO : :: c_int = 0x00000004 ;
Original file line number Diff line number Diff line change @@ -84,8 +84,6 @@ pub const EDEADLOCK: ::c_int = 58;
8484pub const SO_SNDBUFFORCE : :: c_int = 32 ;
8585pub const SO_RCVBUFFORCE : :: c_int = 33 ;
8686pub const SO_NO_CHECK : :: c_int = 11 ;
87- pub const SO_PRIORITY : :: c_int = 12 ;
88- pub const SO_BSDCOMPAT : :: c_int = 14 ;
8987pub const SO_RCVLOWAT : :: c_int = 16 ;
9088pub const SO_SNDLOWAT : :: c_int = 17 ;
9189pub const SO_RCVTIMEO : :: c_int = 18 ;
Original file line number Diff line number Diff line change @@ -184,8 +184,6 @@ pub const EDEADLOCK: ::c_int = 35;
184184pub const SO_SNDBUFFORCE : :: c_int = 32 ;
185185pub const SO_RCVBUFFORCE : :: c_int = 33 ;
186186pub const SO_NO_CHECK : :: c_int = 11 ;
187- pub const SO_PRIORITY : :: c_int = 12 ;
188- pub const SO_BSDCOMPAT : :: c_int = 14 ;
189187pub const SO_PASSCRED : :: c_int = 16 ;
190188pub const SO_PEERCRED : :: c_int = 17 ;
191189pub const SO_RCVLOWAT : :: c_int = 18 ;
Original file line number Diff line number Diff line change @@ -183,12 +183,19 @@ pub const ERFKILL: ::c_int = 134;
183183pub const SOL_SOCKET : :: c_int = 0xffff ;
184184
185185pub const SO_REUSEADDR : :: c_int = 4 ;
186+ pub const SO_BINDTODEVICE : :: c_int = 0x000d ;
187+ pub const SO_TIMESTAMP : :: c_int = 0x001d ;
188+ pub const SO_MARK : :: c_int = 0x0022 ;
189+ pub const SO_RXQ_OVFL : :: c_int = 0x0024 ;
190+ pub const SO_PEEK_OFF : :: c_int = 0x0026 ;
191+ pub const SO_BUSY_POLL : :: c_int = 0x0030 ;
186192pub const SO_TYPE : :: c_int = 0x1008 ;
187193pub const SO_ERROR : :: c_int = 0x1007 ;
188194pub const SO_DONTROUTE : :: c_int = 16 ;
189195pub const SO_BROADCAST : :: c_int = 32 ;
190196pub const SO_SNDBUF : :: c_int = 0x1001 ;
191197pub const SO_RCVBUF : :: c_int = 0x1002 ;
198+ pub const SO_DOMAIN : :: c_int = 0x1029 ;
192199pub const SO_KEEPALIVE : :: c_int = 8 ;
193200pub const SO_OOBINLINE : :: c_int = 0x100 ;
194201pub const SO_LINGER : :: c_int = 128 ;
Original file line number Diff line number Diff line change @@ -350,6 +350,14 @@ pub const SO_ERROR: ::c_int = 4;
350350pub const SO_RCVTIMEO : :: c_int = 20 ;
351351pub const SO_REUSEADDR : :: c_int = 2 ;
352352pub const SO_SNDTIMEO : :: c_int = 21 ;
353+ pub const SO_BINDTODEVICE : :: c_int = 25 ;
354+ pub const SO_TIMESTAMP : :: c_int = 29 ;
355+ pub const SO_MARK : :: c_int = 36 ;
356+ pub const SO_PROTOCOL : :: c_int = 38 ;
357+ pub const SO_DOMAIN : :: c_int = 39 ;
358+ pub const SO_RXQ_OVFL : :: c_int = 40 ;
359+ pub const SO_PEEK_OFF : :: c_int = 42 ;
360+ pub const SO_BUSY_POLL : :: c_int = 46 ;
353361
354362pub const RLIMIT_RSS : :: c_int = 5 ;
355363pub const RLIMIT_NOFILE : :: c_int = 7 ;
You can’t perform that action at this time.
0 commit comments