summaryrefslogtreecommitdiff
path: root/stun/test-attribute-dump-unknown.c
blob: 7435617520b13c1a9ba48729313a1ba9d39a7b8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

#include <string.h>

#include "stun.h"

int
main (void)
{
  gchar *dump;

  StunAttribute *attr = stun_attribute_unpack (4,
    "\x00\xff" // type
    "\x00\x00" // length
    );

  dump = stun_attribute_dump (attr);
  g_assert (0 == strcmp (dump, "UNKNOWN (255)"));
  g_free (dump);
  stun_attribute_free (attr);
  return 0;
}