Go to the documentation of this file.
12 const unsigned char hex[] =
"0123456789ABCDEF";
20 for (i=0; i < 16; i += 2) {
24 *p++ =
hex[(addr->
addr.
u8[i] & 0xf0) >> 4];
26 *p++ =
hex[(addr->
addr.
u8[i+1] & 0xf0) >> 4];
32 if (buf + len - p < 6)
35 p += snprintf((
char *)p, buf + len - p + 1,
":%d", 50000);
45 addr.
addr.
u16[0] = htons(0x0011);
46 addr.
addr.
u16[1] = htons(0x2233);
47 addr.
addr.
u16[2] = htons(0x4455);
48 addr.
addr.
u16[3] = htons(0x6677);
49 addr.
addr.
u16[4] = htons(0x8899);
50 addr.
addr.
u16[5] = htons(0xaabb);
51 addr.
addr.
u16[6] = htons(0xccdd);
52 addr.
addr.
u16[7] = htons(0xeeff);