Skip to content

Commit e3c95f1

Browse files
committed
Add IP_ and IPV6_
1 parent c8e8ec6 commit e3c95f1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/unix/newlib/mod.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,13 +520,20 @@ pub const IFF_MULTICAST: ::c_int = 0x8000; // supports multicast
520520
pub const TCP_NODELAY: ::c_int = 8193;
521521
pub const TCP_MAXSEG: ::c_int = 8194;
522522

523-
pub const IP_TOS: ::c_int = 7;
523+
pub const IP_TOS: ::c_int = 3;
524524
pub const IP_TTL: ::c_int = 8;
525-
pub const IP_MULTICAST_LOOP: ::c_int = 9;
525+
pub const IP_MULTICAST_IF: ::c_int = 9;
526526
pub const IP_MULTICAST_TTL: ::c_int = 10;
527+
pub const IP_MULTICAST_LOOP: ::c_int = 11;
527528
pub const IP_ADD_MEMBERSHIP: ::c_int = 11;
528529
pub const IP_DROP_MEMBERSHIP: ::c_int = 12;
529530

531+
pub const IPV6_UNICAST_HOPS: ::c_int = 4;
532+
pub const IPV6_MULTICAST_IF: ::c_int = 9;
533+
pub const IPV6_MULTICAST_HOPS: ::c_int = 10;
534+
pub const IPV6_MULTICAST_LOOP: ::c_int = 11;
535+
pub const IPV6_V6ONLY: ::c_int = 27;
536+
530537
pub const HOST_NOT_FOUND: ::c_int = 1;
531538
pub const NO_DATA: ::c_int = 2;
532539
pub const NO_ADDRESS: ::c_int = 2;

0 commit comments

Comments
 (0)