File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
21
21
- Added ` SOF_TIMESTAMPING_OPT_ID ` and ` SOF_TIMESTAMPING_OPT_TSONLY ` to ` nix::sys::socket::TimestampingFlag ` .
22
22
([ #2048 ] ( https://github.com/nix-rust/nix/pull/2048 ) )
23
23
- Enabled socket timestamping options on Android. ([ #2077 ] ( https://github.com/nix-rust/nix/pull/2077 ) )
24
+ - Added ` SO_SETFIB ` and ` SO_USER_COOKIE ` to ` nix::sys::socket::sockopt ` for FreeBSD.
25
+ ([ #2085 ] ( https://github.com/nix-rust/nix/pull/2085 ) )
24
26
25
27
### Changed
26
28
Original file line number Diff line number Diff line change @@ -746,6 +746,26 @@ sockopt_impl!(
746
746
libc:: IP_BINDANY ,
747
747
bool
748
748
) ;
749
+ #[ cfg( target_os = "freebsd" ) ]
750
+ sockopt_impl ! (
751
+ /// Set the route table (FIB) for this socket up to the `net.fibs` OID limit
752
+ /// (more specific than the setfib command line/call which are process based).
753
+ Fib ,
754
+ SetOnly ,
755
+ libc:: SOL_SOCKET ,
756
+ libc:: SO_SETFIB ,
757
+ i32
758
+ ) ;
759
+ #[ cfg( target_os = "freebsd" ) ]
760
+ sockopt_impl ! (
761
+ /// Set `so_user_cookie` for this socket allowing network traffic based
762
+ /// upon it, similar to Linux's netfilter MARK.
763
+ UserCookie ,
764
+ SetOnly ,
765
+ libc:: SOL_SOCKET ,
766
+ libc:: SO_USER_COOKIE ,
767
+ u32
768
+ ) ;
749
769
#[ cfg( target_os = "linux" ) ]
750
770
sockopt_impl ! (
751
771
/// Set the mark for each packet sent through this socket (similar to the
You can’t perform that action at this time.
0 commit comments