lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #8618] netif, removed ip_addr, netmask, gw useless i


From: Simon Goldschmidt
Subject: [lwip-devel] [patch #8618] netif, removed ip_addr, netmask, gw useless initialization in netif_add()
Date: Tue, 24 Mar 2015 19:13:33 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36

Update of patch #8618 (project lwip):

                  Status:                    None => Wont Do                
             Assigned to:                    None => goldsimon              
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

netif->ip_addr is required to be initialized for the ip_addr_cmp() check in
netif_set_ipaddr(), and snmp_delete_iprteidx_tree() is called when setting the
netmask, so it should better be initialized to something, too.

I'd therefore rather not remove the zero initialization. On contrary, maybe it
would be better to memset(0) the whole struct netif...

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

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