• AVR Freaks

Hot!UDP "Bug?"

Author
friesen
Super Member
  • Total Posts : 2081
  • Reward points : 0
  • Joined: 2008/05/08 05:23:35
  • Location: Indiana, USA
  • Status: online
2013/09/11 18:03:52 (permalink)
0

UDP "Bug?"

The partial match feature in -
FindMatchingSocket(UDP_HEADER *h, NODE_INFO *remoteNode, IP_ADDR *localIP)
has caused some very unpredictable behaviour in my application.  If any received UDP packet's remotePort matches any socket's SourcePort in the arp process, (and perhaps anytime, ?) immediately the IP and mac is copied to the UDP socket, thus killing the socket, unless things match.
 
I consider this behaviour unneeded, unwanted, getting pretty close to a bug, perhaps this could be fixed in future releases?
 
Something like -
#ifndef UDP_NO_PARTIAL_MATCH
partialMatch = s;
#endif

Erik Friesen
#1

5 Replies Related Threads

    Mario V
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2012/03/29 18:36:25
    • Location: 0
    • Status: offline
    Re: UDP "Bug?" 2019/09/14 12:21:13 (permalink)
    0
    Yes I Agree.
    I have this behaviour when the remote node is unknown. I comment the line
    //partialMatch = s;

    Additionally add the condition to support unknown sender
    if( (p->remote.remoteNode.IPAddr.Val == remoteNode->IPAddr.Val) || (p->remote.remoteNode.IPAddr.Val == 0xFFFFFFFFul) )

    #2
    NKurzman
    A Guy on the Net
    • Total Posts : 17847
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: UDP "Bug?" 2019/09/14 13:13:35 (permalink)
    0
    Which stack of the many that microchip has out ? And what version ?
    #3
    friesen
    Super Member
    • Total Posts : 2081
    • Reward points : 0
    • Joined: 2008/05/08 05:23:35
    • Location: Indiana, USA
    • Status: online
    Re: UDP "Bug?" 2019/09/14 17:18:20 (permalink)
    0
    This will be the TCPIP stack from Microchip solutions v2012-10-15 or close by.

    Erik Friesen
    #4
    NKurzman
    A Guy on the Net
    • Total Posts : 17847
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: UDP "Bug?" 2019/09/14 19:34:09 (permalink)
    0
    If the poster is complaining about a 7 year old stack I would guess that version will not be fixed.
    #5
    friesen
    Super Member
    • Total Posts : 2081
    • Reward points : 0
    • Joined: 2008/05/08 05:23:35
    • Location: Indiana, USA
    • Status: online
    Re: UDP "Bug?" 2019/09/16 05:01:04 (permalink)
    5 (1)
    I posted the original post some 6 years ago.  For me, I still actively maintain a project that uses this stack.
     
    I'm not seeing myself using harmony on the mx series anytime soon.

    Erik Friesen
    #6
    Jump to:
    © 2019 APG vNext Commercial Version 4.5