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

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

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

revision 1.43 by kieranm, Tue Jun 10 10:45:29 2003 UTC revision 1.44 by likewise, Wed Jun 11 22:11:42 2003 UTC
# Line 516  udp_bind(struct udp_pcb *pcb, struct ip_ Line 516  udp_bind(struct udp_pcb *pcb, struct ip_
516      udp_pcbs = pcb;      udp_pcbs = pcb;
517    }    }
518    LWIP_DEBUGF(UDP_DEBUG | DBG_TRACE | DBG_STATE, ("udp_bind: bound to %u.%u.%u.%u, port %u\n",    LWIP_DEBUGF(UDP_DEBUG | DBG_TRACE | DBG_STATE, ("udp_bind: bound to %u.%u.%u.%u, port %u\n",
519     (u8_t)(ntohl(pcb->local_ip.addr) >> 24 & 0xff),     (unsigned int)(ntohl(pcb->local_ip.addr) >> 24 & 0xff),
520     (u8_t)(ntohl(pcb->local_ip.addr) >> 16 & 0xff),     (unsigned int)(ntohl(pcb->local_ip.addr) >> 16 & 0xff),
521     (u8_t)(ntohl(pcb->local_ip.addr) >> 8 & 0xff),     (unsigned int)(ntohl(pcb->local_ip.addr) >> 8 & 0xff),
522     (u8_t)(ntohl(pcb->local_ip.addr) & 0xff), pcb->local_port));     (unsigned int)(ntohl(pcb->local_ip.addr) & 0xff), pcb->local_port));
523    return ERR_OK;    return ERR_OK;
524  }  }
525  /**  /**
# Line 571  udp_connect(struct udp_pcb *pcb, struct Line 571  udp_connect(struct udp_pcb *pcb, struct
571    }    }
572  #endif  #endif
573    LWIP_DEBUGF(UDP_DEBUG | DBG_TRACE | DBG_STATE, ("udp_connect: connected to %u.%u.%u.%u, port %u\n",    LWIP_DEBUGF(UDP_DEBUG | DBG_TRACE | DBG_STATE, ("udp_connect: connected to %u.%u.%u.%u, port %u\n",
574     (u8_t)(ntohl(pcb->remote_ip.addr) >> 24 & 0xff),     (unsigned int)(ntohl(pcb->remote_ip.addr) >> 24 & 0xff),
575     (u8_t)(ntohl(pcb->remote_ip.addr) >> 16 & 0xff),     (unsigned int)(ntohl(pcb->remote_ip.addr) >> 16 & 0xff),
576     (u8_t)(ntohl(pcb->remote_ip.addr) >> 8 & 0xff),     (unsigned int)(ntohl(pcb->remote_ip.addr) >> 8 & 0xff),
577     (u8_t)(ntohl(pcb->remote_ip.addr) & 0xff), pcb->remote_port));     (unsigned int)(ntohl(pcb->remote_ip.addr) & 0xff), pcb->remote_port));
578    
579    /* Insert UDP PCB into the list of active UDP PCBs. */    /* Insert UDP PCB into the list of active UDP PCBs. */
580    for(ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {    for(ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44

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