Modified "calcChecksum" function in jungfrauDetectorServer/firmware_funcs.c to compute properly the new IP header checksum for a new application header of 48 bytes.

This commit is contained in:
l_lopez 2017-05-01 12:14:06 +02:00
parent bc57ea5725
commit 7901b6f463
2 changed files with 1 additions and 1 deletions

View File

@ -1568,7 +1568,7 @@ long int calcChecksum(int sourceip, int destip) {
ip.ip_ver = 0x4;
ip.ip_ihl = 0x5;
ip.ip_tos = 0x0;
ip.ip_len = 0x2032;//ipPacketSize;//fixed in firmware
ip.ip_len = 0x2052;//ipPacketSize;//fixed in firmware
ip.ip_ident = 0x0000;
ip.ip_flag = 0x2; //not nibble aligned (flag& offset
ip.ip_offset = 0x000;