Commit ba801290 authored by Dafydd Harries's avatar Dafydd Harries

add support for dumping STUN username attribute

darcs-hash:20070130103357-c9803-ad38140f742ccaae54ac1fc0fdf3af004ab4ff58.gz
parent c6dfe161
......@@ -132,6 +132,9 @@ stun_attribute_dump (StunAttribute *attr)
(attr->address.ip & 0x0000ff00) >> 8,
(attr->address.ip & 0x000000ff) >> 0,
attr->address.port);
case STUN_ATTRIBUTE_USERNAME:
return g_strdup_printf (
"USERNAME \"%*s\"", attr->length, attr->username);
default:
return g_strdup_printf ("UNKNOWN (%d)", attr->type);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment