Skip to content

Commit 969b650

Browse files
committed
openbsd: unbreak: TCP_* flags
1 parent 81a0e2c commit 969b650

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,6 +1549,8 @@ pub const IPV6_LEAVE_GROUP: ::c_int = 13;
15491549
pub const IPV6_PKTINFO: ::c_int = 46;
15501550
pub const IPV6_RECVPKTINFO: ::c_int = 61;
15511551

1552+
pub const TCP_NOPUSH: ::c_int = 4;
1553+
pub const TCP_NOOPT: ::c_int = 8;
15521554
pub const TCP_KEEPALIVE: ::c_int = 0x10;
15531555

15541556
pub const SOL_LOCAL: ::c_int = 0;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,8 @@ pub const IPV6_LEAVE_GROUP: ::c_int = 13;
669669
pub const IPV6_RECVPKTINFO: ::c_int = 36;
670670
pub const IPV6_PKTINFO: ::c_int = 46;
671671

672+
pub const TCP_NOPUSH: ::c_int = 4;
673+
pub const TCP_NOOPT: ::c_int = 8;
672674
pub const TCP_KEEPIDLE: ::c_int = 256;
673675
pub const TCP_KEEPINTVL: ::c_int = 512;
674676
pub const TCP_KEEPCNT: ::c_int = 1024;

src/unix/bsd/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,6 @@ pub const LOG_PERROR: ::c_int = 0x20;
318318

319319
pub const TCP_NODELAY: ::c_int = 1;
320320
pub const TCP_MAXSEG: ::c_int = 2;
321-
pub const TCP_NOPUSH: ::c_int = 4;
322-
pub const TCP_NOOPT: ::c_int = 8;
323321

324322
pub const PIPE_BUF: usize = 512;
325323

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -431,14 +431,6 @@ pub const IP_DROP_MEMBERSHIP: ::c_int = 13;
431431
pub const IPV6_RECVPKTINFO: ::c_int = 36;
432432
pub const IPV6_PKTINFO: ::c_int = 46;
433433

434-
pub const TCP_KEEPIDLE: ::c_int = 3;
435-
pub const TCP_KEEPINTVL: ::c_int = 5;
436-
pub const TCP_KEEPCNT: ::c_int = 6;
437-
pub const TCP_KEEPINIT: ::c_int = 7;
438-
pub const TCP_INFO: ::c_int = 9;
439-
pub const TCP_MD5SIG: ::c_int = 0x10;
440-
pub const TCP_CONGCTL: ::c_int = 0x20;
441-
442434
pub const SOL_SOCKET: ::c_int = 0xffff;
443435
pub const SO_DEBUG: ::c_int = 0x01;
444436
pub const SO_ACCEPTCONN: ::c_int = 0x0002;

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,14 @@ pub const IPV6_JOIN_GROUP: ::c_int = 12;
399399
pub const IPV6_LEAVE_GROUP: ::c_int = 13;
400400

401401
pub const TCP_KEEPIDLE: ::c_int = 3;
402+
pub const TCP_NOPUSH: ::c_int = 4;
402403
pub const TCP_KEEPINTVL: ::c_int = 5;
403404
pub const TCP_KEEPCNT: ::c_int = 6;
404405
pub const TCP_KEEPINIT: ::c_int = 7;
406+
pub const TCP_NOOPT: ::c_int = 8;
407+
pub const TCP_INFO: ::c_int = 9;
408+
pub const TCP_MD5SIG: ::c_int = 0x10;
409+
pub const TCP_CONGCTL: ::c_int = 0x20;
405410

406411
pub const SOCK_CONN_DGRAM: ::c_int = 6;
407412
pub const SOCK_DCCP: ::c_int = SOCK_CONN_DGRAM;

src/unix/bsd/netbsdlike/openbsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ pub const IP_RECVDSTADDR: ::c_int = 7;
321321
pub const IP_SENDSRCADDR: ::c_int = IP_RECVDSTADDR;
322322

323323
// sys/netinet/in.h
324+
pub const TCP_MD5SIG: ::c_int = 0x04;
324325
pub const TCP_NOPUSH: ::c_int = 0x10;
325326

326327
pub const AF_ECMA: ::c_int = 8;

0 commit comments

Comments
 (0)