Project

General

Profile

Actions

Feature #6394

closed

Support SO_ORIGINAL_DST socket option

Added by rascov (Min-Cheng Chan) almost 12 years ago. Updated almost 6 years ago.

Status:
Rejected
Target version:
-
[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.


Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Feature #14696: add optname SO_ORIGINAL_DSTRejectedActions

Updated by mame (Yusuke Endoh) almost 12 years ago

  • Status changed from Open to Assigned
  • Assignee set to akr (Akira Tanaka)
Actions #2

Updated by mame (Yusuke Endoh) over 11 years ago

  • Target version set to 2.6
Actions #3

Updated by naruse (Yui NARUSE) over 6 years ago

  • Target version deleted (2.6)
Actions #4

Updated by akr (Akira Tanaka) almost 6 years ago

Actions #5

Updated by nobu (Nobuyoshi Nakada) almost 6 years ago

Actions #6

Updated by nobu (Nobuyoshi Nakada) almost 6 years ago

Updated by matz (Yukihiro Matsumoto) almost 6 years ago

  • Status changed from Assigned to Rejected

As #14696, we reject the proposal.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0