[PATCH]Add SO_ORIGINAL_DST support and SOL_IP constant to socket_get_options()

php.internals

Leonardo Pedretti

21 years ago
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