Lines Matching full:route

36 #include "route.h"
107 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()
122 return route->mac_addr; in net_route_get_mac()
383 zassert_not_null(route_entry, "Route add failed"); in test_route_add()
396 "Route add again failed"); in test_route_update()
405 zassert_true(0, "Route del failed"); in test_route_del()
415 zassert_true(0, "Route del again failed"); in test_route_del_again()
425 zassert_not_null(nexthop, "Route get nexthop failed"); in test_route_get_nexthop()
428 "Route nexthop does not match"); in test_route_get_nexthop()
437 "Route lookup failed"); in test_route_lookup_ok()
446 "Route lookup failed for peer address"); in test_route_lookup_fail()
455 zassert_false((ret <= 0), "Route del nexthop failed"); in test_route_del_nexthop()
464 zassert_false((ret >= 0), "Route del again nexthop failed"); in test_route_del_nexthop_again()
472 DBG("Adding route %d addr %s\n", i + 1, in test_route_add_many()
479 zassert_not_null(test_routes[i], "Route add failed"); in test_route_add_many()
488 DBG("Deleting route %d addr %s\n", i + 1, in test_route_del_many()
491 " Route del failed"); in test_route_del_many()
503 zassert_not_null(route_entry, "Route add failed"); in test_route_lifetime()
506 zassert_not_null(route_entry, "Route not found"); in test_route_lifetime()
513 zassert_is_null(route_entry, "Route did not expire"); in test_route_lifetime()
526 zassert_not_null(route_entry, "Route add failed"); in test_route_preference()
534 "Route add again failed"); in test_route_preference()
542 "Low preference route overwritten medium one"); in test_route_preference()