From: akr@... Date: 2018-04-19T07:37:39+00:00 Subject: [ruby-core:86597] [Ruby trunk Feature#14696] add optname SO_ORIGINAL_DST Issue #14696 has been updated by akr (Akira Tanaka). SO_ORIGINAL_DST is defined in linux kernel header, not glibc header. The provided patch defines SO_ORIGINAL_DST as 80 in ext/socket/rubysocket.h. There are several options: - define the constant in Ruby as the patch. This add (one) more magic number in Ruby - include linux kernel headers. It may conflict with glibc headers - define the constant in application as Socket::SO_ORIGINAL_DST = 80 ---------------------------------------- Feature #14696: add optname SO_ORIGINAL_DST https://bugs.ruby-lang.org/issues/14696#change-71546 * Author: takafan (taka fan) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- SO_ORIGINAL_DST is defined at https://github.com/torvalds/linux/blob/master/include/uapi/linux/netfilter_ipv4.h get original dst while accepting a socket from iptables target REDIRECT i made a pull request at github: https://github.com/ruby/ruby/pull/1859 -- https://bugs.ruby-lang.org/ Unsubscribe: