You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在ShadowUtilities.c文件中的 unsigned short CalculateCheckSum(char* bytes, char* fakeHeader, int byteCounts, int fakeHeaderCounts, int marginBytes)
该方法计算好像与处理器大小端相关,具体表现为:
在Windows内核开发下使用该方法计算出来后返回的short结果直接放在IP头部的缓冲区中(用指针)没问题,但在用Hyper-V中的Ubuntu会使顺序相反。
在ShadowUtilities.c文件中的
unsigned short CalculateCheckSum(char* bytes, char* fakeHeader, int byteCounts, int fakeHeaderCounts, int marginBytes)该方法计算好像与处理器大小端相关,具体表现为:
在Windows内核开发下使用该方法计算出来后返回的short结果直接放在IP头部的缓冲区中(用指针)没问题,但在用Hyper-V中的Ubuntu会使顺序相反。