Hello! How can i take and send packets with ethernet multicast mac adress and send them to my programm or send them from my programm. packet format is: dst multicast mac adress+ src multicast mac adress + data + crc. Thanks.
Probably the easiest and best documented way is to use BPF to send and receive the packets. There is a little overhead with this method so if you are looking for higher performance there are other methods including writing your own protocol lsm, but this is more complicated and not recommended unless you need the performance. Don't forget that the NIC will usually filter out the Ethernet multicast on Rx until you open a socket and do an SIOCADDMULTI ioctl. Also in your description of the packet you left out the Ethertype. You will need to use one that identifies your traffic to avoid it being mis-identified by other devices on the network. Please see http://standards.ieee.org/develop/regauth/ethertype/public.html Regards, Nick.
This source shows how to send/receive arbitrary ethernet frames via bpf - also how to receive frames in promiscuous mode (when supported by driver). Perhaps it may help.
Thank Dennis for source code
Thanks Nick. You are rigth about Ethertype. I will read about BFP
Why are you interested in the mac layer? Is the usual rfc ipv[46] <-> ethernet conversion sufficient? On Wed, Feb 05, 2014 at 02:46:26AM -0500, Veniamin Afanasev wrote: > Hello! How can i take and send packets with ethernet multicast mac adress and send them to my programm or send them from my programm. packet format is: dst multicast mac adress+ src multicast mac adress + data + crc. > Thanks. > > > > _______________________________________________ > > Technology > http://community.qnx.com/sf/go/post108604 > To cancel your subscription to this discussion, please e-mail technology-networking-unsubscribe@community.qnx.com
I need in in goose and gsse in IEC61850 protocol stack > > Why are you interested in the mac layer? Is the usual rfc > ipv[46] <-> ethernet conversion sufficient? > > On Wed, Feb 05, 2014 at 02:46:26AM -0500, Veniamin Afanasev wrote: > > Hello! How can i take and send packets with ethernet multicast mac adress > and send them to my programm or send them from my programm. packet format is: > dst multicast mac adress+ src multicast mac adress + data + crc. > > Thanks. > > > > > > > > _______________________________________________ > > > > Technology > > http://community.qnx.com/sf/go/post108604 > > To cancel your subscription to this discussion, please e-mail technology- > networking-unsubscribe@community.qnx.com
I alse need in in goose and gsse in IEC61850 protocol stack.Please tell me some demos.Thanks!
We do not have support for goose and gsse from IEC61850. You will need to either write your own or engage with a 3rd party.