Browse Source

suppress log message on "comprehension option" STUN attributes

closes #436

Change-Id: I3b5583a83500b7cbfaf1317cae18d5f186554672
pull/432/merge
Richard Fuchs 8 years ago
parent
commit
acba2751f8
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      daemon/stun.c

+ 5
- 2
daemon/stun.c View File

@ -222,9 +222,12 @@ static int stun_attributes(struct stun_attrs *out, str *s, u_int16_t *unknowns,
break; break;
default: 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; break;
}
ilog(LOG_NOTICE, "Unknown STUN attribute: 0x%04x", type);
unknowns[uc] = tlv->type; unknowns[uc] = tlv->type;
unknowns[++uc] = 0xffff; unknowns[++uc] = 0xffff;
if (uc >= UNKNOWNS_COUNT - 1) if (uc >= UNKNOWNS_COUNT - 1)


Loading…
Cancel
Save