lwip-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-members] new udp.c issue / sharing of UDP port between broadc


From: Leon Woestenberg
Subject: Re: [lwip-members] new udp.c issue / sharing of UDP port between broadcast listeners
Date: Fri, 14 Feb 2003 16:46:39 +0100

Hello Jani,

haha! I just fixed this using an "else if". (I think it was there already, I
have removed
it myself I think).

>  if (pcb == ipcb) {
>             rebind = 1;
>     }
>     /* port matches that of PCB in list? */
>     else if ((ipcb->local_port == port) &&
<<<<<<<<<<<<<<<
>        /* IP address matches, or one is IP_ADDR_ANY? */
>       (ip_addr_isany(&(ipcb->local_ip)) ||
>              ip_addr_isany(ipaddr) ||
>              ip_addr_cmp(&(ipcb->local_ip), ipaddr))) {
>               ...


> > udp_bind(struct udp_pcb *pcb, struct ip_addr *ipaddr, u16_t port)
> > does no longer allow two PCB's to share a local port.
> >
I think this will be best solved by using UDP PCB flags like we discussed.
One
flag could be UDP_FLAG_SHARE_PORT.

Leon.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]