31 if (PacketIsIPv4(p)) {
38 }
else if (PacketIsUDP(p)) {
46 }
else if (PacketIsIPv6(p)) {
52 }
else if (PacketIsUDP(p)) {
70 uint64_t iface_count, uint64_t iface_fail)
73 if (iface_fail != 0) {
75 SCLogInfo(
"More than 1/%dth of packets have an invalid "
76 "checksum, assuming checksum offloading is used "
77 "(%"PRIu64
"/%"PRIu64
")",
81 SCLogInfo(
"Less than 1/%dth of packets have an invalid "
82 "checksum, assuming checksum offloading is NOT used "
84 iface_fail, iface_count);
87 SCLogInfo(
"No packets with invalid checksum, assuming "
88 "checksum offloading is NOT used");