Raw socket PF_PACKET questions
Hi,
I'm working with raw-ethernet sockets, and there are some questions
that have arisen to me during my work. Hope someone knows the answers !
1) Bind step is always necessary when opening PF_PACKET sockets? Only
in sending, in receiving, in both?
2) Is there any patch that solves problem of getting repeated packets
when using loopback interface + multicast?
3) I cannot receive broadcast messages from a raw ethernet socket which
i open this way:
sk = socket (PF_PACKET,SOCK_RAW,0);
do i need to pass any kind of option to the socket to enable broadcast
receiving?
Thanx a lot in advance,
Manuel Cotallo.
.
Relevant Pages
- Re: Sending and receiving UDP socket broadcast messages
... > I want to both send and receive broadcast messages from a single port. ... > the same port address and binding to that address, one for receiving and ... if two sockets are bound to the same port the behavior is undefined ... (microsoft.public.win32.programmer.networks) - Re: socket communication / callback
... > I'm wondering if it's possible to use sockets for the folloing purpose: ... > A running process acts as a kind of server, ... > The receiving should trigger some functions (some display update based on ... toolkits provide an event loop already; if not then there are systems on ... (comp.lang.perl.misc) - What to do? lock()? invoke()? begininvoke()?
... I have an application using sockets, and it uses the asynchronous method ... for receiving ... The question is, in "mySocketClass", what is the best way to send an ... What is the best way to send events from a worker thread to the main ... (microsoft.public.dotnet.languages.csharp) - Re: Subprocess with a Python Session?
... This is one of the more reliable methods since upon receiving a packet ... Using the readline method on file objects created from sockets ... flush(), if you want to do many records, or closeas Fredrik said if only one ... (comp.lang.python) - Re: socket programming
... Thank you David, as u said it is correct, but I am not receiving any ... opening lots of sockets for communciation ... examples for clients, simple servers, multi-protocol servers, ... (microsoft.public.vc.mfc) |
|