lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #38748] Allow NETIF_MAX_HWADDR_LEN to be Overridden by


From: Grant Erickson
Subject: [lwip-devel] [bug #38748] Allow NETIF_MAX_HWADDR_LEN to be Overridden by lwipopts.h
Date: Tue, 16 Apr 2013 05:24:00 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/536.28.10 (KHTML, like Gecko) Version/6.0.3 Safari/536.28.10

URL:
  <http://savannah.nongnu.org/bugs/?38748>

                 Summary: Allow NETIF_MAX_HWADDR_LEN to be Overridden by
lwipopts.h
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: marathon96
            Submitted on: Tue 16 Apr 2013 05:23:58 AM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: Change Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: 1.4.1

    _______________________________________________________

Details:

This patch allows NETIF_MAX_HWADDR_LEN to be overridden by lwipopts.h:


>From fa53125534a21cafc730ced78f05fe100f9145c5 Mon Sep 17 00:00:00 2001
From: Grant Erickson <address@hidden>
Date: Mon, 15 Apr 2013 22:17:47 -0700
Subject: [PATCH] net if: allow NETIF_MAX_HWADDR_LEN to be overridden

Allow NETIF_MAX_HWADDR_LEN to be overridden by lwipopts.h.

---
 production/sw/tps/lwip/lwip/src/include/lwip/netif.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/production/sw/tps/lwip/lwip/src/include/lwip/netif.h
b/production/sw/tps/lwip/lwip/src/include/lwip/netif.h
index 322d2d0..e794125 100644
--- a/production/sw/tps/lwip/lwip/src/include/lwip/netif.h
+++ b/production/sw/tps/lwip/lwip/src/include/lwip/netif.h
@@ -62,7 +62,9 @@ extern "C" {
 
 /** must be the maximum of all used hardware address lengths
     across all types of interfaces in use */
+#ifndef NETIF_MAX_HWADDR_LEN
 #define NETIF_MAX_HWADDR_LEN 6U
+#endif /* NETIF_MAX_HWADDR_LEN */
 
 /** Whether the network interface is 'up'. This is
  * a software flag used to control whether this network
-- 
1.8.1.1



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 16 Apr 2013 05:23:58 AM GMT  Name: lwip-0001.1.patch  Size: 1014B  
By: marathon96
Proposed patch to address this issue.
<http://savannah.nongnu.org/bugs/download.php?file_id=27888>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?38748>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]