usbdev: add sim netdev config for rndis test

out flow:
linux:rndis -> sim:rndis -> (forward)sim:eth(nat) ->
(bridge)linux:bridge(forward) -> linux:eth(nat) -> internet

in flow:
internet -> linux:eth(nat) -> (forward)linux:bridge(bridge) ->
(nat)sim:eth(forward) -> sim:rndis -> linux:rndis

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu 2023-03-28 16:51:02 +08:00 committed by Xiang Xiao
parent 7b11162b24
commit 9326687b51

View File

@ -49,7 +49,9 @@ CONFIG_NET_BROADCAST=y
CONFIG_NET_CDCECM=y
CONFIG_NET_ICMP=y
CONFIG_NET_ICMP_SOCKET=y
CONFIG_NET_IPFORWARD=y
CONFIG_NET_LL_GUARDSIZE=50
CONFIG_NET_NAT=y
CONFIG_NET_SOCKOPTS=y
CONFIG_NET_TCP=y
CONFIG_NET_UDP=y
@ -63,8 +65,9 @@ CONFIG_RNDIS=y
CONFIG_RNDIS_COMPOSITE=y
CONFIG_SCHED_CHILD_STATUS=y
CONFIG_SCHED_HAVE_PARENT=y
CONFIG_SCHED_LPWORK=y
CONFIG_SCHED_WAITPID=y
CONFIG_SIM_NETDEV=y
CONFIG_SIM_NET_BRIDGE=y
CONFIG_SIM_USB_DEV=y
CONFIG_SIM_USB_RAW_GADGET=y
CONFIG_SYSLOG_CHARDEV=y
@ -72,6 +75,7 @@ CONFIG_SYSLOG_MAX_CHANNELS=2
CONFIG_SYSTEM_ADBD=y
CONFIG_SYSTEM_CLE=y
CONFIG_SYSTEM_COMPOSITE=y
CONFIG_SYSTEM_IPTABLES=y
CONFIG_SYSTEM_NSH=y
CONFIG_SYSTEM_PING=y
CONFIG_TESTING_OSTEST=y