Q-Bert has asked for the wisdom of the Perl Monks concerning the following question:
In the new 2.4 Linux, there is a new socket option in the netfilter code, called SO_ORIGINAL_DST. We use this to find the original socket destination once the socket has gone through the NAT code. netfilter_ipv4.h defines that value as SO_ORIGINAL_DST = 80.
If I try $socket->sockopt(80), I get $! = "Protocol not available". So I tried to modify Socket-1.5, and added a simple entry for SO_ORIGINAL_DST, but I then got:
Your vendor has not defined Socket macro SO_ORIGINAL_DST, used at ./proxy.pl line 14
How do I add this new socket option so that both IO::Socket and perl recognize it as valid and return the right value ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I *add* a socket option ?
by Fastolfe (Vicar) on Oct 12, 2000 at 17:49 UTC | |
|
(tye)Re: How do I *add* a socket option ?
by tye (Sage) on Oct 12, 2000 at 18:33 UTC | |
by Q-Bert (Novice) on Oct 12, 2000 at 18:47 UTC | |
by tye (Sage) on Oct 12, 2000 at 18:57 UTC | |
by Q-Bert (Novice) on Oct 12, 2000 at 19:11 UTC |