add optname SO_ORIGINAL_DST
SO_ORIGINAL_DST is defined at
get original dst while accepting a socket from iptables target REDIRECT
i made a pull request at github:
Updated by akr (Akira Tanaka) almost 2 years ago
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