mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 05:10:40 +00:00
All debug messages now show actual config _after_ setting netif config.
This commit is contained in:
parent
4c5117101d
commit
40f10b69f7
@ -211,8 +211,8 @@ netif_set_ipaddr(struct netif *netif, struct ip_addr *ipaddr)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
ip_addr_set(&(netif->ip_addr), ipaddr);
|
ip_addr_set(&(netif->ip_addr), ipaddr);
|
||||||
DEBUGF(NETIF_DEBUG | DBG_TRACE | DBG_STATE, ("netif: new IP address of interface %c%c%u is %u.%u.%u.%u\n",
|
DEBUGF(NETIF_DEBUG | DBG_TRACE | DBG_STATE | 3, ("netif: IP address of interface %c%c set to %u.%u.%u.%u\n",
|
||||||
netif->name[0], netif->name[1], netif->num,
|
netif->name[0], netif->name[1],
|
||||||
(u8_t)(ntohl(netif->ip_addr.addr) >> 24 & 0xff),
|
(u8_t)(ntohl(netif->ip_addr.addr) >> 24 & 0xff),
|
||||||
(u8_t)(ntohl(netif->ip_addr.addr) >> 16 & 0xff),
|
(u8_t)(ntohl(netif->ip_addr.addr) >> 16 & 0xff),
|
||||||
(u8_t)(ntohl(netif->ip_addr.addr) >> 8 & 0xff),
|
(u8_t)(ntohl(netif->ip_addr.addr) >> 8 & 0xff),
|
||||||
@ -222,25 +222,25 @@ netif_set_ipaddr(struct netif *netif, struct ip_addr *ipaddr)
|
|||||||
void
|
void
|
||||||
netif_set_gw(struct netif *netif, struct ip_addr *gw)
|
netif_set_gw(struct netif *netif, struct ip_addr *gw)
|
||||||
{
|
{
|
||||||
DEBUGF(NETIF_DEBUG | DBG_TRACE | DBG_STATE, ("netif: setting GW address of interface %c%c%u to %u.%u.%u.%u\n",
|
|
||||||
netif->name[0], netif->name[1], netif->num,
|
|
||||||
(u8_t)(ntohl(gw->addr) >> 24 & 0xff),
|
|
||||||
(u8_t)(ntohl(gw->addr) >> 16 & 0xff),
|
|
||||||
(u8_t)(ntohl(gw->addr) >> 8 & 0xff),
|
|
||||||
(u8_t)(ntohl(gw->addr) & 0xff)));
|
|
||||||
ip_addr_set(&(netif->gw), gw);
|
ip_addr_set(&(netif->gw), gw);
|
||||||
|
DEBUGF(NETIF_DEBUG | DBG_TRACE | DBG_STATE | 3, ("netif: GW address of interface %c%c set to %u.%u.%u.%u\n",
|
||||||
|
netif->name[0], netif->name[1],
|
||||||
|
(u8_t)(ntohl(netif->gw.addr) >> 24 & 0xff),
|
||||||
|
(u8_t)(ntohl(netif->gw.addr) >> 16 & 0xff),
|
||||||
|
(u8_t)(ntohl(netif->gw.addr) >> 8 & 0xff),
|
||||||
|
(u8_t)(ntohl(netif->gw.addr) & 0xff)));
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
netif_set_netmask(struct netif *netif, struct ip_addr *netmask)
|
netif_set_netmask(struct netif *netif, struct ip_addr *netmask)
|
||||||
{
|
{
|
||||||
DEBUGF(NETIF_DEBUG | DBG_TRACE | DBG_STATE, ("netif: setting netmask of interface %c%c%u to %u.%u.%u.%u\n",
|
|
||||||
netif->name[0], netif->name[1], netif->num,
|
|
||||||
(u8_t)(ntohl(netmask->addr) >> 24 & 0xff),
|
|
||||||
(u8_t)(ntohl(netmask->addr) >> 16 & 0xff),
|
|
||||||
(u8_t)(ntohl(netmask->addr) >> 8 & 0xff),
|
|
||||||
(u8_t)(ntohl(netmask->addr) & 0xff)));
|
|
||||||
ip_addr_set(&(netif->netmask), netmask);
|
ip_addr_set(&(netif->netmask), netmask);
|
||||||
|
DEBUGF(NETIF_DEBUG | DBG_TRACE | DBG_STATE | 3, ("netif: netmask of interface %c%c set to %u.%u.%u.%u\n",
|
||||||
|
netif->name[0], netif->name[1],
|
||||||
|
(u8_t)(ntohl(netif->netmask.addr) >> 24 & 0xff),
|
||||||
|
(u8_t)(ntohl(netif->netmask.addr) >> 16 & 0xff),
|
||||||
|
(u8_t)(ntohl(netif->netmask.addr) >> 8 & 0xff),
|
||||||
|
(u8_t)(ntohl(netif->netmask.addr) & 0xff)));
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user