summaryrefslogtreecommitdiff
path: root/lib/gnutls_record.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-09-17 11:22:02 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-09-17 11:42:58 +0200
commitd620e7020092ba1be4e2f170a7f84cc25cd0d2a1 (patch)
treeb96f70d591db0d8f009513a2374ca8abff7ca082 /lib/gnutls_record.c
parentc8c99c59b4a09f8ade727bfb3276807d72961108 (diff)
downloadgnutls-d620e7020092ba1be4e2f170a7f84cc25cd0d2a1.tar.gz
Added gnutls_record_get_discarded() to return the number of discarded
record packets in a DTLS session.
Diffstat (limited to 'lib/gnutls_record.c')
-rw-r--r--lib/gnutls_record.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gnutls_record.c b/lib/gnutls_record.c
index 874099f3df..22e49234e6 100644
--- a/lib/gnutls_record.c
+++ b/lib/gnutls_record.c
@@ -1075,6 +1075,8 @@ begin:
return ret;
discard:
+ session->internals.dtls.packets_dropped++;
+
/* discard the whole received fragment. */
bufel = _mbuffer_head_pop_first(&session->internals.record_recv_buffer);
_mbuffer_xfree(&bufel);