diff options
author | Homu <homu@barosl.com> | 2016-05-03 09:21:00 +0900 |
---|---|---|
committer | Homu <homu@barosl.com> | 2016-05-03 09:21:00 +0900 |
commit | 273347d16147938e1052a92418cfe2a1e5a3f4c0 (patch) | |
tree | efc590e564fc8c0b65c7349336363fc8a3ffc365 /.gitignore | |
parent | d049c3fea84ea924699b9496e08dd46b6f502a4c (diff) | |
parent | 39545809e40f335d3d79e8832a6d255d8d27b45f (diff) | |
download | nix-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 '.gitignore')
0 files changed, 0 insertions, 0 deletions