blob: bfcf9e7ed6ba9333b77a5b17970a4d4a0cd35b91 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
|
#
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#
config EXAMPLES_BRIDGE
bool "UDP bridge example"
default n
depends on NET_UDP && NETDEV_MULTINIC && !NET_IPv6
---help---
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.
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.
if EXAMPLES_BRIDGE
comment "Network 1 configuration"
config EXAMPLES_BRIDGE_NET1_IFNAME
string "Device name"
default "eth0"
---help---
The register name of the network 1 device. Must match the previously
registered driver name and must not be the same as
EXAMPLES_BRIDGE_NET2_IFNAME
config EXAMPLES_BRIDGE_NET1_RECVPORT
int "UDP receive port"
default 5471
---help---
Network 1 listen port number
config EXAMPLES_BRIDGE_NET1_SNDPORT
int "UDP send port"
default 5472
---help---
Network 2 send port number
config EXAMPLES_BRIDGE_NET1_IOBUFIZE
int "UDP I/O buffer size"
default 1024
---help---
Size of the UDP send/receive I/O buffer
if !NSH_BUILTIN_APPS
config EXAMPLES_BRIDGE_NET1_DHCPC
bool "DHCP Client"
default n
select NETUTILS_DHCPC
select NETUTILS_DNSCLIENT
config EXAMPLES_BRIDGE_NET1_NOMAC
bool "Use Canned MAC Address"
default n
---help---
Select if the hardware has no built-in MAC address.
config EXAMPLES_BRIDGE_NET1_MACADDR
hex "Canned MAC address"
default 0x00e0deadbeef
depends on EXAMPLES_BRIDGE_NET1_NOMAC
---help---
If the hardware has no built-in MAC address then the fixed,
software-assigned MAC address MAC address must provided
with this selection.
config EXAMPLES_BRIDGE_NET1_IPADDR
hex "IP address"
default 0x0a000002
depends on !EXAMPLES_BRIDGE_NET1_DHCPC
config EXAMPLES_BRIDGE_NET1_DRIPADDR
hex "Default Router IP address (Gateway)"
default 0x0a000001
config EXAMPLES_BRIDGE_NET1_NETMASK
hex "Network Mask"
default 0xffffff00
endif # !NSH_BUILTIN_APPS
config EXAMPLES_BRIDGE_NET1_STACKSIZE
int "Network 1 daemon stacksize"
default 2048
config EXAMPLES_BRIDGE_NET1_PRIORITY
int "Network 1 daemon task priority"
default 100
comment "Network 2 configuration"
config EXAMPLES_BRIDGE_NET2_IFNAME
string "Device name"
default "eth1"
---help---
The register name of the network 2 device. Must match the previously
registered driver name and must not be the same as
EXAMPLES_BRIDGE_NET2_IFNAME
config EXAMPLES_BRIDGE_NET2_RECVPORT
int "UDP receive port"
default 5473
---help---
Network 1 listen port number
config EXAMPLES_BRIDGE_NET2_SNDPORT
int "UDP send port"
default 5474
---help---
Network 2 send port number
config EXAMPLES_BRIDGE_NET2_IOBUFIZE
int "UDP I/O buffer size"
default 1024
---help---
Size of the UDP send/receive I/O buffer
if !NSH_BUILTIN_APPS
config EXAMPLES_BRIDGE_NET2_DHCPC
bool "DHCP Client"
default n
select NETUTILS_DHCPC
select NETUTILS_DNSCLIENT
config EXAMPLES_BRIDGE_NET2_NOMAC
bool "Use Canned MAC Address"
default n
---help---
Select if the hardware has no built-in MAC address.
config EXAMPLES_BRIDGE_NET2_MACADDR
hex "Canned MAC address"
default 0x00e0f00dface
depends on EXAMPLES_BRIDGE_NET2_NOMAC
---help---
If the hardware has no built-in MAC address then the fixed,
software-assigned MAC address MAC address must provided
with this selection.
config EXAMPLES_BRIDGE_NET2_IPADDR
hex "IP address"
default 0x0a000003
depends on !EXAMPLES_BRIDGE_NET2_DHCPC
config EXAMPLES_BRIDGE_NET2_DRIPADDR
hex "Default Router IP address (Gateway)"
default 0x0a000001
config EXAMPLES_BRIDGE_NET2_NETMASK
hex "Network Mask"
default 0xffffff00
endif # !NSH_BUILTIN_APPS
config EXAMPLES_BRIDGE_NET2_STACKSIZE
int "Network 2 daemon stacksize"
default 2048
config EXAMPLES_BRIDGE_NET2_PRIORITY
int "Network 2 daemon task priority"
default 100
endif # EXAMPLES_BRIDGE
|