Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Sending and receiving ARP packets through libsocket: (4 Items)
   
Sending and receiving ARP packets through libsocket  
To work around an incompatibility between lsm-autoip.so and dhcp.client, I have decided to roll my own autoip mechanism.
  This should be simple, but I can not open a socket to the ARP layer.  I'm assuming I have to use the AF_ARP protocol 
family as defined in socket.h, but I can't find the right combination of arguments to socket to get it to open.  I have 
to guess because there is no documentation on how to do this.

Does anyone have sample code to send and receive ARP packets?

P.S. I am developing under QNX 6.5.0.  And despite having the Standard Support plan, I have been waiting months for 
access to the networking source code.
Re: Sending and receiving ARP packets through libsocket  
Hi Robert,

BPF fills this type of need. See the Networking project wiki 
http://community.qnx.com/sf/wiki/do/viewPage/projects.networking/wiki/Filtering_wiki_page 
and the product docs.

We actually have something like this on the road map, an improved Auto 
IP which lives in "user land" and not inside io-pkt (like current 
lsm-autoip.so). If you're interested please contact your FAE. It would 
be great if you could share some of your requirements and thoughts on 
this.Hopefully it would be beneficial to you too. You can contact me at 
plahti[at]qnx.com.

Cheers!
/P

On 07/27/2011 04:47 PM, Robert Murrell wrote:
>
> To work around an incompatibility between lsm-autoip.so and 
> dhcp.client, I have decided to roll my own autoip mechanism.  This 
> should be simple, but I can not open a socket to the ARP layer.  I'm 
> assuming I have to use the AF_ARP protocol family as defined in 
> socket.h, but I can't find the right combination of arguments to 
> socket to get it to open.  I have to guess because there is no 
> documentation on how to do this.
>
> Does anyone have sample code to send and receive ARP packets?
>
> P.S. I am developing under QNX 6.5.0.  And despite having the Standard 
> Support plan, I have been waiting months for access to the networking 
> source code.
>
>
>
>
> _______________________________________________
>
> Technology
> http://community.qnx.com/sf/go/post87637
>
Re: Sending and receiving ARP packets through libsocket  
Our ultimate goal is to implement the zero configuration mechanism described at http://www.zeroconf.org/  AutoIP is an 
important part of this mechanism.

Re: Sending and receiving ARP packets through libsocket  
I see,

Please feel free to contact us or your FAE/Support.

Cheers!
/P

On 07/28/2011 01:30 PM, Robert Murrell wrote:
>
> Our ultimate goal is to implement the zero configuration mechanism 
> described at http://www.zeroconf.org/  AutoIP is an important part of 
> this mechanism.
>
>
>
>
>
> _______________________________________________
>
> Technology
> http://community.qnx.com/sf/go/post87660
>