cherry-embedded / CherryUSB

CherryUSB is a tiny and portable USB Stack (device & host) for embedded system with USB IP
https://cherryusb.readthedocs.io/
Apache License 2.0
1.14k stars 245 forks source link

rndis: fix MessageLength check #185

Closed chenzhihong007 closed 3 months ago

chenzhihong007 commented 3 months ago
sakumisu commented 3 months ago

MessageLength will be MessageLength+1 when MPS?

chenzhihong007 commented 3 months ago

MessageLength will be MessageLength+1 when MPS?

image

sakumisu commented 3 months ago

好的,那主机那边也要改了

chenzhihong007 commented 3 months ago

好的,那主机那边也要改了

不同的主机,行为可能不一样,协议栈里面的host不一定要改。windows可能是为了不发零长度包,故意多发一个字节。