Lines Matching defs:alen
69 const int alen = sizeof(struct in_addr);
71 return memcmp(addr, test_addr, alen) == 0;
78 const int alen = sizeof(struct in_addr);
82 error = npf_table_insert(t, alen, addr, NPF_NO_NETMASK);
84 error = npf_table_lookup(t, alen, addr);
93 const int alen = sizeof(struct in_addr);
103 error = npf_table_insert(t, alen, addr, nm);
105 error = npf_table_insert(t, alen, addr, nm);
109 error = npf_table_insert(t, alen, addr, nm);
111 error = npf_table_insert(t, alen, addr, nm);
121 const size_t alen = sizeof(struct in_addr);
130 error = npf_table_insert(t, alen, addr, nm);
134 error = npf_table_insert(t, alen, addr, nm);
142 error = npf_table_lookup(t, alen, addr);
146 error = npf_table_lookup(t, alen, addr);
156 const int alen = sizeof(struct in_addr);
166 error = npf_table_remove(t, alen, addr, nm);
169 error = npf_table_remove(t, alen, addr, nm);
173 error = npf_table_remove(t, alen, addr, nm);
176 error = npf_table_remove(t, alen, addr, nm);
188 const int alen = sizeof(struct in_addr);
220 error = npf_table_lookup(t, alen, addr);
224 error = npf_table_lookup(t, alen, addr);
233 const int alen = sizeof(struct in_addr);
248 error = npf_table_insert(t, alen, addr, NPF_NO_NETMASK);
251 memcpy(&lookup_addr, addr, alen);
252 memset(addr, 0xa5, alen); // explicit memset
254 error = npf_table_lookup(t, alen, &lookup_addr);
267 const size_t alen = sizeof(struct in6_addr);
276 error = npf_table_insert(t, alen, addr, nm);
278 error = npf_table_lookup(t, alen, addr);
280 error = npf_table_remove(t, alen, addr, nm);
284 error = npf_table_insert(t, alen, addr, nm);
286 error = npf_table_lookup(t, alen, addr);
288 error = npf_table_remove(t, alen, addr, nm);
299 const size_t alen = sizeof(struct in_addr);
303 error = npf_table_insert(t, alen, addr, 25);
307 error = npf_table_lookup(t, alen, addr);
311 error = npf_table_lookup(t, alen, addr);
322 const size_t alen = sizeof(struct in6_addr);
329 error = npf_table_insert(t, alen, addr, 96);
333 error = npf_table_lookup(t, alen, addr);
337 error = npf_table_remove(t, alen, addr, 96);
344 error = npf_table_insert(t, alen, addr, 32);
348 error = npf_table_lookup(t, alen, addr);
352 error = npf_table_remove(t, alen, addr, 32);
359 error = npf_table_insert(t, alen, addr, 126);
363 error = npf_table_lookup(t, alen, addr);
367 error = npf_table_remove(t, alen, addr, 126);
377 const int alen = sizeof(struct in_addr);
388 error = npf_table_lookup(t, alen, addr);
393 error = npf_table_lookup(t, alen, addr);