diff --git a/commandline.c b/commandline.c index d0f91b3c..5af85d2b 100644 --- a/commandline.c +++ b/commandline.c @@ -1319,7 +1319,7 @@ int app_slip_test(const struct cli_parsed *parsed, void *context) unsigned char bufin[8192]; unsigned char bufout[8192]; int count=0; - for(count=0;count<1000000;count++) { + for(count=0;count<1000000;count++) { len=1+random()%1500; int i; for(i=0;idst, state->packet_length); if (crc!=state->crc) { - if (config.debug.packetradio) + if (config.debug.packetradio||config.debug.rejecteddata) DEBUGF("Rejected packet of %d bytes due to CRC mis-match (%08x vs %08x)", state->packet_length,crc,state->crc); + if (config.debug.rejecteddata) { + dump("bad packet",state->dst,state->packet_length); + } } else { if (config.debug.packetradio) DEBUGF("Accepted packet of %d bytes (CRC ok)",state->packet_length);