L2 bridge
2019-12-09 10:45:02 1 举报
TCP/IP L2 Bridge
作者其他创作
大纲/内容
br-port_list
__br_forward
hardware
br_handle_frame_finish:1. 处理转发:1)单播2)广播3)组播4)fdb表2. igmp snooping1)组播转发2)mdb表,建立组播IP与端口的映射
local host
netif_receive_skb
根据mdb表转发,由igmp snooping产生
br_multicast_forward
dev_queue_xmit
unicast
update mdb
br_dev_queue_push_xmit
lookup fdb
br_input.c
eth_lan.c
skb-dev = brdev
is_multicast_ether_addr(dest)
dev.c
igmp snooping
br_multicast_flood
br_add_if
netif_receive_skb_internal
br_multicast_rcv
update fdb
br_fdb_update
br_flood
rx_handler
process receive buffer from network
dst == nullor broadcast
br_multicast.c
br_ip4_multicast_add_group
br_multicast_ipv4_rcv
br_multicast_add_group
forward、drop or deliver
1. omci 2. ecnt_netif_recv_hook 3. vlan handle 4. linux bridge handle 5. ptype_base & ptype_all 6. input flow control
br_pass_frame_up
二层转发
br_handle_frame_finish
multicast
br_forward_finish
unicastor broadcast
eth_rx
__netif_receive_skb
dst != null
Driver
br_handle_frame
1. viryual interface 2. Vlan handle 3. L2 packet handle 4. ra_hwnat hook 5. wan2lan handle
br_flood_forward
br_forward
L2 bridge handle
__netif_receive_skb_core
igmpv2 report
dst = __br_fdb_get
收藏
0 条评论
下一页