patchlwIP - A Lightweight TCP/IP stack - Patches: patch #8362, Add defines for well known...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #8362: Add defines for well known ethernet packet types

Submitter:  Claudius Zingerli <zeuz>
Submitted:  Wed 26 Feb 2014 01:33:41 PM UTC
   
 
Category:  Network drivers Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  goldsimon Open/Closed:  Closed
Planned Release:  None

Wed 11 Feb 2015 09:00:08 PM UTC, comment #3: 

Pushed, thanks for the patch.

Simon Goldschmidt <goldsimon>
Group administrator
Mon 03 Mar 2014 01:11:32 PM UTC, comment #2: 

Hi Sylvain,

Files added as requested. Thanks for guiding me with diff.

Claudius

(file #30761)

Claudius Zingerli <zeuz>
Wed 26 Feb 2014 02:07:57 PM UTC, comment #1: 

Hello Claudius ! :)

Please use unified diff, with "diff -Nu", diff without context are useless.

And please use the bug tracker file upload feature so the patch is not damaged while converted to HTML.

Sylvain

Sylvain Rochet <gradator>
Group Member
Wed 26 Feb 2014 01:33:41 PM UTC, original submission:  

I added some more well known ether type defines for NIC drivers.

(Current 1.4.1 code in v1.4.1orig/src, modified version in v1.4.1/src)

diff -rwd v1.4.1/src/include/netif/etharp.h v1.4.1orig/src/include/netif/etharp.h
137,149c137,141
< #define ETHTYPE_IP        0x0800U /* Internet protocol v4 */
< #define ETHTYPE_ARP       0x0806U /* Address resolution protocol */
< #define ETHTYPE_WOL       0x0842U /* Wake on lan */
< #define ETHTYPE_VLAN      0x8100U /* Virtual local area network */
< #define ETHTYPE_IPV6      0x86DDU /* Internet protocol v6 */
< #define ETHTYPE_PPPOEDISC 0x8863U /* PPP Over Ethernet Discovery Stage */
< #define ETHTYPE_PPPOE     0x8864U /* PPP Over Ethernet Session Stage */
< #define ETHTYPE_JUMBO     0x8870U /* Jumbo Frames */
< #define ETHTYPE_PROFINET  0x8892U /* Process field network */
< #define ETHTYPE_ETHERCAT  0x88A4U /* Ethernet for control automation technology */
< #define ETHTYPE_LLDP      0x88CCU /* Link layer discovery protocol */
< #define ETHTYPE_SERCOS    0x88CDU /* Serial real-time communication system */
< #define ETHTYPE_PTP       0x88F7U /* Precision time protocol */
---

> #define ETHTYPE_ARP       0x0806U
> #define ETHTYPE_IP        0x0800U
> #define ETHTYPE_VLAN      0x8100U
> #define ETHTYPE_PPPOEDISC 0x8863U  /* PPP Over Ethernet Discovery Stage */
> #define ETHTYPE_PPPOE     0x8864U  /* PPP Over Ethernet Session Stage */



Claudius Zingerli <zeuz>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #30761:  etharp.h.diff added by zeuz (2KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by gradator (Posted a comment)
  • -email is unavailable- added by zeuz (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-11 goldsimon StatusNone Done
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2014-03-03 zeuz Attached File- Added etharp.h.diff, #30761

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code