mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-04 23:29:25 +00:00
Revert "make netif_ip4_addr/netmask/gw macros return constant IP address pointers"
This reverts commit b9b31a5e72
.
This commit is contained in:
parent
9882dd5eff
commit
abc74464a0
@ -349,9 +349,9 @@ void netif_set_default(struct netif *netif);
|
||||
void netif_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr);
|
||||
void netif_set_netmask(struct netif *netif, const ip4_addr_t *netmask);
|
||||
void netif_set_gw(struct netif *netif, const ip4_addr_t *gw);
|
||||
#define netif_ip4_addr(netif) ((const ip4_addr_t*)&((netif)->ip_addr))
|
||||
#define netif_ip4_netmask(netif) ((const ip4_addr_t*)&((netif)->netmask))
|
||||
#define netif_ip4_gw(netif) ((const ip4_addr_t*)&((netif)->gw))
|
||||
#define netif_ip4_addr(netif) (&((netif)->ip_addr))
|
||||
#define netif_ip4_netmask(netif) (&((netif)->netmask))
|
||||
#define netif_ip4_gw(netif) (&((netif)->gw))
|
||||
#endif /* LWIP_IPV4 */
|
||||
|
||||
void netif_set_up(struct netif *netif);
|
||||
|
Loading…
Reference in New Issue
Block a user