lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #8207] Don't Use ND6 Prefix Flags Field When LWIP_IP


From: Grant Erickson
Subject: [lwip-devel] [patch #8207] Don't Use ND6 Prefix Flags Field When LWIP_IPV6_AUTOCONFIG Is Deasserted
Date: Tue, 08 Oct 2013 16:25:00 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1

URL:
  <http://savannah.nongnu.org/patch/?8207>

                 Summary: Don't Use ND6 Prefix Flags Field When
LWIP_IPV6_AUTOCONFIG Is Deasserted
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: marathon96
            Submitted on: Tue 08 Oct 2013 04:24:59 PM GMT
                Category: IPv6
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

>From 04c51e03bae47ef0b12f87ad7617370d23a5a620 Mon Sep 17 00:00:00 2001
From: Grant Erickson <address@hidden>
Date: Tue, 8 Oct 2013 09:30:53 -0700
Subject: [PATCH] Ensure that nd6_prefix_list_entry.flags is not used when
 LWIP_IPV6_AUTOCONFIG is deasserted.

---
 src/core/ipv6/nd6.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/core/ipv6/nd6.c b/src/core/ipv6/nd6.c
index 1a43a37..8c1a78b 100644
--- a/src/core/ipv6/nd6.c
+++ b/src/core/ipv6/nd6.c
@@ -1398,7 +1398,9 @@ nd6_new_onlink_prefix(ip6_addr_t * prefix, struct netif
* netif)
       /* Found empty prefix entry. */
       prefix_list[i].netif = netif;
       ip6_addr_set(&(prefix_list[i].prefix), prefix);
+#if LWIP_IPV6_AUTOCONFIG
       prefix_list[i].flags = 0;
+#endif /* LWIP_IPV6_AUTOCONFIG */
       return i;
     }
   }




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 08 Oct 2013 04:24:59 PM GMT  Name: ipv6-autoconfig-disable.patch 
Size: 808B   By: marathon96

<http://savannah.nongnu.org/patch/download.php?file_id=29331>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?8207>

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




reply via email to

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