mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 12:13:47 +00:00
make netif_ip4_addr/netmask/gw macros return constant IP address pointers
This commit is contained in:
parent
8eab90418a
commit
b9b31a5e72
@ -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) (&((netif)->ip_addr))
|
||||
#define netif_ip4_netmask(netif) (&((netif)->netmask))
|
||||
#define netif_ip4_gw(netif) (&((netif)->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))
|
||||
#endif /* LWIP_IPV4 */
|
||||
|
||||
void netif_set_up(struct netif *netif);
|
||||
|
Loading…
Reference in New Issue
Block a user