Functions | |
const char * | nl_geterror (int error) |
Return error message for an error code. More... | |
void | nl_perror (int error, const char *s) |
Print a libnl error message. More... | |
int | nl_syserr2nlerr (int error) |
const char* nl_geterror | ( | int | error | ) |
Return error message for an error code.
References error, NLE_FAILURE, and NLE_MAX.
Referenced by __cache_pickup(), main(), nl_cli_addr_parse(), nl_cli_addr_parse_broadcast(), nl_cli_addr_parse_label(), nl_cli_addr_parse_local(), nl_cli_addr_parse_peer(), nl_cli_alloc_cache(), nl_cli_connect(), nl_cli_ct_parse_dst(), nl_cli_ct_parse_family(), nl_cli_ct_parse_protocol(), nl_cli_ct_parse_src(), nl_cli_ct_parse_status(), nl_cli_ct_parse_tcp_state(), nl_cli_neigh_parse_dst(), nl_cli_qdisc_parse_handle(), nl_cli_qdisc_parse_parent(), nl_cli_route_alloc_cache(), nl_cli_route_parse_dst(), nl_cli_route_parse_metric(), nl_cli_route_parse_pref_src(), nl_cli_route_parse_src(), nl_cli_route_parse_type(), nl_cli_rule_alloc_cache(), nl_perror(), parse_handle(), parse_parent(), and parse_proto().
void nl_perror | ( | int | error, |
const char * | s | ||
) |
Print a libnl error message.
Prints the error message of the call that failed last.
If s is not NULL and *s is not a null byte the argument string is printed, followed by a colon and a blank. Then the error message and a new-line.
References nl_geterror().
int nl_syserr2nlerr | ( | int | error | ) |
References NLE_AF_NOSUPPORT, NLE_AGAIN, NLE_BAD_SOCK, NLE_BUSY, NLE_EXIST, NLE_FAILURE, NLE_INTR, NLE_INVAL, NLE_LOOP, NLE_NOACCESS, NLE_NOADDR, NLE_NOMEM, NLE_OBJ_NOTFOUND, NLE_OPNOTSUPP, NLE_PERM, NLE_PROTO_MISMATCH, and NLE_RANGE.
Referenced by __nl_read_num_str_file(), nl_addr_resolve(), nl_cache_mngr_poll(), nl_connect(), nl_recv(), nl_sendmsg(), nl_sendto(), nl_socket_add_memberships(), nl_socket_drop_memberships(), nl_socket_recv_pktinfo(), nl_socket_set_buffer_size(), nl_socket_set_nonblocking(), nl_socket_set_passcred(), and rtnl_netem_set_delay_distribution().