Macros | |
#define | NLE_SUCCESS 0 |
#define | NLE_FAILURE 1 |
#define | NLE_INTR 2 |
#define | NLE_BAD_SOCK 3 |
#define | NLE_AGAIN 4 |
#define | NLE_NOMEM 5 |
#define | NLE_EXIST 6 |
#define | NLE_INVAL 7 |
#define | NLE_RANGE 8 |
#define | NLE_MSGSIZE 9 |
#define | NLE_OPNOTSUPP 10 |
#define | NLE_AF_NOSUPPORT 11 |
#define | NLE_OBJ_NOTFOUND 12 |
#define | NLE_NOATTR 13 |
#define | NLE_MISSING_ATTR 14 |
#define | NLE_AF_MISMATCH 15 |
#define | NLE_SEQ_MISMATCH 16 |
#define | NLE_MSG_OVERFLOW 17 |
#define | NLE_MSG_TRUNC 18 |
#define | NLE_NOADDR 19 |
#define | NLE_SRCRT_NOSUPPORT 20 |
#define | NLE_MSG_TOOSHORT 21 |
#define | NLE_MSGTYPE_NOSUPPORT 22 |
#define | NLE_OBJ_MISMATCH 23 |
#define | NLE_NOCACHE 24 |
#define | NLE_BUSY 25 |
#define | NLE_PROTO_MISMATCH 26 |
#define | NLE_NOACCESS 27 |
#define | NLE_PERM 28 |
#define | NLE_LOOP 29 |
#define | NLE_MAX NLE_LOOP |
Functions | |
const char * | nl_geterror (int) |
Return error message for an error code. More... | |
void | nl_perror (int, const char *) |
Print a libnl error message. More... | |
int | nl_syserr2nlerr (int) |
#define NLE_AF_MISMATCH 15 |
Referenced by rtnl_route_set_dst(), rtnl_route_set_pref_src(), and rtnl_route_set_src().
#define NLE_AF_NOSUPPORT 11 |
Referenced by flnl_request_set_addr(), nl_addr_info(), nl_addr_parse(), nl_connect(), nl_syserr2nlerr(), and rtnl_route_set_family().
#define NLE_AGAIN 4 |
Referenced by nl_addr_info(), and nl_syserr2nlerr().
#define NLE_BAD_SOCK 3 |
#define NLE_BUSY 25 |
Referenced by nl_syserr2nlerr(), and rtnl_link_unregister_info().
#define NLE_EXIST 6 |
#define NLE_FAILURE 1 |
Referenced by nl_addr_info(), nl_geterror(), and nl_syserr2nlerr().
#define NLE_INTR 2 |
Referenced by nl_syserr2nlerr().
#define NLE_INVAL 7 |
Referenced by __nl_read_num_str_file(), genl_register(), main(), nfnl_nft_data_parse(), nfnl_nft_expr_parse(), nl_addr_fill_sockaddr(), nl_addr_info(), nl_addr_parse(), nl_cache_mngt_register(), nl_cli_ct_parse_family(), nl_prob2int(), nl_size2int(), nl_socket_add_memberships(), nl_socket_drop_memberships(), nl_str2msec(), nl_syserr2nlerr(), nlmsg_expand(), rtnl_ematch_parse(), rtnl_link_register_info(), rtnl_link_vlan_set_egress_map(), rtnl_link_vlan_set_ingress_map(), rtnl_netem_set_delay_distribution(), rtnl_route_parse(), rtnl_tc_calc_cell_log(), rtnl_tc_str2handle(), and rtnl_u32_add_key_uint16().
#define NLE_LOOP 29 |
Referenced by nl_syserr2nlerr().
#define NLE_MAX NLE_LOOP |
Referenced by nl_geterror().
#define NLE_MISSING_ATTR 14 |
Referenced by flnl_lookup_build_request(), netem_build_msg(), nfnl_log_build_delete_request(), nfnl_queue_build_delete_request(), rtnl_addr_build_add_request(), rtnl_addr_build_delete_request(), rtnl_ematch_parse(), rtnl_qdisc_prio_set_priomap(), rtnl_qdisc_tbf_set_limit_by_latency(), and rtnl_route_build_msg().
#define NLE_MSG_OVERFLOW 17 |
#define NLE_MSG_TOOSHORT 21 |
Referenced by genlmsg_parse(), genlmsg_validate(), nlmsg_parse(), and nlmsg_validate().
#define NLE_MSG_TRUNC 18 |
#define NLE_MSGSIZE 9 |
Referenced by flnl_lookup_build_request(), netem_build_msg(), nfnl_log_build_create_request(), nfnl_nft_data_put(), nfnl_nft_set_dump_request(), nfnl_nft_setelem_dump_request(), nfnl_queue_build_create_request(), nfnlmsg_put(), rtnl_class_build_delete_request(), rtnl_link_build_change_request(), rtnl_neightbl_build_change_request(), rtnl_qdisc_build_delete_request(), and rtnl_route_build_msg().
#define NLE_MSGTYPE_NOSUPPORT 22 |
Referenced by nl_cache_include(), and nl_msg_parse().
#define NLE_NOACCESS 27 |
Referenced by nl_syserr2nlerr().
#define NLE_NOADDR 19 |
Referenced by nl_addr_info(), nl_addr_parse(), nl_connect(), nl_recv(), and nl_syserr2nlerr().
#define NLE_NOATTR 13 |
Referenced by rtnl_class_dsmark_get_bitmask(), rtnl_class_dsmark_get_value(), rtnl_netem_get_corruption_correlation(), rtnl_netem_get_corruption_probability(), rtnl_netem_get_delay(), rtnl_netem_get_delay_correlation(), rtnl_netem_get_delay_distribution(), rtnl_netem_get_delay_distribution_size(), rtnl_netem_get_duplicate(), rtnl_netem_get_duplicate_correlation(), rtnl_netem_get_gap(), rtnl_netem_get_jitter(), rtnl_netem_get_limit(), rtnl_netem_get_loss(), rtnl_netem_get_loss_correlation(), rtnl_netem_get_reorder_correlation(), rtnl_netem_get_reorder_probability(), rtnl_qdisc_dsmark_get_default_index(), rtnl_qdisc_dsmark_get_indices(), rtnl_qdisc_dsmark_get_set_tc_index(), rtnl_qdisc_fifo_get_limit(), rtnl_qdisc_tbf_get_limit(), rtnl_qdisc_tbf_get_mpu(), rtnl_red_get_limit(), rtnl_rule_get_action(), rtnl_sfq_get_divisor(), rtnl_sfq_get_limit(), rtnl_sfq_get_perturb(), and rtnl_sfq_get_quantum().
#define NLE_NOCACHE 24 |
Referenced by nl_cache_alloc_name(), nl_cache_mngr_add(), and nl_cache_mngt_unregister().
#define NLE_NOMEM 5 |
Referenced by __cache_pickup(), flnl_lookup_build_request(), genl_family_add_op(), netem_build_msg(), nfnl_log_msg_set_payload(), nfnl_log_msg_set_prefix(), nfnl_nft_chain_alloc_cache(), nfnl_nft_chain_set_name(), nfnl_nft_chain_set_table(), nfnl_nft_data_parse(), nfnl_nft_expr_parse(), nfnl_nft_rule_alloc_cache(), nfnl_nft_rule_set_chain(), nfnl_nft_rule_set_table(), nfnl_nft_set_alloc_cache(), nfnl_nft_set_dump_request(), nfnl_nft_set_set_name(), nfnl_nft_set_set_table(), nfnl_nft_setelem_alloc_cache(), nfnl_nft_setelem_dump_request(), nfnl_nft_table_alloc_cache(), nfnl_nft_table_set_name(), nfnl_nft_verdict_set_chain(), nfnl_queue_msg_send_verdict(), nfnl_queue_msg_send_verdict_payload(), nfnl_queue_msg_set_payload(), nfnlmsg_ct_parse(), nfnlmsg_log_msg_parse(), nfnlmsg_nft_chain_parse(), nfnlmsg_nft_rule_parse(), nfnlmsg_nft_set_parse(), nfnlmsg_nft_table_parse(), nfnlmsg_queue_msg_parse(), nl_addr_info(), nl_addr_parse(), nl_cache_add(), nl_cache_alloc_and_fill(), nl_cache_alloc_name(), nl_cache_mngr_add(), nl_cache_mngr_alloc(), nl_data_append(), nl_object_alloc_name(), nl_send_simple(), nl_syserr2nlerr(), nl_wait_for_ack(), nla_put(), nlmsg_append(), nlmsg_expand(), rtnl_class_alloc_cache(), rtnl_class_build_delete_request(), rtnl_class_dsmark_set_bitmask(), rtnl_class_dsmark_set_value(), rtnl_cls_alloc_cache(), rtnl_ematch_parse(), rtnl_link_build_change_request(), rtnl_link_vlan_set_egress_map(), rtnl_neightbl_build_change_request(), rtnl_netem_set_corruption_correlation(), rtnl_netem_set_corruption_probability(), rtnl_netem_set_delay(), rtnl_netem_set_delay_correlation(), rtnl_netem_set_delay_distribution(), rtnl_netem_set_duplicate(), rtnl_netem_set_duplicate_correlation(), rtnl_netem_set_gap(), rtnl_netem_set_jitter(), rtnl_netem_set_limit(), rtnl_netem_set_loss(), rtnl_netem_set_loss_correlation(), rtnl_netem_set_reorder_correlation(), rtnl_netem_set_reorder_probability(), rtnl_qdisc_build_delete_request(), rtnl_qdisc_dsmark_set_default_index(), rtnl_qdisc_dsmark_set_indices(), rtnl_qdisc_dsmark_set_set_tc_index(), rtnl_qdisc_fifo_set_limit(), rtnl_qdisc_prio_get_bands(), rtnl_qdisc_prio_set_bands(), rtnl_qdisc_prio_set_priomap(), rtnl_qdisc_tbf_set_limit(), rtnl_qdisc_tbf_set_limit_by_latency(), rtnl_qdisc_tbf_set_mpu(), rtnl_qdisc_tbf_set_peakrate(), rtnl_qdisc_tbf_set_rate(), rtnl_red_set_limit(), rtnl_route_alloc_cache(), rtnl_route_parse(), rtnl_rule_alloc_cache(), rtnl_sfq_set_limit(), rtnl_sfq_set_perturb(), rtnl_sfq_set_quantum(), rtnl_u32_add_key(), and rtnl_u32_set_flags().
#define NLE_OBJ_MISMATCH 23 |
Referenced by nl_cache_add(), nl_cache_include(), and nl_cache_move().
#define NLE_OBJ_NOTFOUND 12 |
#define NLE_OPNOTSUPP 10 |
Referenced by nl_addr_info(), nl_cache_mngr_add(), nl_cache_request_full_dump(), nl_object_alloc_name(), nl_syserr2nlerr(), rtnl_link_set_info_type(), rtnl_link_unregister_info(), rtnl_link_vlan_get_flags(), rtnl_link_vlan_get_id(), rtnl_link_vlan_set_egress_map(), rtnl_link_vlan_set_flags(), rtnl_link_vlan_set_id(), rtnl_link_vlan_set_ingress_map(), and rtnl_link_vlan_unset_flags().
#define NLE_PERM 28 |
Referenced by nl_syserr2nlerr().
#define NLE_PROTO_MISMATCH 26 |
Referenced by genl_register(), nl_cache_mngr_add(), and nl_syserr2nlerr().
#define NLE_RANGE 8 |
Referenced by __nl_read_num_str_file(), nl_addr_set_binary_addr(), nl_cb_err(), nl_cb_set(), nl_prob2int(), nl_syserr2nlerr(), rtnl_addr_set_label(), rtnl_ematch_parse(), rtnl_qdisc_prio_set_priomap(), rtnl_route_get_metric(), rtnl_route_set_metric(), rtnl_route_set_type(), rtnl_route_unset_metric(), rtnl_rule_set_iif(), and rtnl_tc_str2handle().
#define NLE_SEQ_MISMATCH 16 |
#define NLE_SRCRT_NOSUPPORT 20 |
Referenced by rtnl_route_set_src().
#define NLE_SUCCESS 0 |
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 | ) |
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().