From acba2751f82b4a3f0106f4016b9183a07630eb5b Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 3 Jan 2018 09:25:36 -0500 Subject: [PATCH] suppress log message on "comprehension option" STUN attributes closes #436 Change-Id: I3b5583a83500b7cbfaf1317cae18d5f186554672 --- daemon/stun.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/daemon/stun.c b/daemon/stun.c index ce4823870..dfecde7cd 100644 --- a/daemon/stun.c +++ b/daemon/stun.c @@ -222,9 +222,12 @@ static int stun_attributes(struct stun_attrs *out, str *s, u_int16_t *unknowns, break; default: - ilog(LOG_NOTICE, "Unknown STUN attribute: 0x%04x", type); - if ((type & 0x8000)) + if ((type & 0x8000)) { + // comprehension optional + ilog(LOG_DEBUG, "Unknown STUN attribute: 0x%04x", type); break; + } + ilog(LOG_NOTICE, "Unknown STUN attribute: 0x%04x", type); unknowns[uc] = tlv->type; unknowns[++uc] = 0xffff; if (uc >= UNKNOWNS_COUNT - 1)