mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
apps/ make changes + SLIP MTU notes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3381 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -816,16 +816,15 @@ Where <subdir> is one of the following:
|
|||||||
This should create an interface with a name like sl0, or sl1, etc.
|
This should create an interface with a name like sl0, or sl1, etc.
|
||||||
Add -d to get debug output. This will show the interface name.
|
Add -d to get debug output. This will show the interface name.
|
||||||
|
|
||||||
|
NOTE: The Linux slip module hard-codes its MTU size to 296. So you
|
||||||
|
might as well set CONFIG_NET_BUFSIZE to 296 as well.
|
||||||
|
|
||||||
4. After turning over the line to the SLIP driver, you must configure
|
4. After turning over the line to the SLIP driver, you must configure
|
||||||
the network interface. Again, you do this using the standard
|
the network interface. Again, you do this using the standard
|
||||||
ifconfig and route commands. Assume that we have connected to a
|
ifconfig and route commands. Assume that we have connected to a
|
||||||
host PC with address 192.168.0.101 from your target with address
|
host PC with address 192.168.0.101 from your target with address
|
||||||
10.0.0.2. On the Linux PC you would execute the following as root:
|
10.0.0.2. On the Linux PC you would execute the following as root:
|
||||||
|
|
||||||
$ ifconfig sl0 10.0.0.2/24 up
|
|
||||||
|
|
||||||
Or maybe,
|
|
||||||
|
|
||||||
$ ifconfig sl0 10.0.0.1 pointopoint 10.0.0.2 up
|
$ ifconfig sl0 10.0.0.1 pointopoint 10.0.0.2 up
|
||||||
$ route add 10.0.0.2 dev sl0
|
$ route add 10.0.0.2 dev sl0
|
||||||
|
|
||||||
@@ -835,6 +834,10 @@ Where <subdir> is one of the following:
|
|||||||
|
|
||||||
$ tcpdump -n -nn -i sl0 -x -X -s 1500
|
$ tcpdump -n -nn -i sl0 -x -X -s 1500
|
||||||
|
|
||||||
|
NOTES: Only UART1 supports the hardware handshake. If hardware
|
||||||
|
handshake is not available, then you might try the slattach option
|
||||||
|
-L which is supposed to enable "3-wire operation."
|
||||||
|
|
||||||
thttpd:
|
thttpd:
|
||||||
This builds the THTTPD web server example using the THTTPD and
|
This builds the THTTPD web server example using the THTTPD and
|
||||||
the examples/thttpd application.
|
the examples/thttpd application.
|
||||||
|
|||||||
@@ -552,7 +552,7 @@ CONFIG_NET_MULTIBUFFER=y
|
|||||||
CONFIG_NET_IPv6=n
|
CONFIG_NET_IPv6=n
|
||||||
CONFIG_NSOCKET_DESCRIPTORS=16
|
CONFIG_NSOCKET_DESCRIPTORS=16
|
||||||
CONFIG_NET_SOCKOPTS=y
|
CONFIG_NET_SOCKOPTS=y
|
||||||
CONFIG_NET_BUFSIZE=420
|
CONFIG_NET_BUFSIZE=296
|
||||||
CONFIG_NET_TCP=y
|
CONFIG_NET_TCP=y
|
||||||
CONFIG_NET_TCP_CONNS=16
|
CONFIG_NET_TCP_CONNS=16
|
||||||
CONFIG_NET_NTCP_READAHEAD_BUFFERS=8
|
CONFIG_NET_NTCP_READAHEAD_BUFFERS=8
|
||||||
|
|||||||
Reference in New Issue
Block a user