patchlwIP - A Lightweight TCP/IP stack - Patches: patch #7904, Add mnemonics for...

 
 

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

patch #7904: Add mnemonics for IPPROTO_{ICMP,ICMPV6,RAW}.

Submitter:  Grant Erickson <marathon96>
Submitted:  Thu 20 Dec 2012 04:34:32 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  goldsimon Open/Closed:  Closed
Planned Release:  None

Thu 16 Jan 2014 08:29:29 PM UTC, comment #1: 

Added ICMP, but since we don't have RAW as 255, why would we need to define it?

Simon Goldschmidt <goldsimon>
Group administrator
Thu 20 Dec 2012 04:34:32 PM UTC, original submission:  

From: Grant Erickson <marathon96@gmail.com>
Date: Wed, 19 Dec 2012 18:19:54 -0800
Subject: [PATCH 1/1] Add mnemonics for IPPROTO_{ICMP,ICMPV6,RAW}.

---
 src/include/lwip/sockets.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/include/lwip/sockets.h b/src/include/lwip/sockets.h
index 7346137..6906ed3 100644
--- a/src/include/lwip/sockets.h
+++ b/src/include/lwip/sockets.h
@@ -146,12 +146,15 @@ struct linger {
 #define PF_UNSPEC       AF_UNSPEC
 
 #define IPPROTO_IP      0
+#define IPPROTO_ICMP    1
 #define IPPROTO_TCP     6
 #define IPPROTO_UDP     17
 #if LWIP_IPV6
 #define IPPROTO_IPV6    41
+#define IPPROTO_ICMPV6  58
 #endif /* LWIP_IPV6 */
 #define IPPROTO_UDPLITE 136
+#define IPPROTO_RAW     255
 
 /* Flags we can use with send and recv. */
 #define MSG_PEEK       0x01    /* Peeks at an incoming message */

Grant Erickson <marathon96>

 

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

Attached Files
file #27130:  rfc3542-checksum-0001.0.patch added by marathon96 (838B - application/octet-stream - Patch 1/1.)

 

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 marathon96 (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
    2014-01-16 goldsimon StatusNone Done
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2012-12-20 marathon96 Attached File- Added rfc3542-checksum-0001.0.patch, #27130

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code