nuttx/arch/sim/src
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
..
.gitignore Various fixes necessary to build the simulator under MSYS. 2018-05-31 13:25:04 -06:00
board_lcd.c
Makefile 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. 2018-07-04 14:10:40 -06:00
nuttx-names.dat Squashed commit of the following: 2018-06-25 12:41:28 -06:00
up_ajoystick.c
up_allocateheap.c
up_blockdevice.c ramdisk.h moved from include/fs/nuttx/ to include/nuttx/drivers. 2016-07-20 14:02:18 -06:00
up_blocktask.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
up_cpuidlestack.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
up_createstack.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
up_devconsole.c Squashed commit of the following: 2017-09-30 11:51:37 -06:00
up_deviceimage.c
up_exit.c SMP: Back out deferred IRQ locking. This was accidentally merged into master and it looks like it is going to be more work than I thought to get it working again. Changes will go to the irqlock branch. 2016-12-24 19:53:37 -06:00
up_framebuffer.c Make sure that labeling is used consistently in all function headers (part 3). 2018-02-01 12:17:03 -06:00
up_head.c
up_hostfs.c hostfs: Add support for fstat(). 2017-02-14 09:54:08 -06:00
up_hostusleep.c
up_idle.c 6loWPAN: Fix compile errors and warnings when building the complete 6loWPAN configuration. 2017-04-02 17:46:22 -06:00
up_initialize.c IOBs: Move from driver/iob to a better location in mm/iob 2017-05-09 07:35:30 -06:00
up_initialstate.c
up_internal.h Simulator: Adds necessary functionality to build Simulator under ARM Linux. Tested only on Raspberry3. Currently setjmp/longjmp do not save/restore floating point registers. Patch provided by Bitbucket user nbkolchin. 2017-08-26 11:38:44 -06:00
up_interruptcontext.c
up_ioexpander.c Update some header commments 2016-08-06 18:16:31 -06:00
up_netdev.c
up_netdriver.c 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. 2018-07-04 14:10:40 -06:00
up_oneshot.c Elimate use of the non-standard type systime_t and replace it the equivalent, standard type clock_t 2018-06-16 12:16:13 -06:00
up_qspiflash.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
up_releasepending.c Revert "All CMP platforms: Apply same fix verified on other platforms found on Xtensa." 2016-12-25 07:08:44 -06:00
up_releasestack.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
up_reprioritizertr.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
up_romgetc.c
up_schednote.c
up_schedulesigaction.c
up_setjmp32.S
up_setjmp64.S
up_setjmp_arm.S Update some comments. 2017-08-26 11:50:41 -06:00
up_simsmp.c Fix lots of occurrences of 'the the', 'the there', 'the these', 'the then', 'the they. 2017-05-11 13:35:56 -06:00
up_simuart.c sim arch: Add non blocking read to devconsole driver 2017-07-22 09:01:24 -06:00
up_smphook.c
up_smpsignal.c SMP: Back out deferred IRQ locking. This was accidentally merged into master and it looks like it is going to be more work than I thought to get it working again. Changes will go to the irqlock branch. 2016-12-24 19:53:37 -06:00
up_spiflash.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
up_stackframe.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
up_tapdev.c
up_testset.c armv7-a, armv7-r, armv7-m: Add atomic read-add-write and read-subtract-write functions. 2018-02-04 12:22:03 -06:00
up_tickless.c Fix lots of occurrences of 'the the', 'the there', 'the these', 'the then', 'the they. 2017-05-11 13:35:56 -06:00
up_touchscreen.c Merged in hardlulz/modem-3.0-nuttx/fix-sem-EINTR (pull request #603) 2018-02-20 18:24:53 +00:00
up_uartwait.c Squashed commit of the following: 2017-10-04 15:22:27 -06:00
up_unblocktask.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
up_usestack.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
up_wpcap.c
up_x11eventloop.c
up_x11framebuffer.c