aboutsummaryrefslogtreecommitdiff
path: root/src/cadet
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-10-02 15:07:44 +0000
committerBart Polot <bart@net.in.tum.de>2015-10-02 15:07:44 +0000
commitf6164b19550cb235be110e0f5b69eb7567440f00 (patch)
tree102952f3e78476f47b72b420ae18487f2178ed2b /src/cadet
parentf8ab2ae102ea323c35185cbec55c7cd2803673ab (diff)
downloadgnunet-f6164b19550cb235be110e0f5b69eb7567440f00.tar.gz
gnunet-f6164b19550cb235be110e0f5b69eb7567440f00.zip
- don't show WARNINGs on duplicate traffic
Diffstat (limited to 'src/cadet')
-rw-r--r--src/cadet/gnunet-service-cadet_channel.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cadet/gnunet-service-cadet_channel.c b/src/cadet/gnunet-service-cadet_channel.c
index cad295196..367a34e5d 100644
--- a/src/cadet/gnunet-service-cadet_channel.c
+++ b/src/cadet/gnunet-service-cadet_channel.c
@@ -2001,23 +2001,24 @@ GCCH_handle_data (struct CadetChannel *ch,
2001 } 2001 }
2002 else 2002 else
2003 { 2003 {
2004 GNUNET_STATISTICS_update (stats, "# duplicate MID", 1, GNUNET_NO);
2004 if (GC_is_pid_bigger (rel->mid_recv, mid)) 2005 if (GC_is_pid_bigger (rel->mid_recv, mid))
2005 { 2006 {
2006 GNUNET_break_op (0); 2007 GNUNET_break_op (0);
2007 LOG (GNUNET_ERROR_TYPE_WARNING, 2008 LOG (GNUNET_ERROR_TYPE_INFO,
2008 "MID %u on channel %s not expected (window: %u - %u). Dropping!\n", 2009 "MID %u on channel %s not expected (window: %u - %u). Dropping!\n",
2009 mid, GCCH_2s (ch), rel->mid_recv, rel->mid_recv + 63); 2010 mid, GCCH_2s (ch), rel->mid_recv, rel->mid_recv + 63);
2010 } 2011 }
2011 else 2012 else
2012 { 2013 {
2013 LOG (GNUNET_ERROR_TYPE_WARNING, 2014 LOG (GNUNET_ERROR_TYPE_INFO,
2014 "Duplicate MID %u, channel %s (expecting MID %u). Re-sending ACK!\n", 2015 "Duplicate MID %u, channel %s (expecting MID %u). Re-sending ACK!\n",
2015 mid, GCCH_2s (ch), rel->mid_recv); 2016 mid, GCCH_2s (ch), rel->mid_recv);
2016 if (NULL != rel->uniq) 2017 if (NULL != rel->uniq)
2017 { 2018 {
2018 LOG (GNUNET_ERROR_TYPE_WARNING, 2019 LOG (GNUNET_ERROR_TYPE_WARNING,
2019 "We are trying to send an ACK, but don't seem have the " 2020 "We are trying to send an ACK, but don't seem have the "
2020 "bandwidth. Try to increase your ats QUOTA in you config file\n"); 2021 "bandwidth. Try to increase your [ats] QUOTA in you config file\n");
2021 } 2022 }
2022 2023
2023 } 2024 }