Actions
Feature #14696
closedadd optname SO_ORIGINAL_DST
Status:
Rejected
Assignee:
-
Target version:
-
Description
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:
Updated by akr (Akira Tanaka) almost 6 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
Updated by akr (Akira Tanaka) almost 6 years ago
- Related to Feature #6394: Support SO_ORIGINAL_DST socket option added
Updated by nobu (Nobuyoshi Nakada) almost 6 years ago
- Is duplicate of Feature #6394: Support SO_ORIGINAL_DST socket option added
Updated by nobu (Nobuyoshi Nakada) almost 6 years ago
- Related to deleted (Feature #6394: Support SO_ORIGINAL_DST socket option)
Updated by matz (Yukihiro Matsumoto) almost 6 years ago
- Status changed from Open to Rejected
I didn't know SO_ORIGINAL_DST
is not defined in libc headers.
In this case, I'd suggest defining the constant in your application.
Matz.
Actions
Like0
Like0Like0Like0Like0Like0