Re: Change destination MAC
George <[email protected]>
| Newsgroups | gmane.linux.network.bridge.ebtables.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello again... I think the problem I had was the wireless cards I was using. In stead of using the internal ipw2100 I use the Orinoco ones, and this way the packet is sent. Now, I have another problem. When checking the traffic that traverse the hooks I realice that I'm not able to get frames at the NF_BR_PRE_ROUTING hook. The only packets that I'm able to get, are the packets that doesn't belong to me (not my destination address). I don't know if I have misunderstood what this hook is for, but I thought that this hook is traverse by any packet entering the bridge. Am I right? This is how I declare the hook struct. struct nf_hook_ops hook_pre; hook_pre.list.next = NULL; hook_pre.list.prev = NULL; hook_pre.hook = function_hook_pre; hook_pre.pf = PF_BRIDGE; hook_pre.hooknum = NF_BR_PRE_ROUTING; //hook_pre.priority = NF_BR_PRI_FIRST; If I set priority to NF_BR_PRI_FIRST then the function "function_hook_pre" is called. Otherwise I don't get it called. Any reason. TA. At 23:19 18/02/2005, Bart De Schuymer wrote: > >Have a look at ebt_snat.c > >Try not changing nfcache and using the test (see ebt_snat.c) >if (skb_shared(*pskb) || skb_cloned(*pskb)) > >Btw, dnat is usually done on the PREROUTING hook. If you do dnat to a >host on a different side of the bridge your packet won't arrive unless >you use the PREROUTING hook. > >cheers, >Bart ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click