Re: [etherlab-users] ethercat filtering

2017-02-14 Thread Sriram V
Hi Mike, You are right. But that does not explain, Why the interface gets packets eventhough the lan cable is removed. So, i am trying to figure out if the program is wrong or is there something going on which i am missing. You could try this on a laptop as well. Not sure whats going on..

Re: [etherlab-users] ethercat filtering

2017-02-14 Thread Mike O'Connor
On 14/02/2017 9:48 PM, Mike O'Connor wrote: > On 14/02/2017 9:41 PM, Sriram V wrote: >> Hi mike, >> >> I understand that. This is a totallyu different question and pertains >> to ethernet. >> >> I am just trying to find out on a normal ethernet network with 2 >> interfaces whether a IP routing

Re: [etherlab-users] ethercat filtering

2017-02-14 Thread Mike O'Connor
On 14/02/2017 9:18 PM, Sriram V wrote: > Hello Mike, > > I tried running a simple packet sniffer on a Laptop with 2 ethernet > interfaces. Still i am seeing the same behaviour. > > On my laptop, I have 2 network interfaces eth0 and eth1. eth0 is the > lan and eth1 is the wlan. The Ethercat link

Re: [etherlab-users] ethercat filtering

2017-02-14 Thread Sriram V
Hello Mike, I tried running a simple packet sniffer on a Laptop with 2 ethernet interfaces. Still i am seeing the same behaviour. On my laptop, I have 2 network interfaces eth0 and eth1. eth0 is the lan and eth1 is the wlan. I have created a raw socket and bound to eth0 using the below call.

Re: [etherlab-users] ethercat filtering

2017-02-11 Thread Mike O'Connor
Hi Sriram So it sounds like you have the cabling wrong, Ethercat networks must be separated on a layer 2 network. Wired correctly you should never see the Ethercat frames on both networks. Mike On 10/02/2017 10:59 PM, Sriram V wrote: > Hi Mike, > > I have 2 ethernet ports. I am broadcasting

Re: [etherlab-users] ethercat filtering

2017-02-10 Thread Sebastien Blanchet
Hi Sriram, Are you trying to write an EtherCAT slave for a device with a dual ethernet controller ? Regards, --- Sebastien On 02/10/2017 01:29 PM, Sriram V wrote: Hi Mike, I have 2 ethernet ports. I am broadcasting ethercat packets on the network. This is received by both the ports. I

Re: [etherlab-users] ethercat filtering

2017-02-09 Thread Mike O'Connor
On 10/02/2017 4:59 PM, Sriram V wrote: > Hello, > > I wanted to check if i can allow only ethercat packets to be passed to > app layer? > > Basically, I want to process only ethercat packets. Therefore, i want > to kernel to filter out basic IP packets. > > Regards, > Sriram >