kohler / click

The Click modular router: fast modular packet processing and analysis
Other
740 stars 321 forks source link

Click FromHost working on some interfaces but not on others #406

Open soojinm opened 6 years ago

soojinm commented 6 years ago

Hello, The Click FromDevice works on some interfaces and not on other. It's unclear why.
I'm running click on userspace.

If I write a very simple click that just prints the packet,

in_device :: FromDevice(ethX); in_device ->Print("PKT" ) ;

It would trigger that print statement for some interfaces but not on other interfaces. For instance, it would not work for the dummy bridge (bridge0) I created for the testing purpose. If I inject some packets via tcpreplay to bridge0, I see that on the TCPDUMP but I do not see any print statement.

Then, I tested on real physical interfaces on the host (eth0 and eth2). It works on eth0 (real interface) but not on eth2 (also real physical interface). Does anyone know why this is the case?