Create a bridge Add interface to bridge net_bridge net_bridge_fdb_entry net_bridge_port net_device bridge port device port device port device netif_receive_skb ptype_all handle_bridge ptype_base br_handle_frame_hook loopback or dev->br_port == NULL br_handle_frame_hook 和桥没关系 yes port 的状态是disabled? no no src mac 正确? yes stp packet(bpdu)? no yes yes port的状态是learing or forwarding? no drop br_stp_handle_bpdu br_handle_frame_finish drop drop to stack to stack yes port 的状态是disabled? no update src mac database yes port 的状态是learning? no yes port的设备是混杂模式? no yes 目的mac是多播地址? no 查找mac学习表 找到了fdb? yes fdb是本机mac? no flood to stack br_forward to stack: skb->dev 是bridge
© Copyright 2025 ExpyDoc