summaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorHomu <homu@barosl.com>2016-05-03 09:21:00 +0900
committerHomu <homu@barosl.com>2016-05-03 09:21:00 +0900
commit273347d16147938e1052a92418cfe2a1e5a3f4c0 (patch)
treeefc590e564fc8c0b65c7349336363fc8a3ffc365 /Cargo.toml
parentd049c3fea84ea924699b9496e08dd46b6f502a4c (diff)
parent39545809e40f335d3d79e8832a6d255d8d27b45f (diff)
downloadnix-273347d16147938e1052a92418cfe2a1e5a3f4c0.zip
Auto merge of #367 - justinlatimer:so-original-dst, r=kamalmarhubi
Add SO_ORIGINAL_DST In Linux, the SO_ORIGINAL_DST socket option can be used to get the original destination, which can be needed if the connection is translated by a NAT, i.e. iptables. In C, this information can be obtained by ``getsockopt(fd, SOL_IP, SO_ORIGINAL_DST, &remote, &remote_len)`` and returns a ``sockaddr_in`` struct. I've added a binding for this option. Thanks!
Diffstat (limited to 'Cargo.toml')
0 files changed, 0 insertions, 0 deletions