/linux-3.4.99/net/batman-adv/ |
D | originator.c | 65 void neigh_node_free_ref(struct neigh_node *neigh_node) in neigh_node_free_ref() argument 67 if (atomic_dec_and_test(&neigh_node->refcount)) in neigh_node_free_ref() 68 kfree_rcu(neigh_node, rcu); in neigh_node_free_ref() 72 struct neigh_node *orig_node_get_router(struct orig_node *orig_node) in orig_node_get_router() 74 struct neigh_node *router; in orig_node_get_router() 86 struct neigh_node *create_neighbor(struct orig_node *orig_node, in create_neighbor() 92 struct neigh_node *neigh_node; in create_neighbor() local 97 neigh_node = kzalloc(sizeof(*neigh_node), GFP_ATOMIC); in create_neighbor() 98 if (!neigh_node) in create_neighbor() 101 INIT_HLIST_NODE(&neigh_node->list); in create_neighbor() [all …]
|
D | routing.c | 64 struct neigh_node *neigh_node) in _update_route() argument 66 struct neigh_node *curr_router; in _update_route() 71 if ((curr_router) && (!neigh_node)) { in _update_route() 78 } else if ((!curr_router) && (neigh_node)) { in _update_route() 82 orig_node->orig, neigh_node->addr); in _update_route() 84 } else if (neigh_node && curr_router) { in _update_route() 87 orig_node->orig, neigh_node->addr, in _update_route() 95 if (neigh_node && !atomic_inc_not_zero(&neigh_node->refcount)) in _update_route() 96 neigh_node = NULL; in _update_route() 99 rcu_assign_pointer(orig_node->router, neigh_node); in _update_route() [all …]
|
D | routing.h | 27 struct neigh_node *neigh_node); 37 struct neigh_node *find_router(struct bat_priv *bat_priv, 41 struct neigh_node *neigh_node); 43 struct neigh_node *neigh_node);
|
D | bat_iv_ogm.c | 467 struct neigh_node *router; in bat_iv_ogm_forward() 582 struct neigh_node *neigh_node = NULL, *tmp_neigh_node = NULL; in bat_iv_ogm_orig_update() local 583 struct neigh_node *router = NULL; in bat_iv_ogm_orig_update() 597 if (neigh_node) in bat_iv_ogm_orig_update() 598 neigh_node_free_ref(neigh_node); in bat_iv_ogm_orig_update() 599 neigh_node = tmp_neigh_node; in bat_iv_ogm_orig_update() 614 if (!neigh_node) { in bat_iv_ogm_orig_update() 621 neigh_node = create_neighbor(orig_node, orig_tmp, in bat_iv_ogm_orig_update() 625 if (!neigh_node) in bat_iv_ogm_orig_update() 634 neigh_node->last_valid = jiffies; in bat_iv_ogm_orig_update() [all …]
|
D | icmp_socket.c | 159 struct neigh_node *neigh_node = NULL; in bat_socket_write() local 222 neigh_node = orig_node_get_router(orig_node); in bat_socket_write() 223 if (!neigh_node) in bat_socket_write() 226 if (!neigh_node->if_incoming) in bat_socket_write() 229 if (neigh_node->if_incoming->if_status != IF_ACTIVE) in bat_socket_write() 237 neigh_node->if_incoming->net_dev->dev_addr, ETH_ALEN); in bat_socket_write() 239 send_skb_packet(skb, neigh_node->if_incoming, neigh_node->addr); in bat_socket_write() 250 if (neigh_node) in bat_socket_write() 251 neigh_node_free_ref(neigh_node); in bat_socket_write()
|
D | unicast.c | 291 struct neigh_node *neigh_node; in unicast_send_skb() local 313 neigh_node = find_router(bat_priv, orig_node, NULL); in unicast_send_skb() 315 if (!neigh_node) in unicast_send_skb() 336 neigh_node->if_incoming->net_dev->mtu) { in unicast_send_skb() 340 neigh_node->if_incoming, neigh_node->addr); in unicast_send_skb() 344 send_skb_packet(skb, neigh_node->if_incoming, neigh_node->addr); in unicast_send_skb() 349 if (neigh_node) in unicast_send_skb() 350 neigh_node_free_ref(neigh_node); in unicast_send_skb()
|
D | originator.h | 32 struct neigh_node *create_neighbor(struct orig_node *orig_node, 36 void neigh_node_free_ref(struct neigh_node *neigh_node); 37 struct neigh_node *orig_node_get_router(struct orig_node *orig_node);
|
D | translation-table.c | 1097 struct neigh_node *neigh_node = NULL; in send_tt_request() local 1133 neigh_node = orig_node_get_router(dst_orig_node); in send_tt_request() 1134 if (!neigh_node) in send_tt_request() 1139 dst_orig_node->orig, neigh_node->addr, in send_tt_request() 1142 send_skb_packet(skb, neigh_node->if_incoming, neigh_node->addr); in send_tt_request() 1146 if (neigh_node) in send_tt_request() 1147 neigh_node_free_ref(neigh_node); in send_tt_request() 1165 struct neigh_node *neigh_node = NULL; in send_other_tt_response() local 1189 neigh_node = orig_node_get_router(res_dst_orig_node); in send_other_tt_response() 1190 if (!neigh_node) in send_other_tt_response() [all …]
|
D | gateway_client.c | 113 struct neigh_node *router; in gw_get_best_gw_node() 188 struct neigh_node *router = NULL; in gw_election() 252 struct neigh_node *router_gw = NULL, *router_orig = NULL; in gw_check_election() 432 struct neigh_node *router; in _write_buffer_text() 640 struct neigh_node *neigh_curr = NULL, *neigh_old = NULL; in gw_out_of_range()
|
D | types.h | 70 struct neigh_node __rcu *router; /* rcu protected pointer */ 125 struct neigh_node { struct
|
D | vis.c | 555 struct neigh_node *router; in find_best_vis_server() 608 struct neigh_node *router; in generate_vis_packet() 729 struct neigh_node *router; in broadcast_vis_packet() 784 struct neigh_node *router = NULL; in unicast_vis_packet()
|
/linux-3.4.99/include/net/ |
D | netrom.h | 86 struct hlist_node neigh_node; member 158 hlist_for_each_entry(__nr_neigh, node, list, neigh_node) 161 hlist_for_each_entry_safe(__nr_neigh, node, node2, list, neigh_node)
|
/linux-3.4.99/net/netrom/ |
D | nr_route.c | 171 hlist_add_head(&nr_neigh->neigh_node, &nr_neigh_list); in nr_add_node() 337 hlist_del_init(&nr_neigh->neigh_node); in __nr_remove_neigh() 450 hlist_add_head(&nr_neigh->neigh_node, &nr_neigh_list); in nr_add_neigh() 966 nr_neigh = hlist_entry(v, struct nr_neigh, neigh_node); in nr_neigh_show()
|