/[lwip]/lwip/src/core/netif.c
ViewVC logotype

Diff of /lwip/src/core/netif.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15.2.1 by likewise, Sun Apr 6 20:44:45 2003 UTC revision 1.15.2.2 by likewise, Fri Apr 11 13:03:09 2003 UTC
# Line 179  netif_set_ipaddr(struct netif *netif, st Line 179  netif_set_ipaddr(struct netif *netif, st
179  {  {
180    DEBUGF(NETIF_DEBUG | DBG_TRACE | DBG_STATE, ("netif: setting IP address of interface %c%c%u to %u.%u.%u.%u\n",    DEBUGF(NETIF_DEBUG | DBG_TRACE | DBG_STATE, ("netif: setting IP address of interface %c%c%u to %u.%u.%u.%u\n",
181                         netif->name[0], netif->name[1], netif->num,                         netif->name[0], netif->name[1], netif->num,
182                         (u8_t)(ntohl(ipaddr->addr) >> 24 & 0xff),      (u8_t)(ntohl(netif->ip_addr.addr) >> 24 & 0xff),
183                         (u8_t)(ntohl(ipaddr->addr) >> 16 & 0xff),      (u8_t)(ntohl(netif->ip_addr.addr) >> 16 & 0xff),
184                         (u8_t)(ntohl(ipaddr->addr) >> 8 & 0xff),      (u8_t)(ntohl(netif->ip_addr.addr) >> 8 & 0xff),
185                         (u8_t)(ntohl(ipaddr->addr) & 0xff)));      (u8_t)(ntohl(netif->ip_addr.addr) & 0xff)));
   ip_addr_set(&(netif->ip_addr), ipaddr);  
186  }  }
187  /*-----------------------------------------------------------------------------------*/  /*-----------------------------------------------------------------------------------*/
188  void  void

Legend:
Removed from v.1.15.2.1  
changed lines
  Added in v.1.15.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26