You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/01/16 11:29:52 UTC

[GitHub] [incubator-nuttx] WaterBirdWayOrigin opened a new pull request #109: Set CONFIG_NET_ETH_PKTSIZE to 1514 for spresense

WaterBirdWayOrigin opened a new pull request #109: Set CONFIG_NET_ETH_PKTSIZE to 1514 for spresense
URL: https://github.com/apache/incubator-nuttx/pull/109
 
 
   Set CONFIG_NET_ETH_PKTSIZE to 1514 when performing
    $ tools/configure.sh spresense/rndis
   configuration
   
   CONFIG_NET_ETH_PKTSIZE defines the size of ethernet packet.
   Ethernet packet size is 1514 including the ethernet header.
   
   This commit can send 1514 bytes packet as follow:
     e.g) For OpenWrt Router
     nsh> ping -c 1 -s 1472 192.168.1.1
     PING 192.168.1.1 1472 bytes of data
     1472 bytes from 192.168.1.1: icmp_seq=0 time=0 ms
     1 packets transmitted, 1 received, 0% packet loss, time 1010 ms
     nsh>
   
   https://tools.ietf.org/html/rfc894
   said at Frame Format
   ```
      The minimum length of the data field of a packet sent over an
      Ethernet is 1500 octets, thus the maximum length of an IP datagram
      sent over an Ethernet is 1500 octets.  Implementations are encouraged
      to support full-length packets.
   ``
   
   Just for your information,
   include/nuttx/net/ethernet.h:78:#define ETH_HDRLEN       14     /* Header size: 2*6 + 2 */
   
   Signed-off-by: Koichi Okamoto <Ko...@jp.sony.com>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx] WaterBirdWayOrigin commented on issue #109: Set CONFIG_NET_ETH_PKTSIZE to 1514 for spresense

Posted by GitBox <gi...@apache.org>.
WaterBirdWayOrigin commented on issue #109: Set CONFIG_NET_ETH_PKTSIZE to 1514 for spresense
URL: https://github.com/apache/incubator-nuttx/pull/109#issuecomment-575124708
 
 
   @jerpelea
   
   Thank you for your comment.
   
   I am sorry I used wrong e-mail address for signoff.  So, I close this PR once and recreate another one agin and reply to your comment.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx] jerpelea commented on issue #109: Set CONFIG_NET_ETH_PKTSIZE to 1514 for spresense

Posted by GitBox <gi...@apache.org>.
jerpelea commented on issue #109: Set CONFIG_NET_ETH_PKTSIZE to 1514 for spresense
URL: https://github.com/apache/incubator-nuttx/pull/109#issuecomment-575113032
 
 
   The original Ethernet IEEE 802.3 standard defined the minimum Ethernet frame size as 64 bytes and the maximum as 1518 bytes. The maximum was later increased to 1522 bytes to allow for VLAN tagging.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx] jerpelea edited a comment on issue #109: Set CONFIG_NET_ETH_PKTSIZE to 1514 for spresense

Posted by GitBox <gi...@apache.org>.
jerpelea edited a comment on issue #109: Set CONFIG_NET_ETH_PKTSIZE to 1514 for spresense
URL: https://github.com/apache/incubator-nuttx/pull/109#issuecomment-575113032
 
 
   @WaterBirdWayOrigin
   
   https://en.wikipedia.org/wiki/Ethernet_frame#Ethernet_II
   
   The original Ethernet IEEE 802.3 standard defined the minimum Ethernet frame size as 64 bytes and the maximum as 1518 bytes (1500+header/trailer). The maximum was later increased to 1522 bytes to allow for VLAN tagging.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx] WaterBirdWayOrigin closed pull request #109: Set CONFIG_NET_ETH_PKTSIZE to 1514 for spresense

Posted by GitBox <gi...@apache.org>.
WaterBirdWayOrigin closed pull request #109: Set CONFIG_NET_ETH_PKTSIZE to 1514 for spresense
URL: https://github.com/apache/incubator-nuttx/pull/109
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx] jerpelea edited a comment on issue #109: Set CONFIG_NET_ETH_PKTSIZE to 1514 for spresense

Posted by GitBox <gi...@apache.org>.
jerpelea edited a comment on issue #109: Set CONFIG_NET_ETH_PKTSIZE to 1514 for spresense
URL: https://github.com/apache/incubator-nuttx/pull/109#issuecomment-575113032
 
 
   https://en.wikipedia.org/wiki/Ethernet_frame#Ethernet_II
   
   The original Ethernet IEEE 802.3 standard defined the minimum Ethernet frame size as 64 bytes and the maximum as 1518 bytes (1500+header/trailer). The maximum was later increased to 1522 bytes to allow for VLAN tagging.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx] jerpelea commented on issue #109: Set CONFIG_NET_ETH_PKTSIZE to 1514 for spresense

Posted by GitBox <gi...@apache.org>.
jerpelea commented on issue #109: Set CONFIG_NET_ETH_PKTSIZE to 1514 for spresense
URL: https://github.com/apache/incubator-nuttx/pull/109#issuecomment-575125402
 
 
   there is no problem 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx] jerpelea edited a comment on issue #109: Set CONFIG_NET_ETH_PKTSIZE to 1514 for spresense

Posted by GitBox <gi...@apache.org>.
jerpelea edited a comment on issue #109: Set CONFIG_NET_ETH_PKTSIZE to 1514 for spresense
URL: https://github.com/apache/incubator-nuttx/pull/109#issuecomment-575113032
 
 
   The original Ethernet IEEE 802.3 standard defined the minimum Ethernet frame size as 64 bytes and the maximum as 1518 bytes (1500+header/trailer). The maximum was later increased to 1522 bytes to allow for VLAN tagging.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services