Lines Matching refs:buf

10   char buf[16];  in do_test()  local
11 memset (buf, '\0', 16); in do_test()
13 if (! IN6_IS_ADDR_UNSPECIFIED (buf)) in do_test()
20 buf[i] = 1; in do_test()
21 if (IN6_IS_ADDR_UNSPECIFIED (buf)) in do_test()
27 buf[i] = 0; in do_test()
30 if (IN6_IS_ADDR_LOOPBACK (buf)) in do_test()
35 buf[15] = 1; in do_test()
36 if (! IN6_IS_ADDR_LOOPBACK (buf)) in do_test()
41 buf[15] = 0; in do_test()
43 buf[0] = 0xfe; in do_test()
44 buf[1] = 0x80; in do_test()
45 if (! IN6_IS_ADDR_LINKLOCAL (buf)) in do_test()
52 buf[i] ^= 1; in do_test()
53 if (! IN6_IS_ADDR_LINKLOCAL (buf)) in do_test()
58 buf[i] ^= 1; in do_test()
60 buf[0] = 0xff; in do_test()
61 buf[1] = 0x80; in do_test()
62 if (IN6_IS_ADDR_LINKLOCAL (buf)) in do_test()
67 buf[0] = 0xfe; in do_test()
68 buf[1] = 0xc0; in do_test()
69 if (IN6_IS_ADDR_LINKLOCAL (buf)) in do_test()
75 buf[0] = 0xfe; in do_test()
76 buf[1] = 0xc0; in do_test()
77 if (! IN6_IS_ADDR_SITELOCAL (buf)) in do_test()
84 buf[i] ^= 1; in do_test()
85 if (! IN6_IS_ADDR_SITELOCAL (buf)) in do_test()
90 buf[i] ^= 1; in do_test()
92 buf[0] = 0xff; in do_test()
93 buf[1] = 0x80; in do_test()
94 if (IN6_IS_ADDR_SITELOCAL (buf)) in do_test()
99 buf[0] = 0xf8; in do_test()
100 buf[1] = 0xc0; in do_test()
101 if (IN6_IS_ADDR_SITELOCAL (buf)) in do_test()
107 memset (buf, '\0', 16); in do_test()
108 buf[10] = 0xff; in do_test()
109 buf[11] = 0xff; in do_test()
110 if (! IN6_IS_ADDR_V4MAPPED (buf)) in do_test()
117 buf[i] ^= 1; in do_test()
118 if (! IN6_IS_ADDR_V4MAPPED (buf)) in do_test()
123 buf[i] ^= 1; in do_test()
127 buf[i] ^= 1; in do_test()
128 if (IN6_IS_ADDR_V4MAPPED (buf)) in do_test()
133 buf[i] ^= 1; in do_test()
136 memset (buf, '\0', 16); in do_test()
139 buf[i] ^= 2; in do_test()
140 if (! IN6_IS_ADDR_V4COMPAT (buf)) in do_test()
145 buf[i] ^= 2; in do_test()
149 buf[i] ^= 1; in do_test()
150 if (IN6_IS_ADDR_V4COMPAT (buf)) in do_test()
155 buf[i] ^= 1; in do_test()
157 if (IN6_IS_ADDR_V4COMPAT (buf)) in do_test()
162 buf[15] = 1; in do_test()
163 if (IN6_IS_ADDR_V4COMPAT (buf)) in do_test()