Yes, I know that I downgraded Socket because of that, but I was ready to take that chance.
I added
in Socket.xs ,and also put the SO_ORIGINAL_DST tag in Socket.pmif (strEQ(name, "SO_ORIGINAL_DST")) #ifdef SO_ORIGINAL_DST return SO_ORIGINAL_DST; #else goto not_there; #endif
I compiled it and installed it. It installed it in /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Socket/Socket.so
Now, when I run:
I get "Your vendor has not defined Socket macro SO_ORIGINAL_DST, used at ./proxy.pl line 14".my $destination_address = $server_socket->sockopt(SO_ORIGINAL_DST); print STDERR "Error: $!\n"; print STDERR "Requested destination address: $destination_address\n";
So the error appears as soon as $server_socket->sockopt() gets called, because it doesn't even reach the "Error: " output.
In reply to RE: (tye)Re: How do I *add* a socket option ?
by Q-Bert
in thread How do I *add* a socket option ?
by Q-Bert
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |