Home
last modified time | relevance | path

Searched refs:route (Results 1 – 25 of 47) sorted by relevance

12

/Zephyr-latest/subsys/net/ip/
Droute.c128 struct net_nbr *net_route_get_nbr(struct net_route_entry *route) in net_route_get_nbr() argument
133 NET_ASSERT(route); in net_route_get_nbr()
144 if (nbr->data == (uint8_t *)route) { in net_route_get_nbr()
250 #define net_route_info(str, route, dst) \ argument
253 struct in6_addr *naddr = net_route_get_nexthop(route); \
260 route->iface); \
264 static inline void update_route_access(struct net_route_entry *route) in update_route_access() argument
266 sys_slist_find_and_remove(&routes, &route->node); in update_route_access()
267 sys_slist_prepend(&routes, &route->node); in update_route_access()
273 struct net_route_entry *route, *found = NULL; in net_route_lookup() local
[all …]
Droute.h149 void net_route_update_lifetime(struct net_route_entry *route, uint32_t lifetime);
170 struct net_nbr *net_route_get_nbr(struct net_route_entry *route);
263 bool net_route_mcast_del(struct net_route_entry_mcast *route);
308 struct net_route_entry **route,
Dipv6.c288 struct net_route_entry *route; in add_route() local
290 route = net_route_lookup(iface, addr); in add_route()
291 if (route) { in add_route()
292 return route; in add_route()
295 route = net_route_add(iface, addr, prefix_len, addr, in add_route()
299 NET_DBG("%s route to %s/%d iface %p", route ? "Add" : "Cannot add", in add_route()
302 return route; in add_route()
319 struct net_route_entry *route; in ipv6_route_packet() local
326 &route, &nexthop); in ipv6_route_packet()
330 &route, &nexthop); in ipv6_route_packet()
[all …]
DCMakeLists.txt46 zephyr_library_sources_ifdef(CONFIG_NET_ROUTE route.c)
Dipv6_nbr.c744 struct net_route_entry *route; in check_route() local
747 route = net_route_lookup(iface, dst); in check_route()
748 if (route) { in check_route()
749 nexthop = net_route_get_nexthop(route); in check_route()
752 route, in check_route()
758 net_route_del(route); in check_route()
2429 struct net_route_entry *route; in handle_ra_route_info() local
2459 route = net_route_lookup(net_pkt_orig_iface(pkt), &prefix_buf); in handle_ra_route_info()
2460 if (route != NULL) { in handle_ra_route_info()
2461 ret = net_route_del(route); in handle_ra_route_info()
[all …]
/Zephyr-latest/samples/net/vlan/
Dvlan-setup-linux.sh53 ip -6 route add ${PREFIX_1_IPV6}::/${PREFIXLEN_1_IPV6} \
57 ip -6 route add ${PREFIX_2_IPV6}::/${PREFIXLEN_2_IPV6} \
61 ip route add ${PREFIX_1_IPV4}/${PREFIXLEN_1_IPV4} dev ${VLAN_NAME_PREFIX}.100
64 ip route add ${PREFIX_2_IPV4}/${PREFIXLEN_2_IPV4} dev ${VLAN_NAME_PREFIX}.200
/Zephyr-latest/subsys/net/lib/shell/
Droute.c118 struct net_route_entry *route; in cmd_net_ip6_route_add() local
149 route = net_route_add(iface, &prefix, NET_IPV6_DEFAULT_PREFIX_LEN, in cmd_net_ip6_route_add()
152 if (route == NULL) { in cmd_net_ip6_route_add()
170 struct net_route_entry *route; in cmd_net_ip6_route_del() local
193 route = net_route_lookup(iface, &prefix); in cmd_net_ip6_route_del()
194 if (route) { in cmd_net_ip6_route_del()
195 net_route_del(route); in cmd_net_ip6_route_del()
245 SHELL_SUBCMD_ADD((net), route, &net_cmd_route,
Dping.c323 struct net_route_entry *route; in ping_select_iface() local
338 route = net_route_lookup(NULL, &net_sin6(target)->sin6_addr); in ping_select_iface()
339 if (route) { in ping_select_iface()
340 iface = route->iface; in ping_select_iface()
DCMakeLists.txt30 zephyr_library_sources_ifdef(CONFIG_NET_SHELL_ROUTE_SUPPORTED route.c)
/Zephyr-latest/drivers/sensor/nxp/fxos8700/
DKconfig70 Say Y to route data ready interrupt to INT1 pin. Say N to route to
95 Say Y to route pulse interrupt to INT1 pin. Say N to route to INT2 pin.
108 Say Y to route motion interrupt to INT1 pin. Say N to route to INT2 pin.
120 Say Y to route magnetic vector-magnitude interrupt to INT1 pin.
121 Say N to route to INT2 pin.
/Zephyr-latest/tests/net/route/src/
Dmain.c107 struct net_route_test *route = dev->data; in net_route_get_mac() local
109 if (route->mac_addr[2] == 0x00) { in net_route_get_mac()
111 route->mac_addr[0] = 0x00; in net_route_get_mac()
112 route->mac_addr[1] = 0x00; in net_route_get_mac()
113 route->mac_addr[2] = 0x5E; in net_route_get_mac()
114 route->mac_addr[3] = 0x00; in net_route_get_mac()
115 route->mac_addr[4] = 0x53; in net_route_get_mac()
116 route->mac_addr[5] = sys_rand8_get(); in net_route_get_mac()
119 route->ll_addr.addr = route->mac_addr; in net_route_get_mac()
120 route->ll_addr.len = 6U; in net_route_get_mac()
[all …]
/Zephyr-latest/include/zephyr/dt-bindings/pinctrl/
Dsilabs-pinctrl-dbus.h32 #define SILABS_DBUS(port, pin, periph_base, en_present, en_bit, route) \ argument
38 FIELD_PREP(SILABS_PINCTRL_ROUTE_MASK, route))
/Zephyr-latest/tests/net/route_mcast/src/
Dmain.c404 struct net_route_entry_mcast *route = in test_route_mcast_lookup() local
407 zassert_equal_ptr(test_mcast_routes[0], route, in test_route_mcast_lookup()
410 route = net_route_mcast_lookup(&mcast_prefix_site_local); in test_route_mcast_lookup()
412 zassert_equal_ptr(test_mcast_routes[1], route, in test_route_mcast_lookup()
415 route = net_route_mcast_lookup(&mcast_prefix_global); in test_route_mcast_lookup()
417 zassert_equal_ptr(test_mcast_routes[3], route, in test_route_mcast_lookup()
422 struct net_route_entry_mcast *route; in test_route_mcast_route_del() local
427 route = net_route_mcast_lookup(&mcast_prefix_admin); in test_route_mcast_route_del()
428 zassert_is_null(route, "lookup found deleted route"); in test_route_mcast_route_del()
433 route = net_route_mcast_lookup(&mcast_prefix_site_local); in test_route_mcast_route_del()
[all …]
/Zephyr-latest/drivers/sensor/st/lis2ds12/
Dlis2ds12_trigger.c98 lis2ds12_pin_int1_route_t route; in lis2ds12_init_interrupt() local
108 err = lis2ds12_pin_int1_route_get(ctx, &route); in lis2ds12_init_interrupt()
113 route.int1_drdy = 1; in lis2ds12_init_interrupt()
115 err = lis2ds12_pin_int1_route_set(ctx, route); in lis2ds12_init_interrupt()
/Zephyr-latest/drivers/sensor/st/lis2dux12/
Dlis2dux12_api.c134 lis2dux12_pin_int_route_t route; in st_lis2dux12_init_interrupt() local
144 err = lis2dux12_pin_int1_route_get(ctx, &route); in st_lis2dux12_init_interrupt()
149 route.drdy = 1; in st_lis2dux12_init_interrupt()
151 err = lis2dux12_pin_int1_route_set(ctx, &route); in st_lis2dux12_init_interrupt()
Dlis2duxs12_api.c134 lis2duxs12_pin_int_route_t route; in st_lis2duxs12_init_interrupt() local
144 err = lis2duxs12_pin_int1_route_get(ctx, &route); in st_lis2duxs12_init_interrupt()
149 route.drdy = 1; in st_lis2duxs12_init_interrupt()
151 err = lis2duxs12_pin_int1_route_set(ctx, &route); in st_lis2duxs12_init_interrupt()
/Zephyr-latest/drivers/sensor/nxp/fxls8974/
DKconfig44 Say Y to route data ready interrupt to INT1 pin. Say N to route to
/Zephyr-latest/tests/net/route/
DCMakeLists.txt5 project(route) project
/Zephyr-latest/drivers/sensor/st/iis3dhhc/
DKconfig70 Say Y to route data ready interrupt to INT1 pin. Say N to route to
/Zephyr-latest/doc/connectivity/networking/
Dnetworking_with_multiple_instances.rst13 to route network traffic between these systems.
67 ip -6 route add $IPV6_ROUTE_1 dev $INTERFACE
69 ip route add $IPV4_ROUTE_1 dev $INTERFACE > /dev/null 2>&1
86 ip -6 route add $IPV6_ROUTE_1 dev $INTERFACE
88 ip route add $IPV4_ROUTE_1 dev $INTERFACE > /dev/null 2>&1
Dusbnet_setup.rst81 # ip route add 192.0.2.0/24 dev enx00005e005301
90 # ip -6 route add 2001:db8::/64 dev enx00005e005301
/Zephyr-latest/drivers/sensor/nxp/fxas21002/
DKconfig80 Say Y to route data ready interrupt to INT1 pin. Say N to route to
/Zephyr-latest/samples/boards/nxp/s32/netc/
DREADME.rst103 route -A inet6 add default dev enp1s0
111 netsh interface ipv6 add route ::/0 "Ethernet" ::
/Zephyr-latest/doc/connectivity/networking/api/
Dnet_shell.rst39 "net route", "Show IPv6 network routes. Only available if
/Zephyr-latest/tests/net/ipv6/src/
Dmain.c892 struct net_route_entry *route; in ra_message() local
920 route = net_route_lookup(TEST_NET_IF, &route_prefix); in ra_message()
921 zassert_not_null(route, "Route not found"); in ra_message()
922 zassert_equal(route->prefix_len, 48, "Wrong prefix length set"); in ra_message()
923 zassert_mem_equal(&route->addr, &route_prefix, sizeof(route_prefix), in ra_message()
925 zassert_true(route->is_infinite, "Wrong lifetime set"); in ra_message()
926 zassert_equal(route->preference, NET_ROUTE_PREFERENCE_HIGH, in ra_message()

12