LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-17-2009, 12:02 PM   #1
cwpetersen
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 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
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:09 PM.

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