bridge Network Bridge
A simple test of a system with multiple networks. It simply echoes all UDP
packets received on network 1 and network 2 to network 2 and network 1,
respectively. Interface 1 and interface may or may not lie on the same
network.
CONFIG_EXAMPLES_BRIDGE– Enables the simple UDP bridge test.
There identical configurations for each of the two networks, NETn where n
refers to the network being configured n={1,2}. Let m refer to the other
network.
CONFIG_EXAMPLES_BRIDGE_NETn_IFNAME– The register name of the networkndevice. Must match the previously registered driver name and must not be the same as other network device name,CONFIG_EXAMPLES_BRIDGE_NETm_IFNAME.CONFIG_EXAMPLES_BRIDGE_NETn_RECVPORT– Networknlisten port number.CONFIG_EXAMPLES_BRIDGE_NETn_SNDPORT– Network2send port number.CONFIG_EXAMPLES_BRIDGE_NETn_IOBUFIZE– Size of the networknUDP send/receive I/O buffer.CONFIG_EXAMPLES_BRIDGE_NETn_STACKSIZE– Networkndaemon stacksize.CONFIG_EXAMPLES_BRIDGE_NETn_PRIORITY– Networkndaemon task priority.
If used as a NSH add-on, then it is assumed that initialization of both networks was performed externally prior to the time that this test was started. Otherwise, the following options are available:
CONFIG_EXAMPLES_BRIDGE_NETn_NOMAC– Select of the networknhardware does not have a built-in MAC address. If selected, the MAC address. provided byCONFIG_EXAMPLES_BRIDGE_NETn_MACADDRwill be used to assign the MAC address to the network n device.CONFIG_EXAMPLES_BRIDGE_NETn_DHCPC– Use DHCP Client to get the network n IP address.CONFIG_EXAMPLES_BRIDGE_NETn_IPADDR– IfCONFIG_EXAMPLES_BRIDGE_NETn_DHCPCis not selected, then this is the fixed IP address for networkn.CONFIG_EXAMPLES_BRIDGE_NETn_DRIPADDR– Networkndefault router IP address (Gateway).CONFIG_EXAMPLES_BRIDGE_NETn_NETMASK– Networknmask.