Routing Utility Functions. More...
Routing Table Identifier Translations | |
int | rtnl_route_read_table_names (const char *path) |
char * | rtnl_route_table2str (int table, char *buf, size_t size) |
int | rtnl_route_str2table (const char *name) |
Routing Protocol Translations | |
int | rtnl_route_read_protocol_names (const char *path) |
char * | rtnl_route_proto2str (int proto, char *buf, size_t size) |
int | rtnl_route_str2proto (const char *name) |
Routing Metrices Translations | |
char * | rtnl_route_metric2str (int metric, char *buf, size_t size) |
int | rtnl_route_str2metric (const char *name) |
Routing Utility Functions.
char* rtnl_route_metric2str | ( | int | metric, |
char * | buf, | ||
size_t | size | ||
) |
char* rtnl_route_proto2str | ( | int | proto, |
char * | buf, | ||
size_t | size | ||
) |
int rtnl_route_read_protocol_names | ( | const char * | path | ) |
References __nl_read_num_str_file(), and __trans_list_clear().
int rtnl_route_read_table_names | ( | const char * | path | ) |
References __nl_read_num_str_file(), and __trans_list_clear().
int rtnl_route_str2metric | ( | const char * | name | ) |
int rtnl_route_str2proto | ( | const char * | name | ) |
References __list_str2type().
Referenced by nl_cli_route_parse_protocol().
int rtnl_route_str2table | ( | const char * | name | ) |
References __list_str2type().
Referenced by nl_cli_route_parse_table().
char* rtnl_route_table2str | ( | int | table, |
char * | buf, | ||
size_t | size | ||
) |