Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-17-2009, 12:02 PM   #1
LQ Newbie
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
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" 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.

Carl Petersen


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loopback the only interface after 12.1 upgrade... Lufbery Slackware 5 05-15-2008 08:58 PM
Can I bind to a serial port using BIND Socket API?? venkat_p257 Linux - General 2 12-04-2007 05:49 AM
c code to make a socket mirror (loopback) saavik Programming 2 08-16-2007 12:55 AM
Loopback interface won't come up at boot jdavidow Linux - Networking 1 02-03-2007 01:04 AM
Using loopback interface... ozymandias Linux - Newbie 2 10-28-2005 01:37 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration