@@ -120,6 +120,17 @@ s! {
120
120
pub __sin6_src_id: u32
121
121
}
122
122
123
+ pub struct in_pktinfo {
124
+ pub ipi_ifindex: :: c_uint,
125
+ pub ipi_spec_dst: :: in_addr,
126
+ pub ipi_addr: :: in_addr,
127
+ }
128
+
129
+ pub struct in6_pktinfo {
130
+ pub ipi6_addr: :: in6_addr,
131
+ pub ipi6_ifindex: :: c_uint,
132
+ }
133
+
123
134
pub struct passwd {
124
135
pub pw_name: * mut :: c_char,
125
136
pub pw_passwd: * mut :: c_char,
@@ -1238,14 +1249,20 @@ pub const CLD_STOPPED: ::c_int = 5;
1238
1249
pub const CLD_CONTINUED : :: c_int = 6 ;
1239
1250
1240
1251
pub const IP_RECVDSTADDR : :: c_int = 0x7 ;
1252
+ pub const IP_PKTINFO : :: c_int = 0x1a ;
1253
+ pub const IP_DONTFRAG : :: c_int = 0x1b ;
1241
1254
pub const IP_SEC_OPT : :: c_int = 0x22 ;
1242
1255
1243
1256
pub const IPV6_UNICAST_HOPS : :: c_int = 0x5 ;
1244
1257
pub const IPV6_MULTICAST_IF : :: c_int = 0x6 ;
1245
1258
pub const IPV6_MULTICAST_HOPS : :: c_int = 0x7 ;
1246
1259
pub const IPV6_MULTICAST_LOOP : :: c_int = 0x8 ;
1260
+ pub const IPV6_PKTINFO : :: c_int = 0xb ;
1247
1261
pub const IPV6_RECVPKTINFO : :: c_int = 0x12 ;
1262
+ pub const IPV6_RECVTCLASS : :: c_int = 0x19 ;
1263
+ pub const IPV6_DONTFRAG : :: c_int = 0x21 ;
1248
1264
pub const IPV6_SEC_OPT : :: c_int = 0x22 ;
1265
+ pub const IPV6_TCLASS : :: c_int = 0x26 ;
1249
1266
pub const IPV6_V6ONLY : :: c_int = 0x27 ;
1250
1267
1251
1268
cfg_if ! {
@@ -1775,8 +1792,9 @@ pub const SOCK_SEQPACKET: ::c_int = 6;
1775
1792
pub const IP_MULTICAST_IF : :: c_int = 16 ;
1776
1793
pub const IP_MULTICAST_TTL : :: c_int = 17 ;
1777
1794
pub const IP_MULTICAST_LOOP : :: c_int = 18 ;
1778
- pub const IP_TTL : :: c_int = 4 ;
1779
1795
pub const IP_HDRINCL : :: c_int = 2 ;
1796
+ pub const IP_TOS : :: c_int = 3 ;
1797
+ pub const IP_TTL : :: c_int = 4 ;
1780
1798
pub const IP_ADD_MEMBERSHIP : :: c_int = 19 ;
1781
1799
pub const IP_DROP_MEMBERSHIP : :: c_int = 20 ;
1782
1800
pub const IPV6_JOIN_GROUP : :: c_int = 9 ;
@@ -2869,15 +2887,15 @@ extern "C" {
2869
2887
) -> :: c_int ;
2870
2888
pub fn nl_langinfo ( item : :: nl_item ) -> * mut :: c_char ;
2871
2889
2872
- #[ cfg_attr ( target_os = "illumos" , link_name = "__xnet_bind" ) ]
2890
+ #[ link_name = "__xnet_bind" ]
2873
2891
pub fn bind ( socket : :: c_int , address : * const :: sockaddr , address_len : :: socklen_t ) -> :: c_int ;
2874
2892
2875
2893
pub fn writev ( fd : :: c_int , iov : * const :: iovec , iovcnt : :: c_int ) -> :: ssize_t ;
2876
2894
pub fn readv ( fd : :: c_int , iov : * const :: iovec , iovcnt : :: c_int ) -> :: ssize_t ;
2877
2895
2878
- #[ cfg_attr ( target_os = "illumos" , link_name = "__xnet_sendmsg" ) ]
2896
+ #[ link_name = "__xnet_sendmsg" ]
2879
2897
pub fn sendmsg ( fd : :: c_int , msg : * const :: msghdr , flags : :: c_int ) -> :: ssize_t ;
2880
- #[ cfg_attr ( target_os = "illumos" , link_name = "__xnet_recvmsg" ) ]
2898
+ #[ link_name = "__xnet_recvmsg" ]
2881
2899
pub fn recvmsg ( fd : :: c_int , msg : * mut :: msghdr , flags : :: c_int ) -> :: ssize_t ;
2882
2900
pub fn accept4 (
2883
2901
fd : :: c_int ,
0 commit comments