Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

SOCK_RAW and Linux

From: Frédéric Raynal <frederic.raynal(at)security-labs.org>
Date: Thu Mar 27 2003 - 09:30:40 EST

        Hello,

I am experimenting problems with interface selection when using LIBNET_RAW4 (SOCK_RAW socket).

For instance, I have 2 interfaces on my box, eth0 and eth1, and when I intialize libnet with eth1, the packet is sent through eth0, whatever is the destination address.

Thus I have several questions:

  • is this problem specific to Linux ?
  • if yes, what kernels are targeted (mine is 2.4.21-pre5)
  • Linux is developping its own way to handle packets with PF_PACKET. Wouldn't that be better to use them rather than general sockets (of course with the help of a #define __LINUX__ in the code)
--
Frederic RAYNAL, PhD
Chief Editor of MISC
http://www.security-labs.org
Multi-Systems & Internet Security Cookbook



---------------------------------------------------------------------
To unsubscribe, e-mail: libnet-unsubscribe@securityfocus.com
For additional commands, e-mail: libnet-help@securityfocus.com
Received on Thu Mar 27 09:30:57 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:23 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library