LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   PF_PACKET socket bind() to loopback interface (lo) (https://www.linuxquestions.org/questions/linux-networking-3/pf_packet-socket-bind-to-loopback-interface-lo-712289/)

cwpetersen 03-17-2009 12:02 PM

PF_PACKET socket bind() to loopback interface (lo)
 
In a nutshell, if I create an ICMP ping request from link level upwards and send it via a PF_PACKET/SOCK_RAW socket bound to the loopback interface (lo), why doesn't the OS network stack respond to my ping.

If I type "ping 127.0.0.1" from the console, everything works fine.

I'm suspicious of routing tables but not entirely sure.

ping is just a simple example, i need to do TCP/Telnet HTTP/ udp etc all using raw sockets to localhost.

Thanks
Carl Petersen


All times are GMT -5. The time now is 06:41 AM.