From: matz@... Date: 2018-04-19T08:22:04+00:00 Subject: [ruby-core:86605] [Ruby trunk Feature#6394][Rejected] Support SO_ORIGINAL_DST socket option Issue #6394 has been updated by matz (Yukihiro Matsumoto). Status changed from Assigned to Rejected As #14696, we reject the proposal. ---------------------------------------- Feature #6394: Support SO_ORIGINAL_DST socket option https://bugs.ruby-lang.org/issues/6394#change-71562 * Author: rascov (Min-Cheng Chan) * Status: Rejected * Priority: Normal * Assignee: akr (Akira Tanaka) * Target version: ---------------------------------------- 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. -- https://bugs.ruby-lang.org/ Unsubscribe: