This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

udp最小发送字节问题

 本人采用starterware1.20开发C6748的udp功能,之前测试发现如果发送小于18字节的数据,上位机接受不到。经检查,是由于当发送小于18字节数据时,ip包数据小于60字节(18+42,其中42字节是udp头部+ip段头部),程序会在sitaraif.c, line 348 处将数据包长度置位60,导致发送的数据段被改写,发送数据错误。这个问题应该如何解决?(曾尝试将数据包长度强制改回原值,之后发送接收数据都变异常)