dgramop / libcrafter

Automatically exported from code.google.com/p/libcrafter
0 stars 0 forks source link

Packet::RawSocketSend fails when binding to a device #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When Packet::RawSocketSend is called with a virtual network interface (such as 
"venet0"), it fails on "setsockopt(sd, SOL_SOCKET, SO_BINDTODEVICE, device, 
iface.size())". Please note that in order to write to a raw socket it is not 
necessary to bind to it.

Also, the error message reads "Setting IPPROTO_IP (IP_HDRINCL) option to raw 
socket" (it should read "Setting SOL_SOCKET (SO_BINDTODEVICE) option to raw 
socket").

Original issue reported on code.google.com by brunon...@brunonery.com on 27 Apr 2012 at 4:55

GoogleCodeExporter commented 8 years ago

Original comment by pellegre...@gmail.com on 27 Apr 2012 at 6:08

GoogleCodeExporter commented 8 years ago
I update the current tree about this issue

Original comment by pellegre...@gmail.com on 28 Apr 2012 at 6:11

GoogleCodeExporter commented 8 years ago

Original comment by pellegre...@gmail.com on 5 Jun 2012 at 5:20