Skip to content

Commit 572f142

Browse files
committed
Haiku: Add more IP_* and IPV6_* constants.
These are used in the socket2 library.
1 parent 8a85d66 commit 572f142

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

src/unix/haiku/mod.rs

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,22 +646,43 @@ pub const AF_UNIX: ::c_int = AF_LOCAL;
646646
pub const AF_BLUETOOTH: ::c_int = 10;
647647
pub const AF_MAX: ::c_int = 11;
648648

649+
pub const IP_OPTIONS: ::c_int = 1;
650+
pub const IP_HDRINCL: ::c_int = 2;
651+
pub const IP_TOS: ::c_int = 3;
652+
pub const IP_TTL: ::c_int = 4;
653+
pub const IP_RECVOPTS: ::c_int = 5;
654+
pub const IP_RECVRETOPTS: ::c_int = 6;
655+
pub const IP_RECVDSTADDR: ::c_int = 7;
656+
pub const IP_RETOPTS: ::c_int = 8;
657+
pub const IP_MULTICAST_IF: ::c_int = 9;
649658
pub const IP_MULTICAST_TTL: ::c_int = 10;
650659
pub const IP_MULTICAST_LOOP: ::c_int = 11;
651-
pub const IP_TTL: ::c_int = 4;
652-
pub const IP_HDRINCL: ::c_int = 2;
653660
pub const IP_ADD_MEMBERSHIP: ::c_int = 12;
654661
pub const IP_DROP_MEMBERSHIP: ::c_int = 13;
662+
pub const IP_BLOCK_SOURCE: ::c_int = 14;
663+
pub const IP_UNBLOCK_SOURCE: ::c_int = 15;
664+
pub const IP_ADD_SOURCE_MEMBERSHIP: ::c_int = 16;
665+
pub const IP_DROP_SOURCE_MEMBERSHIP: ::c_int = 17;
655666

656667
pub const TCP_NODELAY: ::c_int = 0x01;
657668
pub const TCP_MAXSEG: ::c_int = 0x02;
658669
pub const TCP_NOPUSH: ::c_int = 0x04;
659670
pub const TCP_NOOPT: ::c_int = 0x08;
660671

672+
pub const IPV6_MULTICAST_IF: ::c_int = 24;
673+
pub const IPV6_MULTICAST_HOPS: ::c_int = 25;
661674
pub const IPV6_MULTICAST_LOOP: ::c_int = 26;
675+
pub const IPV6_UNICAST_HOPS: ::c_int = 27;
662676
pub const IPV6_JOIN_GROUP: ::c_int = 28;
663677
pub const IPV6_LEAVE_GROUP: ::c_int = 29;
664678
pub const IPV6_V6ONLY: ::c_int = 30;
679+
pub const IPV6_PKTINFO: ::c_int = 31;
680+
pub const IPV6_RECVPKTINFO: ::c_int = 32;
681+
pub const IPV6_HOPLIMIT: ::c_int = 33;
682+
pub const IPV6_REVCHOPLIMIT: ::c_int = 34;
683+
pub const IPV6_HOPOPTS: ::c_int = 35;
684+
pub const IPV6_DSTOPTS: ::c_int = 36;
685+
pub const IPV6_RTHDR: ::c_int = 37;
665686

666687
pub const MSG_OOB: ::c_int = 0x0001;
667688
pub const MSG_PEEK: ::c_int = 0x0002;

0 commit comments

Comments
 (0)