lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #8034] autoip: added autoip_remove_struct


From: Grant Erickson
Subject: [lwip-devel] [patch #8034] autoip: added autoip_remove_struct
Date: Sat, 27 Apr 2013 19:23:54 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/536.29.13 (KHTML, like Gecko) Version/6.0.4 Safari/536.29.13

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

                 Summary: autoip: added autoip_remove_struct
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: marathon96
            Submitted on: Sat 27 Apr 2013 07:23:52 PM GMT
                Category: IPv4
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

From: Grant Erickson <address@hidden>
Date: Sat, 27 Apr 2013 12:20:29 -0700
Subject: [PATCH] autoip: add autoip_remove_struct

Added previously-missing autoip_remove_struct as a companion to
autoip_set_struct and to parallel dhcp_{set,remove}_struct.

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

diff --git a/src/include/ipv4/lwip/autoip.h b/src/include/ipv4/lwip/autoip.h
index e62b72e..b9f1873 100644
--- a/src/include/ipv4/lwip/autoip.h
+++ b/src/include/ipv4/lwip/autoip.h
@@ -94,6 +94,9 @@ struct autoip
 /** Set a struct autoip allocated by the application to work with */
 void autoip_set_struct(struct netif *netif, struct autoip *autoip);
 
+/** Remove a struct autoip previously set to the netif using
autoip_set_struct() */
+#define autoip_remove_struct(netif) do { (netif)->autoip = NULL; } while (0)
+
 /** Start AutoIP client */
 err_t autoip_start(struct netif *netif);
 




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 27 Apr 2013 07:23:52 PM GMT  Name: autoip_remove_struct.patch  Size:
927B   By: marathon96

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

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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