Lines Matching refs:contents
150 void addTableName(uint32_t table, const std::string& name, std::string* contents) {
153 *contents += tableString;
154 *contents += " ";
155 *contents += name;
156 *contents += "\n";
161 std::string contents;
163 addTableName(RT_TABLE_LOCAL, ROUTE_TABLE_NAME_LOCAL, &contents);
164 addTableName(RT_TABLE_MAIN, ROUTE_TABLE_NAME_MAIN, &contents);
166 addTableName(ROUTE_TABLE_LOCAL_NETWORK, ROUTE_TABLE_NAME_LOCAL_NETWORK, &contents);
167 addTableName(ROUTE_TABLE_LEGACY_NETWORK, ROUTE_TABLE_NAME_LEGACY_NETWORK, &contents);
168 addTableName(ROUTE_TABLE_LEGACY_SYSTEM, ROUTE_TABLE_NAME_LEGACY_SYSTEM, &contents);
171 addTableName(entry.second, entry.first, &contents);
174 if (!WriteStringToFile(contents, RT_TABLES_PATH, RT_TABLES_MODE, AID_SYSTEM, AID_WIFI)) {