|
RE: Send Raw ethernet packet using bpf
|
02/23/2009 5:44 PM
post22779
|
RE: Send Raw ethernet packet using bpf
Just to confirm, if you DON'T add the filter, does the packet get sent
out?
Also, does the filter work in terms of the packets being received?
As a side note, one thing you might want to examine with this sort of
implementation is the real-time performance of the packet reception.
The stack hasn't been designed for highly-deterministic response to
packet reception / transmission through the socket resource manager
interface (representative of BPF) so there can be a significant amount
of jitter (especially under load) for packets being received by your
application. I understand that EtherCAT is "real-time", so you might
want to ensure that the performance is "good enough" for this. You also
have the possibility of using the lsm-nraw resource manager interface
which we've recently added to the repository (this provides the same
sort of interface that the nfm-nraw interface did in io-net).
Robert.
-----Original Message-----
From: Lasse Skov [mailto:community-noreply@qnx.com]
Sent: Monday, February 23, 2009 10:40 AM
To: general-networking
Subject: Re: Send Raw ethernet packet using bpf
I found something about loading a filterprogram to the BPF device by
using, BIOCSETF.
But the packet with another ethernet type is not send out on the
ethernet card.
I attached the code with small differences to this post.
/Lasse
_______________________________________________
General
http://community.qnx.com/sf/go/post22738
|
|
|