The UDP implementation in UDP currently lack the support for directed
broadcast. I suggest adding these lines to uip.c (line 916):

 

    /* Check if the packet is sent to the directed broadcast adress */

    if(((~uip_netmask[1] | uip_hostaddr[1]) == UDPBUF->destipaddr[1]) &&

       ((~uip_netmask[0] | uip_hostaddr[0]) == UDPBUF->destipaddr[0])) {

       // It is a directed broadcast

       goto udp_input;

    }

 

/Daniel

 

Reply via email to