On Thu, Nov 01, 2001 at 06:37:41AM -0800, zheng chuanbo wrote:

> can i use brctl on
> bridge-nf-0.0.1-against-2.4.13-ac3.diff?

Yes.


> how can i route between the net cards while use bridge
> mode?i can use like that using 2.2 kernel with brcfg.

Hmm.. you mean routing IP while bridging, say, IPX?  2.4 currently
doesn't have this capability, but we might want to extend something
like ebtables to do this.

(Bart: can we add a return code like 'ROUTE' to ebtables? It would
be similar in spirit to 'ACCEPT', but it would cause the packet to
be passed up the stack on the original interface (say eth0) instead
of on the bridge interface (say br0).  This would make it possible
to do a route-protocol-A-but-bridge-protocol-B hack as done here.
Preferred way of hooking into the bridge code: net/core/dev.c:net_rx_action.

old:

                        if (skb->dev->br_port != NULL &&
                            br_handle_frame_hook != NULL) {
                                handle_bridge(skb, pt_prev);
                                dev_put(rx_dev);
                                continue;
                        }

new (something along the lines of):

                        if (skb->dev->br_port != NULL &&
                            br_handle_frame_hook != NULL &&
                            ebtables_verdict(skb) == IP_BRIDGE) {
                                handle_bridge(skb, pt_prev);
                                dev_put(rx_dev);
                                continue;
                        } else {
                                // ebtables_verdict is IP_ROUTE; do nothing
                        }


cheers,
Lennert
_______________________________________________
Bridge mailing list
[EMAIL PROTECTED]
http://www.math.leidenuniv.nl/mailman/listinfo/bridge

Reply via email to