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 @@ -1474,6 +1474,7 @@ pub const SOCK_STREAM: c_int = 1;
14741474pub const SOCK_DGRAM : c_int = 2 ;
14751475pub const SOCK_SEQPACKET : c_int = 5 ;
14761476pub const SOCK_DCCP : c_int = 6 ;
1477+ #[ deprecated( since = "0.2.70" , note = "AF_PACKET must be used instead" ) ]
14771478pub const SOCK_PACKET : c_int = 10 ;
14781479
14791480pub const IPPROTO_MAX : c_int = 256 ;
Original file line number Diff line number Diff line change @@ -763,6 +763,7 @@ pub const ENOTSUP: c_int = EOPNOTSUPP;
763763
764764pub const SOCK_SEQPACKET : c_int = 5 ;
765765pub const SOCK_DCCP : c_int = 6 ;
766+ #[ deprecated( since = "0.2.70" , note = "AF_PACKET must be used instead" ) ]
766767pub const SOCK_PACKET : c_int = 10 ;
767768
768769pub const AF_IB : c_int = 27 ;
Original file line number Diff line number Diff line change 186186 pub mr_address: [ c_uchar; 8 ] ,
187187 }
188188
189+ #[ deprecated( since = "0.2.70" , note = "sockaddr_ll type must be used instead" ) ]
189190 pub struct sockaddr_pkt {
190191 pub spkt_family: c_ushort,
191192 pub spkt_device: [ c_uchar; 14 ] ,
Original file line number Diff line number Diff line change @@ -716,6 +716,7 @@ pub const MAP_ANONYMOUS: c_int = MAP_ANON;
716716pub const SOCK_SEQPACKET : c_int = 5 ;
717717pub const SOCK_DCCP : c_int = 6 ;
718718pub const SOCK_NONBLOCK : c_int = O_NONBLOCK ;
719+ #[ deprecated( since = "0.2.70" , note = "AF_PACKET must be used instead" ) ]
719720pub const SOCK_PACKET : c_int = 10 ;
720721
721722pub 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