Commit Graph

158 Commits

Author SHA1 Message Date
Gregory Nutt
95e3b9ab8b Documentation/NuttShell.html: Back out part of commit 288a083d91 2018-08-11 10:50:29 -06:00
Gregory Nutt
288a083d91 Documentation/NuttShell.html: Another update to the NSH documentation. 2018-08-11 10:17:38 -06:00
Gregory Nutt
5d791547dd Documentation/NuttShell.html: Document recent changes to NSH. 2018-08-11 08:23:25 -06:00
Alan Carvalho de Assis
283b73edc5 Fix lots of typos in C comments and Kconfig help text 2018-07-08 18:24:45 -06:00
Gregory Nutt
22cd0d47fa This commit attempts remove some long standard confusion in naming and some actual problems that result from the naming confusion. The basic problem is the standard MTU does not include the size of the Ethernet header. For clarity, I changed the naming of most things called MTU to PKTSIZE. For example, CONFIG_NET_ETH_MTU is now CONFIG_NET_ETH_PKTSIZE.
This makes the user interface a little hostile.  People thing of an MTU of 1500 bytes, but the corresponding packet is really 1514 bytes (including the 14 byte Ethernet header).  A more friendly solution would configure the MTU (as before), but then derive the packet buffer size by adding the MAC header length.  Instead, we define the packet buffer size then derive the MTU.

The MTU is not common currency in networking.  On the wire, the only real issue is the MSS which is derived from MTU by subtracting the IP header and TCP header sizes (for the case of TCP).  Now it is derived for the PKTSIZE by subtracting the IP header, the TCP header, and the MAC header sizes.  So we should be all good and without the recurring 14 byte error in MTU's and MSS's.

Squashed commit of the following:

    Trivial update to fix some spacing issues.
    net/: Rename several macros containing _MTU to _PKTSIZE.
    net/: Rename CONFIG_NET_SLIP_MTU to CONFIG_NET_SLIP_PKTSIZE and similarly for CONFIG_NET_TUN_MTU.  These are not the MTU which does not include the size of the link layer header.  These are the full size of the packet buffer memory (minus any GUARD bytes).
    net/: Rename CONFIG_NET_6LOWPAN_MTU to CONFIG_NET_6LOWPAN_PKTSIZE and similarly for CONFIG_NET_TUN_MTU.  These are not the MTU which does not include the size of the link layer header.  These are the full size of the packet buffer memory (minus any GUARD bytes).
    net/: Rename CONFIG_NET_ETH_MTU to CONFIG_NET_ETH_PKTSIZE.  This is not the MTU which does not include the size of the link layer header.  This is the full size of the packet buffer memory (minus any GUARD bytes).
    net/: Rename the file d_mtu in the network driver structure to d_pktsize.  That value saved there is not the MTU.  The packetsize is the memory large enough to hold the maximum packet PLUS the size of the link layer header.  The MTU does not include the link layer header.
2018-07-04 14:10:40 -06:00
Gregory Nutt
5393622d07 Documentation/NuttShell.html: Clarify arguments to the mkrd command. 2018-06-22 11:34:31 -06:00
Gregory Nutt
f11dec3e20 Documentation/NuttShell.html: Document the mkfatfs the -r option which can be used to specify the number of entries in the FAT12/FAT16 root directory. 2018-05-11 09:52:08 -06:00
Gregory Nutt
f12f2c3828 Documentation: Use a little more care with the trademarked Unix name. 2018-05-11 08:15:51 -06:00
Juha Niskanen
8814533e78 Documentation: remove non-existent CONFIG_NSH_TMPDIR from docs 2018-04-17 05:55:57 -06:00
Juha Niskanen
6575480d5e Documentation: Fix some typos. 2018-03-22 06:40:58 -06:00
Gregory Nutt
de8f3ebedb Documentation: Update NSH documention to discuss the irqinfo command. 2018-01-12 18:26:46 -06:00
Gregory Nutt
4fc2980571 Documentation/: Update the NSH user manual to include the echo -n option. 2018-01-10 07:30:37 -06:00
Gregory Nutt
7a2e300890 Documentation: Update NSH manual to include truncate command. 2018-01-04 12:51:01 -06:00
Gregory Nutt
70c59a9d91 This commit adds support for semi-standard IPPROTO_ICMP6 sockets. This is a replacement for the non-standard ICMPv6 ping support that violated the portable POSIX OS interface.
Squashed commit of the following:

    net/icmpv6: IPPROT_ICMP6 socket logic now builds without error.
    net/icmpv6:  Add support for read-ahead and poll(). Initial commit is just cloned from ICMP with the appropriate name changes.
    configs/:  All defconfig filess that include CONFIG_NET_ICMPv6_SOCKET=y need to select CONFIG_SYSTEM_PING6=y and deselect CONFIG_DISABLE_POLL.
    Update NSH documention to show that ping6 is now a built in command.
    net/icmpv6:  Add icmpv6_sendto.c and icmpv6_recvfrom.c.  Initial versions are just clones from icmp/ with appropriate name changes.
    net/icmpv6:  Clone some ICMP socket logic as the beginning of support for ICMPv6 socket support.
    Rename CONFIG_NET_ICMPv6_PING to CONFIG_NET_ICMPv6_SOCKET.  Move prototype for icmpv6_ping from include/nuttx/net/icmpv6 to net/icmpv6/icmpv6.h
2017-10-24 11:23:08 -06:00
Gregory Nutt
261045e689 Update NSH documentation. 2017-10-23 09:23:11 -06:00
Gregory Nutt
cccc86da09 This change adds support for semi-standard IPPROTO_ICMP AF_INET datagram sockets. This replaces the old ad hoc, nonstandard way of implementing ping with a more standard, socket interface.
Squashed commit of the following:

    net/icmp:  Finishes off icmp_recvfrom().
    net/icmp:  Add readahead support for IPPROTO_ICMP sockets.
    net/icmp:  Add poll() support for IPPROTO_ICMP sockets.
    net/icmp:  Add a connection structure for IPPROTO_ICMP sockets.
    net/icmp:  Implements sendto for the IPPROTO_ICMP socket.
    net/icmp:  Move icmp_sendto() and icmp_recvfrom() to separate files.  They are likely to be complex (when they are implemented).
    net/icmp:  Hook IPPROTO_ICMP sockets into network.  Fix some naming collisions.  Still missing basic ICMP send/receive logic.
    configs: apps/system/ping current need poll() enabled.
    configs: All defconfig files that use to enable low-level support must now enabled CONFIG_SYSTEM_PING.
    net/icmp:  Adds basic build framework to support IPPROTO_ICMP sockets.
2017-10-23 08:45:12 -06:00
Gregory Nutt
9b31a81b00 Squashed commit of the following:
fs/fat:  Remove mkfatfs from the OS.  This is a user-space application and belongs in apps, not in the OS.
2017-10-20 12:36:25 -06:00
Gregory Nutt
cbf247e11b Update NSH documentation. 2017-08-11 15:56:33 -06:00
Gregory Nutt
5a352cacc1 Update NSH documentation to show new usage for addroute and delroute. 2017-08-10 10:32:09 -06:00
Gregory Nutt
5cb3edb552 Update some naming used in Documentation 2017-07-02 11:27:27 -06:00
Gregory Nutt
a469f0ef04 Documentation/: Remove dangling space at the end of lines. 2017-06-28 13:27:10 -06:00
Gregory Nutt
492c53c3ff Update NSH documentation. 2017-06-26 17:58:29 -06:00
Gregory Nutt
466fccc494 NSH Documentation: A justification for 3 ENTERs when using USB serial console. 2017-06-13 17:40:05 -06:00
Juha Niskanen
9120a78ee3 Documentation: add hexdump args, fix ln cmd, STM32L status, typos 2017-06-06 06:41:17 -06:00
David Sidrane
0de787b558 Document set [{+|-}{e|x|xe|ex}] [<name> <value>] 2017-04-05 18:28:54 -06:00
Gregory Nutt
a5b46b788b Update Document 2017-02-05 10:34:38 -06:00
Gregory Nutt
b39d962021 Soft links: Update Documentation, rename file, add system calls 2017-02-02 17:11:08 -06:00
Gregory Nutt
d42f91bffc FIFO_SIZE vs PIPE_SIZE 2016-08-04 16:27:11 -06:00
Gregory Nutt
189d2cf475 Update NSH document, README, and comments in a script file 2016-08-04 12:59:33 -06:00
Gregory Nutt
aa8a52aacd Update TODO list and NSH documentation 2016-07-20 10:45:21 -06:00
Gregory Nutt
c964ab6b2b Update URLs in documentation to account for removal of submodules 2016-04-10 08:54:21 -06:00
Gregory Nutt
84151986de Remove references to the VSN configuration from the Documentation 2016-03-30 18:13:00 -06:00
Gregory Nutt
621a610163 Fix HTML syntax errors 2016-03-14 15:48:44 -06:00
Gregory Nutt
0ba9fbebed NSH: Revise arp documentation 2016-02-08 16:30:33 -06:00
Gregory Nutt
aff294f065 NuttShell Documentation: Add description of the 'arp' command 2016-02-08 15:09:17 -06:00
Gregory Nutt
1753b639cc Rename files containing board_app_initialize from xyz_nsh.c to xyz_appinit.c 2016-02-04 12:25:49 -06:00
Gregory Nutt
3254d3a192 Fix naming: up_nsh.c -> stm32_nsh.c 2016-01-27 07:45:19 -06:00
Gregory Nutt
d8cff2ab49 Cosmetic updates 2016-01-22 17:21:07 -06:00
Gregory Nutt
07f931fa57 Update index 2016-01-22 17:07:19 -06:00
Gregory Nutt
b48a2439a1 Minor document clean-up 2016-01-22 16:58:48 -06:00
Gregory Nutt
f9f00d474f Update NSH login features 2016-01-22 10:43:00 -06:00
Gregory Nutt
0cac1160c8 Clarify instrutions for enabling the useradd command 2016-01-21 16:27:25 -06:00
Gregory Nutt
3cfd99a040 NuttShell.html: Add instructions for using a login prompt 2016-01-21 08:54:19 -06:00
Gregory Nutt
fa6e470a19 Update NuttShell documentation with new passwd commands 2016-01-20 09:38:36 -06:00
Gregory Nutt
e4f1b3a0fc Trivial update to NSH documentation 2016-01-01 12:16:40 -06:00
Gregory Nutt
eb723f3af9 Update time command description in the NSH document 2016-01-01 09:10:21 -06:00
Gregory Nutt
f8836afc07 Correct a statement in the description of the time command 2015-12-31 10:23:00 -06:00
Gregory Nutt
cb7d86f23b Fix errors in documentation of NSH time commands 2015-12-31 10:03:35 -06:00
Gregory Nutt
41992ca46a NuttShell.html: Add documentation of the time command 2015-12-31 09:34:27 -06:00
Gregory Nutt
718519ce42 Minor adjustment of spacing 2015-12-13 10:39:02 -06:00