|
Functions | |
| int | rtnl_route_nh_compare (struct rtnl_nexthop *a, struct rtnl_nexthop *b, uint32_t attrs, int loose) |
| void | rtnl_route_nh_dump (struct rtnl_nexthop *nh, struct nl_dump_params *dp) |
Allocation/Freeing | |
| struct rtnl_nexthop * | rtnl_route_nh_alloc (void) |
| struct rtnl_nexthop * | rtnl_route_nh_clone (struct rtnl_nexthop *src) |
| void | rtnl_route_nh_free (struct rtnl_nexthop *nh) |
Attributes | |
| void | rtnl_route_nh_set_weight (struct rtnl_nexthop *nh, uint8_t weight) |
| uint8_t | rtnl_route_nh_get_weight (struct rtnl_nexthop *nh) |
| void | rtnl_route_nh_set_ifindex (struct rtnl_nexthop *nh, int ifindex) |
| int | rtnl_route_nh_get_ifindex (struct rtnl_nexthop *nh) |
| void | rtnl_route_nh_set_gateway (struct rtnl_nexthop *nh, struct nl_addr *addr) |
| struct nl_addr * | rtnl_route_nh_get_gateway (struct rtnl_nexthop *nh) |
| void | rtnl_route_nh_set_flags (struct rtnl_nexthop *nh, unsigned int flags) |
| void | rtnl_route_nh_unset_flags (struct rtnl_nexthop *nh, unsigned int flags) |
| unsigned int | rtnl_route_nh_get_flags (struct rtnl_nexthop *nh) |
| void | rtnl_route_nh_set_realms (struct rtnl_nexthop *nh, uint32_t realms) |
| uint32_t | rtnl_route_nh_get_realms (struct rtnl_nexthop *nh) |
Nexthop Flags Translations | |
| char * | rtnl_route_nh_flags2str (int flags, char *buf, size_t len) |
| int | rtnl_route_nh_str2flags (const char *name) |
| struct rtnl_nexthop* rtnl_route_nh_alloc | ( | void | ) |
References nl_init_list_head, NULL, and rtnl_nexthop::rtnh_list.
Referenced by nl_cli_route_parse_nexthop(), rtnl_route_nh_clone(), and rtnl_route_parse().

| struct rtnl_nexthop* rtnl_route_nh_clone | ( | struct rtnl_nexthop * | src | ) |
References rtnl_nexthop::ce_mask, nl_addr_clone(), NULL, rtnl_nexthop::rtnh_flag_mask, rtnl_nexthop::rtnh_flags, rtnl_nexthop::rtnh_gateway, rtnl_nexthop::rtnh_ifindex, rtnl_nexthop::rtnh_weight, and rtnl_route_nh_alloc().

| int rtnl_route_nh_compare | ( | struct rtnl_nexthop * | a, |
| struct rtnl_nexthop * | b, | ||
| uint32_t | attrs, | ||
| int | loose | ||
| ) |
References FLAGS, NH_DIFF, nl_addr_cmp(), rtnl_nexthop::rtnh_flag_mask, rtnl_nexthop::rtnh_flags, rtnl_nexthop::rtnh_gateway, rtnl_nexthop::rtnh_ifindex, rtnl_nexthop::rtnh_realms, and rtnl_nexthop::rtnh_weight.
Referenced by rtnl_route_parse().


| void rtnl_route_nh_dump | ( | struct rtnl_nexthop * | nh, |
| struct nl_dump_params * | dp | ||
| ) |
| char* rtnl_route_nh_flags2str | ( | int | flags, |
| char * | buf, | ||
| size_t | len | ||
| ) |
| void rtnl_route_nh_free | ( | struct rtnl_nexthop * | nh | ) |
References nl_addr_put(), and rtnl_nexthop::rtnh_gateway.
Referenced by rtnl_route_parse().


| unsigned int rtnl_route_nh_get_flags | ( | struct rtnl_nexthop * | nh | ) |
References rtnl_nexthop::rtnh_flags.
| struct nl_addr* rtnl_route_nh_get_gateway | ( | struct rtnl_nexthop * | nh | ) |
References rtnl_nexthop::rtnh_gateway.
| int rtnl_route_nh_get_ifindex | ( | struct rtnl_nexthop * | nh | ) |
References rtnl_nexthop::rtnh_ifindex.
| uint32_t rtnl_route_nh_get_realms | ( | struct rtnl_nexthop * | nh | ) |
References rtnl_nexthop::rtnh_realms.
| uint8_t rtnl_route_nh_get_weight | ( | struct rtnl_nexthop * | nh | ) |
References rtnl_nexthop::rtnh_weight.
| void rtnl_route_nh_set_flags | ( | struct rtnl_nexthop * | nh, |
| unsigned int | flags | ||
| ) |
References rtnl_nexthop::ce_mask, flags, rtnl_nexthop::rtnh_flag_mask, and rtnl_nexthop::rtnh_flags.
| void rtnl_route_nh_set_gateway | ( | struct rtnl_nexthop * | nh, |
| struct nl_addr * | addr | ||
| ) |
References rtnl_nexthop::ce_mask, nl_addr_get(), nl_addr_put(), NULL, and rtnl_nexthop::rtnh_gateway.
Referenced by nl_cli_route_parse_nexthop(), and rtnl_route_parse().


| void rtnl_route_nh_set_ifindex | ( | struct rtnl_nexthop * | nh, |
| int | ifindex | ||
| ) |
References rtnl_nexthop::ce_mask, and rtnl_nexthop::rtnh_ifindex.
Referenced by nl_cli_route_parse_nexthop(), and rtnl_route_parse().

| void rtnl_route_nh_set_realms | ( | struct rtnl_nexthop * | nh, |
| uint32_t | realms | ||
| ) |
References rtnl_nexthop::ce_mask, and rtnl_nexthop::rtnh_realms.
Referenced by rtnl_route_parse().

| void rtnl_route_nh_set_weight | ( | struct rtnl_nexthop * | nh, |
| uint8_t | weight | ||
| ) |
References rtnl_nexthop::ce_mask, and rtnl_nexthop::rtnh_weight.
Referenced by nl_cli_route_parse_nexthop().

| int rtnl_route_nh_str2flags | ( | const char * | name | ) |
| void rtnl_route_nh_unset_flags | ( | struct rtnl_nexthop * | nh, |
| unsigned int | flags | ||
| ) |
References rtnl_nexthop::ce_mask, flags, rtnl_nexthop::rtnh_flag_mask, and rtnl_nexthop::rtnh_flags.