eyalabraham / 8bit-TCPIP

An 8bit Intel 8088/8086 campatible TCP/IP stack
MIT License
4 stars 0 forks source link

UDP callback's source port number is in network order #11

Open eyalabraham opened 4 years ago

eyalabraham commented 4 years ago

UDP callback source port number in network order, should be converted to host order. Work around: use stack_ntoh() before using this port number in an apps callback.

https://github.com/eyalabraham/8bit-TCPIP/blob/b62eb9277643faab99f9ff0338ed1c0ca6a2e4aa/ip/udp.c#L244