netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
errno.h File Reference

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)
 

Macro Definition Documentation

#define NLE_AF_MISMATCH   15
#define NLE_AGAIN   4

Referenced by nl_addr_info(), and nl_syserr2nlerr().

#define NLE_BUSY   25
#define NLE_FAILURE   1
#define NLE_INTR   2

Referenced by nl_syserr2nlerr().

#define NLE_LOOP   29

Referenced by nl_syserr2nlerr().

#define NLE_MAX   NLE_LOOP

Referenced by nl_geterror().

#define NLE_MSG_OVERFLOW   17
#define NLE_MSG_TOOSHORT   21
#define NLE_MSG_TRUNC   18
#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
#define NLE_NOCACHE   24
#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
#define NLE_PERM   28

Referenced by nl_syserr2nlerr().

#define NLE_PROTO_MISMATCH   26
#define NLE_SEQ_MISMATCH   16
#define NLE_SRCRT_NOSUPPORT   20

Referenced by rtnl_route_set_src().

#define NLE_SUCCESS   0

Function Documentation

void nl_perror ( int  error,
const char *  s 
)

Print a libnl error message.

  • s error message prefix

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().

Here is the call graph for this function: