[PATCH]Add SO_ORIGINAL_DST support and SOL_IP constant to socket_get_options()
| From: | Leonardo Pedretti | Date: | Thu, 30 Sep 2004 18:48:40 +0000 |
| Subject: | [PATCH]Add SO_ORIGINAL_DST support and SOL_IP constant to socket_get_options() | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-13077@lists.php.net to get a copy of this message | ||
This patch adds some quite useful functionalities to socket_get_options()
function.
1st of all, it adds the constant SOL_IP to indicate IP layer in the level
parameter.
2nd, and the most important, it adds the SO_ORIGINAL_DST constant for the
optname parameter, and adds this functionality of c's getsockopt()
It applies and compiles cleanly in php-5.0.2 sources under linux 2.4.26
(slackware linux current). I think it will apply cleanly also into cvs.
Things NOT tested: I don't have solaris, bsd, etc. to test it. If someone can
test it and report necessary changes, or errors so I can make the changes, It
will be appreciated.
Regards
Leo
--
Leonardo Pedretti
Axon Sistemas
Líder de Equipo Proyecto Basalto
Attachment: [text/x-diff] original_dst.diff
Attachment: [text/x-diff] original_dst.diff