]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Disable trailing garbage checks
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 28 Oct 2015 17:00:09 +0000 (13:00 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 28 Oct 2015 17:00:23 +0000 (13:00 -0400)
Gets tripped by too many capture devices (F5/Netscout)

src/main/radsniff.c

index 375fe263f24224ed7e4b2627db704cf366c8481e..2e5c486388134ed1affcc22d1655edc73b04b958 100644 (file)
@@ -1094,12 +1094,22 @@ static void rs_packet_process(uint64_t count, rs_event_t *event, struct pcap_pkt
                                diff, udp_len);
                        return;
                }
-               /* Trailing data */
+
+#if 0
+               /*
+                *      It seems many probes add trailing garbage to the end
+                *      of each capture frame.  This has been observed with
+                *      the F5 and Netscout.
+                *
+                *      Leaving the code here in case it's ever needed for
+                *      debugging.
+                */
                else if (diff < 0) {
                        REDEBUG("Packet too big by %zi bytes, UDP header + Payload should be %hu bytes",
                                diff * -1, udp_len);
                        return;
                }
+#endif
        }
        if ((version == 4) && conf->verify_udp_checksum) {
                uint16_t expected;