Lines Matching refs:rkey
309 } __attribute__((packed)) *rkey; in route_keygen() local
317 rkey_sz = sizeof(*rkey); in route_keygen()
320 rkey = calloc(1, rkey_sz); in route_keygen()
321 if (!rkey) { in route_keygen()
326 rkey->rt_family = route->rt_family; in route_keygen()
327 rkey->rt_tos = route->rt_tos; in route_keygen()
328 rkey->rt_table = route->rt_table; in route_keygen()
329 rkey->rt_prio = route->rt_prio; in route_keygen()
331 memcpy(rkey->rt_addr, nl_addr_get_binary_addr(addr), in route_keygen()
334 *hashkey = nl_hash(rkey, rkey_sz, 0) % table_sz; in route_keygen()
337 "hash 0x%x\n", route, rkey->rt_family, rkey->rt_tos, in route_keygen()
338 rkey->rt_table, nl_addr2str(addr, buf, sizeof(buf)), in route_keygen()
341 free(rkey); in route_keygen()