netfilter-queue: Incorrect UDP checksum computation in nfq_udp_compute_checksum_ipv4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

the function nfq_udp_compute_checksum_ipv4 (src/extra/udp.c) does not compute the correct UDP checksum. The issue is caused by the called function checksum_tcpudp_ipv4() (src/extra/checksum.c) that uses the hard coded protocol id IPPROTO_TCP which is fine for TCP but fails for UDP. A possible solution might be to pass the protocol id (IPPROTO_TCP / IPPROTOC_UDP) as parameter to the function checksum_tcpudp_ipv4().

The very same is also true for the IPv6 versions of these functions.

Any feedback is welcome.

Best regards

Mathias
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux