Project

General

Profile

Feature #6394

Support SO_ORIGINAL_DST socket option

Added by Min-Cheng Chan about 4 years ago. Updated over 3 years ago.

Status:
Assigned
Priority:
Normal
Assignee:
[ruby-core:44809]

Description

In Linux, SO_ORIGINAL_DST provides the original packet destination, which is very useful when packet is translated by NAT.
In C, this information can be obtained by getsockopt(fd, SOL_IP, SO_ORIGINAL_DST, &remote, &remote_len);
However, current Ruby Socket class does not provide this option.
Please consider adding this option into Ruby.

By the way, I am still working on the patch file.
This option is named with SO_ prefix. However it is an IP layer option (SOL_IP).
ext/socket/mkconstants.rb seems to generate options according to the option prefix, which goes wrong in this case.

History

#1 [ruby-core:44841] Updated by Yusuke Endoh about 4 years ago

  • Status changed from Open to Assigned
  • Assignee set to Akira Tanaka

#2 Updated by Yusuke Endoh over 3 years ago

  • Target version set to next minor

Also available in: Atom PDF