libnetfilter_queue: fix checksum computation
authorAlin Năstac <alin.nastac@gmail.com>
Fri, 24 Jun 2016 12:41:10 +0000 (14:41 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sun, 26 Jun 2016 14:09:48 +0000 (16:09 +0200)
commit86a2702a00c119d8fd1470784772754bede6888a
treedbf7ee03a63910fc4a1e309eab2bb50599987217
parente6b93303437cd63d5f30787d5140ced73400e587
libnetfilter_queue: fix checksum computation

There are 2 issues fixed by this patch:
  - UDP checksum is computed incorrectly, the used pseudo IP header
    contains transport protocol 6 iso 17
  - on big endian arches the UDP/TCP checksum is incorrectly
    computed when payload length is odd

Signed-off-by: Alin Nastac <alin.nastac@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [refresh patch]
package/libs/libnetfilter-queue/patches/100-checksum_computation.patch [new file with mode: 0644]