Lines Matching refs:routes

54                 _cleanup_free_ struct sd_dhcp_route *routes = NULL;  in test_deserialize_dhcp_routes()  local
55 assert_se(deserialize_dhcp_routes(&routes, &size, "") >= 0); in test_deserialize_dhcp_routes()
61 _cleanup_free_ struct sd_dhcp_route *routes = NULL; in test_deserialize_dhcp_routes() local
64 assert_se(deserialize_dhcp_routes(&routes, &size, routes_string) >= 0); in test_deserialize_dhcp_routes()
67 assert_se(routes[0].dst_addr.s_addr == inet_addr("192.168.0.0")); in test_deserialize_dhcp_routes()
68 assert_se(routes[0].gw_addr.s_addr == inet_addr("192.168.0.1")); in test_deserialize_dhcp_routes()
69 assert_se(routes[0].dst_prefixlen == 16); in test_deserialize_dhcp_routes()
71 assert_se(routes[1].dst_addr.s_addr == inet_addr("10.1.2.0")); in test_deserialize_dhcp_routes()
72 assert_se(routes[1].gw_addr.s_addr == inet_addr("10.1.2.1")); in test_deserialize_dhcp_routes()
73 assert_se(routes[1].dst_prefixlen == 24); in test_deserialize_dhcp_routes()
75 assert_se(routes[2].dst_addr.s_addr == inet_addr("0.0.0.0")); in test_deserialize_dhcp_routes()
76 assert_se(routes[2].gw_addr.s_addr == inet_addr("10.0.1.1")); in test_deserialize_dhcp_routes()
77 assert_se(routes[2].dst_prefixlen == 0); in test_deserialize_dhcp_routes()
82 _cleanup_free_ struct sd_dhcp_route *routes = NULL; in test_deserialize_dhcp_routes() local
85 assert_se(deserialize_dhcp_routes(&routes, &size, routes_string) >= 0); in test_deserialize_dhcp_routes()
88 assert_se(routes[0].dst_addr.s_addr == inet_addr("192.168.0.0")); in test_deserialize_dhcp_routes()
89 assert_se(routes[0].gw_addr.s_addr == inet_addr("192.168.0.1")); in test_deserialize_dhcp_routes()
90 assert_se(routes[0].dst_prefixlen == 16); in test_deserialize_dhcp_routes()
92 assert_se(routes[1].dst_addr.s_addr == inet_addr("0.0.0.0")); in test_deserialize_dhcp_routes()
93 assert_se(routes[1].gw_addr.s_addr == inet_addr("10.0.1.1")); in test_deserialize_dhcp_routes()
94 assert_se(routes[1].dst_prefixlen == 0); in test_deserialize_dhcp_routes()
99 _cleanup_free_ struct sd_dhcp_route *routes = NULL; in test_deserialize_dhcp_routes() local
102 assert_se(deserialize_dhcp_routes(&routes, &size, routes_string) >= 0); in test_deserialize_dhcp_routes()