/linux/net/batman-adv/ |
A D | originator.c | 278 kfree_rcu(neigh_node, rcu); in batadv_neigh_node_release() 628 if (neigh_node) in batadv_neigh_node_create() 636 neigh_node = kzalloc(sizeof(*neigh_node), GFP_ATOMIC); in batadv_neigh_node_create() 637 if (!neigh_node) in batadv_neigh_node_create() 647 neigh_node->orig_node = orig_node; in batadv_neigh_node_create() 648 neigh_node->last_seen = jiffies; in batadv_neigh_node_create() 655 kref_init(&neigh_node->refcount); in batadv_neigh_node_create() 657 kref_get(&neigh_node->refcount); in batadv_neigh_node_create() 668 return neigh_node; in batadv_neigh_node_create() 688 if (neigh_node) in batadv_neigh_node_get_or_create() [all …]
|
A D | bat_iv_ogm.c | 183 if (!neigh_node) in batadv_iv_ogm_neigh_new() 189 return neigh_node; in batadv_iv_ogm_neigh_new() 946 neigh_node = tmp_neigh_node; in batadv_iv_ogm_orig_update() 970 if (!neigh_node) { in batadv_iv_ogm_orig_update() 982 if (!neigh_node) in batadv_iv_ogm_orig_update() 1013 if (router == neigh_node) in batadv_iv_ogm_orig_update() 1094 neigh_node = tmp_neigh_node; in batadv_iv_ogm_calc_tq() 1099 if (!neigh_node) in batadv_iv_ogm_calc_tq() 1105 if (!neigh_node) in batadv_iv_ogm_calc_tq() 1255 neigh_addr = neigh_node->addr; in batadv_iv_ogm_update_seqnos() [all …]
|
A D | bat_v_ogm.c | 520 struct batadv_neigh_node *neigh_node, in batadv_v_ogm_forward() argument 545 if (neigh_node != router) in batadv_v_ogm_forward() 646 neigh_node->last_seen = jiffies; in batadv_v_ogm_metric_update() 733 if (router == neigh_node) in batadv_v_ogm_route_update() 794 neigh_node, if_incoming, in batadv_v_ogm_process_per_outif() 810 neigh_node, if_incoming, in batadv_v_ogm_process_per_outif() 858 struct batadv_neigh_node *neigh_node = NULL; in batadv_v_ogm_process() local 905 if (!neigh_node) in batadv_v_ogm_process() 920 neigh_node, if_incoming, in batadv_v_ogm_process() 964 orig_node, neigh_node, in batadv_v_ogm_process() [all …]
|
A D | fragmentation.c | 355 struct batadv_neigh_node *neigh_node = NULL; in batadv_frag_skb_fwd() local 365 neigh_node = batadv_find_router(bat_priv, orig_node_dst, recv_if); in batadv_frag_skb_fwd() 366 if (!neigh_node) in batadv_frag_skb_fwd() 373 if (total_size > neigh_node->if_incoming->net_dev->mtu) { in batadv_frag_skb_fwd() 379 batadv_send_unicast_skb(skb, neigh_node); in batadv_frag_skb_fwd() 385 batadv_neigh_node_put(neigh_node); in batadv_frag_skb_fwd() 441 struct batadv_neigh_node *neigh_node) in batadv_frag_send_packet() argument 443 struct net_device *net_dev = neigh_node->if_incoming->net_dev; in batadv_frag_send_packet() 518 ret = batadv_send_unicast_skb(skb_fragment, neigh_node); in batadv_frag_send_packet() 541 ret = batadv_send_unicast_skb(skb, neigh_node); in batadv_frag_send_packet()
|
A D | send.c | 181 struct batadv_neigh_node *neigh_node; in batadv_send_skb_to_orig() local 186 if (!neigh_node) { in batadv_send_skb_to_orig() 195 skb->len > neigh_node->if_incoming->net_dev->mtu) { in batadv_send_skb_to_orig() 197 ret = batadv_frag_send_packet(skb, orig_node, neigh_node); in batadv_send_skb_to_orig() 208 if (recv_if && batadv_nc_skb_forward(skb, neigh_node)) in batadv_send_skb_to_orig() 211 ret = batadv_send_unicast_skb(skb, neigh_node); in batadv_send_skb_to_orig() 217 batadv_neigh_node_put(neigh_node); in batadv_send_skb_to_orig() 853 struct batadv_hardif_neigh_node *neigh_node = NULL; in batadv_send_no_broadcast() local 862 neigh_node = batadv_hardif_neigh_get(if_out, in batadv_send_no_broadcast() 867 orig_neigh = neigh_node ? neigh_node->orig : NULL; in batadv_send_no_broadcast() [all …]
|
A D | network-coding.c | 1084 neigh_tmp = nc_packet->neigh_node; in batadv_nc_code_packets() 1105 first_dest = nc_packet->neigh_node; in batadv_nc_code_packets() 1107 second_dest = neigh_node; in batadv_nc_code_packets() 1116 first_dest = neigh_node; in batadv_nc_code_packets() 1118 second_dest = nc_packet->neigh_node; in batadv_nc_code_packets() 1425 neigh_node->addr, in batadv_nc_skb_dst_search() 1439 neigh_node->addr); in batadv_nc_skb_dst_search() 1441 nc_packet->neigh_node->addr); in batadv_nc_skb_dst_search() 1445 neigh_node)) in batadv_nc_skb_dst_search() 1480 nc_packet->neigh_node = neigh_node; in batadv_nc_skb_add_to_path() [all …]
|
A D | bat_v.c | 272 struct batadv_neigh_node *neigh_node, in batadv_v_orig_dump_subentry() argument 280 n_ifinfo = batadv_neigh_ifinfo_get(neigh_node, if_outgoing); in batadv_v_orig_dump_subentry() 291 if_outgoing != neigh_node->if_incoming) in batadv_v_orig_dump_subentry() 301 neigh_node->addr) || in batadv_v_orig_dump_subentry() 303 neigh_node->if_incoming->net_dev->name) || in batadv_v_orig_dump_subentry() 305 neigh_node->if_incoming->net_dev->ifindex) || in batadv_v_orig_dump_subentry() 343 struct batadv_neigh_node *neigh_node; in batadv_v_orig_dump_entry() local 351 hlist_for_each_entry_rcu(neigh_node, &orig_node->neigh_list, list) { in batadv_v_orig_dump_entry() 355 best = (neigh_node == neigh_node_best); in batadv_v_orig_dump_entry() 359 neigh_node, best)) { in batadv_v_orig_dump_entry()
|
A D | routing.c | 56 struct batadv_neigh_node *neigh_node) in _batadv_update_route() argument 75 if (neigh_node) in _batadv_update_route() 76 kref_get(&neigh_node->refcount); in _batadv_update_route() 84 if (curr_router && !neigh_node) { in _batadv_update_route() 91 } else if (!curr_router && neigh_node) { in _batadv_update_route() 94 orig_node->orig, neigh_node->addr); in _batadv_update_route() 96 } else if (neigh_node && curr_router) { in _batadv_update_route() 99 orig_node->orig, neigh_node->addr, in _batadv_update_route() 117 struct batadv_neigh_node *neigh_node) in batadv_update_route() argument 126 if (router != neigh_node) in batadv_update_route() [all …]
|
A D | originator.h | 132 static inline void batadv_neigh_node_put(struct batadv_neigh_node *neigh_node) in batadv_neigh_node_put() argument 134 if (!neigh_node) in batadv_neigh_node_put() 137 kref_put(&neigh_node->refcount, batadv_neigh_node_release); in batadv_neigh_node_put()
|
A D | network-coding.h | 35 struct batadv_neigh_node *neigh_node); 87 struct batadv_neigh_node *neigh_node) in batadv_nc_skb_forward() argument
|
A D | fragmentation.h | 27 struct batadv_neigh_node *neigh_node);
|
A D | routing.h | 21 struct batadv_neigh_node *neigh_node);
|
A D | send.h | 41 struct batadv_neigh_node *neigh_node);
|
A D | distributed-arp-table.c | 682 struct batadv_neigh_node *neigh_node = NULL; in batadv_dat_forward_data() local 696 neigh_node = batadv_orig_router_get(cand[i].orig_node, in batadv_dat_forward_data() 698 if (!neigh_node) in batadv_dat_forward_data() 709 send_status = batadv_send_unicast_skb(tmp_skb, neigh_node); in batadv_dat_forward_data() 727 batadv_neigh_node_put(neigh_node); in batadv_dat_forward_data()
|
A D | types.h | 2077 struct batadv_neigh_node *neigh_node; member
|
/linux/include/net/ |
A D | netrom.h | 89 struct hlist_node neigh_node; member 161 hlist_for_each_entry(__nr_neigh, list, neigh_node) 164 hlist_for_each_entry_safe(__nr_neigh, node2, list, neigh_node)
|
/linux/net/netrom/ |
A D | nr_route.c | 176 hlist_add_head(&nr_neigh->neigh_node, &nr_neigh_list); in nr_add_node() 306 hlist_del_init(&nr_neigh->neigh_node); in __nr_remove_neigh() 421 hlist_add_head(&nr_neigh->neigh_node, &nr_neigh_list); in nr_add_neigh() 929 nr_neigh = hlist_entry(v, struct nr_neigh, neigh_node); in nr_neigh_show()
|