Home
last modified time | relevance | path

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

/net/batman-adv/
Drouting.c102 rcu_assign_pointer(orig_node->router, neigh_node); in _batadv_update_route()
114 struct batadv_neigh_node *router = NULL; in batadv_update_route() local
119 router = batadv_orig_node_get_router(orig_node); in batadv_update_route()
121 if (router != neigh_node) in batadv_update_route()
125 if (router) in batadv_update_route()
126 batadv_neigh_node_free_ref(router); in batadv_update_route()
149 struct batadv_neigh_node *tmp_neigh_node, *router = NULL; in batadv_bonding_candidate_add() local
159 router = batadv_orig_node_get_router(orig_node); in batadv_bonding_candidate_add()
160 if (!router) in batadv_bonding_candidate_add()
164 if (neigh_node->tq_avg < router->tq_avg - BATADV_BONDING_TQ_THRESHOLD) in batadv_bonding_candidate_add()
[all …]
Dgateway_client.c116 struct batadv_neigh_node *router; in batadv_gw_get_best_gw_node() local
134 router = batadv_orig_node_get_router(orig_node); in batadv_gw_get_best_gw_node()
135 if (!router) in batadv_gw_get_best_gw_node()
141 tq_avg = router->tq_avg; in batadv_gw_get_best_gw_node()
186 batadv_neigh_node_free_ref(router); in batadv_gw_get_best_gw_node()
196 struct batadv_neigh_node *router = NULL; in batadv_gw_election() local
220 router = batadv_orig_node_get_router(next_gw->orig_node); in batadv_gw_election()
221 if (!router) { in batadv_gw_election()
236 next_gw->orig_node->gw_flags, router->tq_avg); in batadv_gw_election()
243 next_gw->orig_node->gw_flags, router->tq_avg); in batadv_gw_election()
[all …]
Dbat_iv_ogm.c671 struct batadv_neigh_node *router = NULL; in batadv_iv_ogm_orig_update() local
746 router = batadv_orig_node_get_router(orig_node); in batadv_iv_ogm_orig_update()
747 if (router == neigh_node) in batadv_iv_ogm_orig_update()
751 if (router && (router->tq_avg > neigh_node->tq_avg)) in batadv_iv_ogm_orig_update()
757 if (router && (neigh_node->tq_avg == router->tq_avg)) { in batadv_iv_ogm_orig_update()
758 orig_node_tmp = router->orig_node; in batadv_iv_ogm_orig_update()
760 if_num = router->if_incoming->if_num; in batadv_iv_ogm_orig_update()
807 if (router) in batadv_iv_ogm_orig_update()
808 batadv_neigh_node_free_ref(router); in batadv_iv_ogm_orig_update()
1012 struct batadv_neigh_node *router = NULL, *router_router = NULL; in batadv_iv_ogm_process() local
[all …]
Dvis.c516 struct batadv_neigh_node *router; in batadv_find_best_vis_server() local
530 router = batadv_orig_node_get_router(orig_node); in batadv_find_best_vis_server()
531 if (!router) in batadv_find_best_vis_server()
535 (router->tq_avg > best_tq)) { in batadv_find_best_vis_server()
536 best_tq = router->tq_avg; in batadv_find_best_vis_server()
540 batadv_neigh_node_free_ref(router); in batadv_find_best_vis_server()
570 struct batadv_neigh_node *router; in batadv_generate_vis_packet() local
602 router = batadv_orig_node_get_router(orig_node); in batadv_generate_vis_packet()
603 if (!router) in batadv_generate_vis_packet()
606 if (!batadv_compare_eth(router->addr, orig_node->orig)) in batadv_generate_vis_packet()
[all …]
Doriginator.c81 struct batadv_neigh_node *router; in batadv_orig_node_get_router() local
84 router = rcu_dereference(orig_node->router); in batadv_orig_node_get_router()
86 if (router && !atomic_inc_not_zero(&router->refcount)) in batadv_orig_node_get_router()
87 router = NULL; in batadv_orig_node_get_router()
90 return router; in batadv_orig_node_get_router()
251 orig_node->router = NULL; in batadv_get_orig_node()
Dtranslation-table.c936 struct batadv_neigh_node *router = NULL; in batadv_transtable_best_orig() local
943 router = batadv_orig_node_get_router(orig_entry->orig_node); in batadv_transtable_best_orig()
944 if (!router) in batadv_transtable_best_orig()
947 if (router->tq_avg > best_tq) { in batadv_transtable_best_orig()
949 best_tq = router->tq_avg; in batadv_transtable_best_orig()
952 batadv_neigh_node_free_ref(router); in batadv_transtable_best_orig()
Dtypes.h139 struct batadv_neigh_node __rcu *router; /* rcu protected pointer */ member
/net/decnet/
DKconfig28 bool "DECnet: router support"
33 router. This is an experimental, but functional option. If you
Ddn_dev.c849 if (dn_db->router) { in dn_send_endnode_hello()
850 struct dn_neigh *dn = (struct dn_neigh *)dn_db->router; in dn_send_endnode_hello()
877 if (!dn_db->router) in dn_am_i_a_router()
898 struct dn_neigh *dn = (struct dn_neigh *)dn_db->router; in dn_send_router_hello()
1206 if (dn_db->router) in dn_dev_delete()
1207 neigh_release(dn_db->router); in dn_dev_delete()
1363 … dn_db->router ? dn_addr2asc(le16_to_cpu(*(__le16 *)dn_db->router->primary_key), router_buf) : "", in dn_dev_seq_show()
Ddn_neigh.c407 if (!dn_db->router) { in dn_neigh_router_hello()
408 dn_db->router = neigh_clone(neigh); in dn_neigh_router_hello()
410 if (msg->priority > ((struct dn_neigh *)dn_db->router)->priority) in dn_neigh_router_hello()
411 neigh_release(xchg(&dn_db->router, neigh_clone(neigh))); in dn_neigh_router_hello()
Ddn_route.c1118 neigh = neigh_clone(dn_db->router); in dn_route_output_slow()
1431 neigh = neigh_clone(dn_db->router); in dn_route_input_slow()
/net/ipv6/
DKconfig47 to pick an appropriate router, especially when the hosts
212 This driver is useful if the other endpoint is a Cisco router: Cisco
251 Normally, a multicast router runs a userspace daemon and decides
253 destination addresses. If you say Y here, the multicast router
Dndisc.c468 bool router, bool solicited, bool override, bool inc_opt) in ndisc_send_na() argument
506 .icmp6_router = router, in ndisc_send_na()
/net/ipv4/
DKconfig18 bool "IP: advanced router"
20 If you intend to run your Linux box mostly as a router, i.e. as a
29 Note that your box can only act as a router if you enable IP
70 Normally, a router decides what to do with a received packet based
72 the Linux router will also be able to take the packet's source
92 for those packets. The router considers all these paths to be of
204 This driver is useful if the other endpoint is a Cisco router: Cisco
222 This is used if you want your machine to act as a router for IP
236 Normally, a multicast router runs a userspace daemon and decides
238 destination addresses. If you say Y here, the multicast router
/net/ipx/
DKconfig22 IPX router, say Y here and fetch either lwared from
/net/ipv4/netfilter/
DKconfig240 router/server/switch.
/net/netfilter/
DKconfig773 firewall/router, but machines behind it can never exchange large
825 load-balancing router/server/switch. Basically, this match returns
/net/sched/
DKconfig31 (RSVP) on your Linux router if you also say Y to the corresponding