Skip to content

Commit f597216

Browse files
committed
Add FreeBSD TCP constants
1 parent 530f31f commit f597216

File tree

1 file changed

+22
-0
lines changed
  • src/unix/bsd/freebsdlike/freebsd

1 file changed

+22
-0
lines changed

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,28 @@ pub const IPPROTO_DIVERT: ::c_int = 258;
792792
/// SeND pseudo-protocol
793793
pub const IPPROTO_SEND: ::c_int = 259;
794794

795+
// sys/netinet/TCP.h
796+
pub const TCP_NODELAY: ::c_int = 1;
797+
pub const TCP_NOPUSH: ::c_int = 4;
798+
pub const TCP_NOOPT: ::c_int = 8;
799+
pub const TCP_MD5SIG: ::c_int = 16;
800+
pub const TCP_INFO: ::c_int = 32;
801+
pub const TCP_LOG: ::c_int = 34;
802+
pub const TCP_LOGBUF: ::c_int = 35;
803+
pub const TCP_LOGID: ::c_int = 36;
804+
pub const TCP_LOGDUMP: ::c_int = 37;
805+
pub const TCP_LOGDUMPID: ::c_int = 38;
806+
pub const TCP_CONGESTION: ::c_int = 64;
807+
pub const TCP_CCALGOOPT: ::c_int = 65;
808+
pub const TCP_DELACK: ::c_int = 72;
809+
pub const TCP_KEEPINIT: ::c_int = 128;
810+
pub const TCP_KEEPIDLE: ::c_int = 256;
811+
pub const TCP_KEEPINTVL: ::c_int = 512;
812+
pub const TCP_KEEPCNT: ::c_int = 1024;
813+
pub const TCP_FASTOPEN: ::c_int = 1025;
814+
pub const TCP_PCAP_OUT: ::c_int = 2048;
815+
pub const TCP_PCAP_IN: ::c_int = 4096;
816+
795817
pub const IP_BINDANY: ::c_int = 24;
796818

797819
pub const PF_SLOW: ::c_int = AF_SLOW;

0 commit comments

Comments
 (0)