File tree Expand file tree Collapse file tree 5 files changed +5
-0
lines changed Expand file tree Collapse file tree 5 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1432,6 +1432,7 @@ pub const SOCK_STREAM: c_int = 1;
14321432pub const SOCK_DGRAM : c_int = 2 ;
14331433pub const SOCK_SEQPACKET : c_int = 5 ;
14341434pub const SOCK_DCCP : c_int = 6 ;
1435+ #[ deprecated( since = "0.2.70" , note = "AF_PACKET must be used instead" ) ]
14351436pub const SOCK_PACKET : c_int = 10 ;
14361437
14371438pub const IPPROTO_MAX : c_int = 256 ;
Original file line number Diff line number Diff line change @@ -767,6 +767,7 @@ pub const ENOTSUP: c_int = EOPNOTSUPP;
767767
768768pub const SOCK_SEQPACKET : c_int = 5 ;
769769pub const SOCK_DCCP : c_int = 6 ;
770+ #[ deprecated( since = "0.2.70" , note = "AF_PACKET must be used instead" ) ]
770771pub const SOCK_PACKET : c_int = 10 ;
771772
772773pub const AF_IB : c_int = 27 ;
Original file line number Diff line number Diff line change 185185 pub mr_address: [ c_uchar; 8 ] ,
186186 }
187187
188+ #[ deprecated( since = "0.2.70" , note = "sockaddr_ll type must be used instead" ) ]
188189 pub struct sockaddr_pkt {
189190 pub spkt_family: c_ushort,
190191 pub spkt_device: [ c_uchar; 14 ] ,
Original file line number Diff line number Diff line change @@ -718,6 +718,7 @@ pub const MAP_ANONYMOUS: c_int = MAP_ANON;
718718pub const SOCK_SEQPACKET : c_int = 5 ;
719719pub const SOCK_DCCP : c_int = 6 ;
720720pub const SOCK_NONBLOCK : c_int = O_NONBLOCK ;
721+ #[ deprecated( since = "0.2.70" , note = "AF_PACKET must be used instead" ) ]
721722pub const SOCK_PACKET : c_int = 10 ;
722723
723724pub const SOMAXCONN : c_int = 128 ;
Original file line number Diff line number Diff line change @@ -382,6 +382,7 @@ pub const RUSAGE_THREAD: c_int = 1;
382382pub const SHM_EXEC : c_int = 0o100000 ;
383383pub const SIGPOLL : c_int = SIGIO ;
384384pub const SOCK_DCCP : c_int = 6 ;
385+ #[ deprecated( since = "0.2.70" , note = "AF_PACKET must be used instead" ) ]
385386pub const SOCK_PACKET : c_int = 10 ;
386387pub const TCP_COOKIE_TRANSACTIONS : c_int = 15 ;
387388pub const UDP_GRO : c_int = 104 ;
You can’t perform that action at this time.
0 commit comments