Lines Matching defs:route
33 #include "route.h"
48 const std::string CONFIG_KEY_ETH_ROUTE = "route";
172 std::string route = cJSON_GetObjectItem(jsonData, CONFIG_KEY_ETH_ROUTE.c_str())->valuestring;
177 StaticConfiguration::ExtractNetAddrBySeparator(route, config->ipStatic_.routeList_);
278 INetAddr route;
280 route.address_ = dhcpResult.route1;
281 route.prefixlen_ = ipAddr.prefixlen_;
283 route.address_ = dhcpResult.route2;
284 route.prefixlen_ = ipAddr.prefixlen_;
286 route.address_ = (ipAddr.family_ == AF_INET6) ? DEFAULT_IPV6_ADDR : DEFAULT_IPV4_ADDR;
287 route.prefixlen_ = 0;
289 route.family_ = static_cast<uint8_t>(CommonUtils::GetAddrFamily(route.address_));
290 config->routeList_.push_back(route);
313 for (const auto &route : routeList) {
314 temp.emplace(route.gateway_.address_, route.gateway_);
349 for (const auto &route : devLinkInfo->routeList_) {
350 cfg->ipStatic_.routeList_.push_back(route.destination_);
612 for (auto &route : cfg->ipStatic_.routeList_) {
613 if (maskFamily != CommonUtils::GetAddrFamily(route.address_)) {
616 route.prefixlen_ = (maskFamily == AF_INET6) ? static_cast<uint32_t>(CommonUtils::Ipv6PrefixLen(routeMask))