Skip to content

Commit 2cdceb5

Browse files
bors[bot]Icemicbeariceatouchet
authored
Merge #1490 #1493
1490: add libc::IP6T_SO_ORIGINAL_DST to socket opt r=asomers a=bearice the original PR #1410 was stalled for a while let's make it happen. this should closes #1410 and #938 1493: Fix crates.io badge r=asomers a=atouchet Co-authored-by: Icemic <[email protected]> Co-authored-by: Bearice Ren <[email protected]> Co-authored-by: Alex Touchet <[email protected]>
3 parents 5ed5bb6 + e6f972c + c6ce955 commit 2cdceb5

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
2424
(#[1302](https://github.com/nix-rust/nix/pull/1302))
2525
- Added `ptrace::interrupt` method for platforms that support `PTRACE_INTERRUPT`
2626
(#[1422](https://github.com/nix-rust/nix/pull/1422))
27+
- Added `IP6T_SO_ORIGINAL_DST` sockopt.
28+
(#[1490](https://github.com/nix-rust/nix/pull/1490))
2729

2830
### Changed
2931

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Rust bindings to *nix APIs
22

33
[![Cirrus Build Status](https://api.cirrus-ci.com/github/nix-rust/nix.svg)](https://cirrus-ci.com/github/nix-rust/nix)
4-
[![crates.io](https://meritbadge.herokuapp.com/nix)](https://crates.io/crates/nix)
4+
[![crates.io](https://img.shields.io/crates/v/nix.svg)](https://crates.io/crates/nix)
55

66
[Documentation (Releases)](https://docs.rs/nix/)
77

src/sys/socket/sockopt.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ sockopt_impl!(GetOnly, AcceptConn, libc::SOL_SOCKET, libc::SO_ACCEPTCONN, bool);
283283
sockopt_impl!(Both, BindToDevice, libc::SOL_SOCKET, libc::SO_BINDTODEVICE, OsString<[u8; libc::IFNAMSIZ]>);
284284
#[cfg(any(target_os = "android", target_os = "linux"))]
285285
sockopt_impl!(GetOnly, OriginalDst, libc::SOL_IP, libc::SO_ORIGINAL_DST, libc::sockaddr_in);
286+
#[cfg(any(target_os = "android", target_os = "linux"))]
287+
sockopt_impl!(GetOnly, Ip6tOriginalDst, libc::SOL_IPV6, libc::IP6T_SO_ORIGINAL_DST, libc::sockaddr_in6);
286288
sockopt_impl!(Both, ReceiveTimestamp, libc::SOL_SOCKET, libc::SO_TIMESTAMP, bool);
287289
#[cfg(all(target_os = "linux"))]
288290
sockopt_impl!(Both, ReceiveTimestampns, libc::SOL_SOCKET, libc::SO_TIMESTAMPNS, bool);

0 commit comments

Comments
 (0)