Home
last modified time | relevance | path

Searched refs:hash_node (Results 1 – 1 of 1) sorted by relevance

/f-stack/freebsd/netinet/
H A Dsiftr.c338 struct flow_hash_node *hash_node; in siftr_process_pkt() local
345 hash_node = NULL; in siftr_process_pkt()
382 LIST_FOREACH(hash_node, counter_list, nodes) { in siftr_process_pkt()
399 if (hash_node == NULL || !found_match) { in siftr_process_pkt()
401 hash_node = malloc(sizeof(struct flow_hash_node), in siftr_process_pkt()
404 if (hash_node != NULL) { in siftr_process_pkt()
406 hash_node->counter = 0; in siftr_process_pkt()
407 memcpy(hash_node->key, key, sizeof(key)); in siftr_process_pkt()
408 LIST_INSERT_HEAD(counter_list, hash_node, nodes); in siftr_process_pkt()
426 hash_node->counter = (hash_node->counter + 1) % in siftr_process_pkt()
[all …]