This is an example of a userspace network bridge for linux that uses the new packet mmap interface.
Even though it runs in userspace, the packet switching is quite fast.
The main switching boils down to a single memcpy() in src/ring.c:266.
Supports TP_STATUS_CSUMNOTREAD for checksum offloading on virtual interfaces.
Benjamin Kittridge
Usage: ubridge [OPTIONS]...
--debug Run in foreground and print packets
--src [if] Source interface
--dst [if] Destination interface
--help Displays this help screen
--version Displays version information
Example: ubridge --debug --src vif1.0 --dst eth0