On Thursday 21 July 2011 17:14:28 Nik M. Anas Kamarudin wrote:
AP mode? Sry, forget to tell, i using in ad-hoc mode. Maybe i explain more. I try to test batman-adv in MANET. In order to doing that, i need to make a scenario that have changing in topology. That why i need to filter some batman-adv packet, if not i need to move the node myself in and out of wireless range. So, anyone have any idea how to filter batman-adv packet?
I already told you about it in the first mail what a solution could be. There are two other solutions use the initial idea of ebtables and bridge.
The first one is to use 4 address mode with a compatible driver (I used madwifi with one of the patches from http://madwifi-project.org/ticket/1131 ).
The second one (assuming that you are using a mac80211 based driver) that you remove the checks at * http://git.open-mesh.org/?p=linux- merge.git;a=blob;f=net/wireless/core.c;h=c22ef3492ee6f0b8f58f1d663c995a977a7bcc6b;hb=HEAD#l821 * http://git.open-mesh.org/?p=linux- merge.git;a=blob;f=net/wireless/util.c;h=4d7b83fbc32f0eb042e3a70e23d01d626a5add04;hb=HEAD#l854
and use the same MAC on the bridge and only one interface inside the bridge (so the bridge is a transparent filter). I never tested it, but at least sounds promising.
Kind regards, Sven