File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -987,6 +987,25 @@ sockopt_impl!(
987
987
libc:: SO_ACCEPTFILTER ,
988
988
libc:: accept_filter_arg
989
989
) ;
990
+ #[ cfg( target_os = "illumos" ) ]
991
+ sockopt_impl ! (
992
+ /// Attach a named filter to this socket to be able to
993
+ /// defer when anough byte had been buffered by the kernel
994
+ FilAttach ,
995
+ SetOnly ,
996
+ libc:: SOL_FILTER ,
997
+ libc:: FIL_ATTACH ,
998
+ SetOsString <' static >
999
+ ) ;
1000
+ #[ cfg( target_os = "illumos" ) ]
1001
+ sockopt_impl ! (
1002
+ /// Detach a socket filter previously attached with FIL_ATTACH
1003
+ FilDetach ,
1004
+ SetOnly ,
1005
+ libc:: SOL_FILTER ,
1006
+ libc:: FIL_DETACH ,
1007
+ SetOsString <' static >
1008
+ ) ;
990
1009
#[ cfg( target_os = "linux" ) ]
991
1010
sockopt_impl ! (
992
1011
/// Set the mark for each packet sent through this socket (similar to the
@@ -1799,7 +1818,7 @@ pub struct SetOsString<'a> {
1799
1818
val : & ' a OsStr ,
1800
1819
}
1801
1820
1802
- #[ cfg( any( target_os = "freebsd" , linux_android) ) ]
1821
+ #[ cfg( any( target_os = "freebsd" , linux_android, target_os = "illumos" ) ) ]
1803
1822
impl < ' a > Set < ' a , OsString > for SetOsString < ' a > {
1804
1823
fn new ( val : & OsString ) -> SetOsString {
1805
1824
SetOsString {
You can’t perform that action at this time.
0 commit comments