note 94821 deleted from function.socket-create by danbrown
| From: | danbrown@php.net | Date: | Thu, 26 Nov 2009 18:15:50 +0000 |
| Subject: | note 94821 deleted from function.socket-create by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-163306@lists.php.net to get a copy of this message | ||
Note Submitter: ewout dot zigterman at dimat dot nl
----
The text above says :
SOCK_RAW Provides raw network protocol access. This special type of socket can be used to
manually construct any type of protocol. A common use for this socket type is to perform ICMP
requests (like ping, traceroute, etc).
I dont see how it is possible to create a traceroute script with the SOCK_RAW, because i dont find a
function to adjust the TTL of the outgoing packets.
Also it seems only possible to use ICMP, TCP or UDP as protocols, so it would be inpossible to
create youre own packet from scratch (with mac addresses etc and the layer 3 (ip) part).