#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <math.h>
#include <time.h>
#include <stdarg.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <inttypes.h>
#include <assert.h>
#include <limits.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <linux/types.h>
#include <linux/if.h>
#include <linux/if_arp.h>
#include <linux/if_ether.h>
#include <linux/pkt_sched.h>
#include <linux/pkt_cls.h>
#include <linux/gen_stats.h>
#include <linux/ip_mp_alg.h>
#include <netlink/netlink.h>
#include <netlink/handlers.h>
#include <netlink/cache.h>
#include <netlink/route/tc.h>
#include <netlink/object-api.h>
#include <netlink/cache-api.h>
#include <netlink-types.h>
Data Structures | |
struct | trans_tbl |
struct | trans_list |
Macros | |
#define | SOL_NETLINK 270 |
#define | __ADD(id, name) { .i = id, .a = #name }, |
#define | NL_DEBUG 1 |
#define | NL_DBG(LVL, FMT, ARG...) |
#define | BUG() |
#define | ARRAY_SIZE(X) (sizeof(X) / sizeof((X)[0])) |
#define | offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) |
#define | __init __attribute__ ((constructor)) |
#define | __exit __attribute__ ((destructor)) |
#define | __deprecated __attribute__ ((deprecated)) |
#define | min(x, y) |
#define | max(x, y) |
#define | min_t(type, x, y) ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; }) |
#define | max_t(type, x, y) ({ type __x = (x); type __y = (y); __x > __y ? __x: __y; }) |
#define | GENL_FAMILY(id, name) |
Functions | |
int | __nl_read_num_str_file (const char *path, int(*cb)(long, const char *)) |
int | __trans_list_add (int, const char *, struct nl_list_head *) |
void | __trans_list_clear (struct nl_list_head *) |
char * | __type2str (int, char *, size_t, struct trans_tbl *, size_t) |
int | __str2type (const char *, struct trans_tbl *, size_t) |
char * | __list_type2str (int, char *, size_t, struct nl_list_head *) |
int | __list_str2type (const char *, struct nl_list_head *) |
char * | __flags2str (int, char *, size_t, struct trans_tbl *, size_t) |
int | __str2flags (const char *, struct trans_tbl *, size_t) |
void | dump_from_ops (struct nl_object *, struct nl_dump_params *) |
int | nl_cache_parse (struct nl_cache_ops *, struct sockaddr_nl *, struct nlmsghdr *, struct nl_parser_param *) |
#define __deprecated __attribute__ ((deprecated)) |
#define __exit __attribute__ ((destructor)) |
#define __init __attribute__ ((constructor)) |
#define ARRAY_SIZE | ( | X | ) | (sizeof(X) / sizeof((X)[0])) |
#define BUG | ( | ) |
Referenced by cmd_evaluate(), cmd_free(), datatype_print(), do_command(), erec_print(), genl_ctrl_search(), genl_ctrl_search_by_name(), netlink_gen_data(), nl_addr_destroy(), nl_cache_dump_filter(), nl_cache_foreach_filter(), nl_cache_mngr_alloc(), nl_cache_mngt_provide(), nl_cache_mngt_unprovide(), nl_cache_nitems_filter(), nl_cache_subset(), nl_cb_put(), nl_data_append(), nl_object_alloc(), nl_object_clone(), nl_object_put(), nl_socket_alloc_cb(), nlmsg_free(), nlmsg_put(), range_expr_value_high(), range_expr_value_low(), rtnl_class_build_delete_request(), rtnl_class_register(), rtnl_cls_data(), rtnl_cls_register(), rtnl_qdisc_build_delete_request(), rtnl_qdisc_register(), rtnl_route_parse(), and stmt_evaluate().
#define max | ( | x, | |
y | |||
) |
#define min | ( | x, | |
y | |||
) |
#define NL_DBG | ( | LVL, | |
FMT, | |||
ARG... | |||
) |
Referenced by __cache_pickup(), genlmsg_put(), nl_cache_alloc(), nl_cache_clear(), nl_cache_dump_filter(), nl_cache_free(), nl_cache_mark_all(), nl_cache_mngr_add(), nl_cache_mngr_alloc(), nl_cache_mngr_free(), nl_cache_mngr_poll(), nl_cache_mngt_register(), nl_cache_mngt_unregister(), nl_cache_move(), nl_cache_refill(), nl_cache_remove(), nl_cache_request_full_dump(), nl_cache_resync(), nl_object_alloc(), nl_object_free(), nl_object_get(), nl_object_put(), nl_recv(), nl_sendmsg(), nla_put(), nla_reserve(), nlmsg_alloc_simple(), nlmsg_append(), nlmsg_free(), nlmsg_get(), nlmsg_put(), nlmsg_reserve(), rtnl_link_register_info(), and rtnl_link_unregister_info().
#define NL_DEBUG 1 |
#define SOL_NETLINK 270 |
Referenced by nfnl_ct_status2str(), nfnl_log_flags2str(), nfnl_nft_set_flags2str(), nfnl_nft_setelem_flags2str(), rtnl_addr_flags2str(), rtnl_link_flags2str(), rtnl_link_vlan_flags2str(), rtnl_neigh_flags2str(), rtnl_neigh_state2str(), and rtnl_route_nh_flags2str().
int __list_str2type | ( | const char * | , |
struct nl_list_head * | |||
) |
Referenced by rtnl_route_str2proto(), and rtnl_route_str2table().
char* __list_type2str | ( | int | , |
char * | , | ||
size_t | , | ||
struct nl_list_head * | |||
) |
Referenced by rtnl_route_proto2str(), and rtnl_route_table2str().
Referenced by nfnl_ct_str2status(), nfnl_log_str2flags(), nfnl_nft_set_str2flags(), nfnl_nft_setelem_str2flags(), rtnl_addr_str2flags(), rtnl_link_str2flags(), rtnl_link_vlan_str2flags(), and rtnl_route_nh_str2flags().
Referenced by nfnl_ct_str2tcp_state(), nfnl_log_str2copy_mode(), nfnl_nft_cmp_str2op(), nfnl_nft_ct_str2key(), nfnl_nft_meta_str2key(), nfnl_nft_str2verdict(), nfnl_queue_str2copy_mode(), nfnl_str2inet_hook(), nfnl_str2verdict(), nl_str2af(), nl_str2ether_proto(), nl_str2llproto(), nl_str2nlfamily(), nl_str2nlmsgtype(), nl_str2ovl_strategy(), nl_str2police(), nl_str2rtntype(), rtnl_link_str2mode(), rtnl_link_str2operstate(), rtnl_link_str2stat(), rtnl_neigh_str2flag(), rtnl_neigh_str2state(), rtnl_route_str2metric(), rtnl_str2prio(), and rtnl_str2scope().
int __trans_list_add | ( | int | , |
const char * | , | ||
struct nl_list_head * | |||
) |
void __trans_list_clear | ( | struct nl_list_head * | ) |
Referenced by rtnl_route_read_protocol_names(), and rtnl_route_read_table_names().
Referenced by nfnl_ct_tcp_state2str(), nfnl_inet_hook2str(), nfnl_log_copy_mode2str(), nfnl_nft_cmp_op2str(), nfnl_nft_ct_key2str(), nfnl_nft_meta_key2str(), nfnl_nft_verdict2str(), nfnl_queue_copy_mode2str(), nfnl_verdict2str(), nl_af2str(), nl_ether_proto2str(), nl_llproto2str(), nl_nlfamily2str(), nl_nlmsgtype2str(), nl_ovl_strategy2str(), nl_police2str(), nl_rtntype2str(), rtnl_link_mode2str(), rtnl_link_operstate2str(), rtnl_link_stat2str(), rtnl_prio2str(), rtnl_route_metric2str(), and rtnl_scope2str().
void dump_from_ops | ( | struct nl_object * | , |
struct nl_dump_params * | |||
) |
Referenced by nl_cache_dump_filter(), and nl_object_dump().
int nl_cache_parse | ( | struct nl_cache_ops * | , |
struct sockaddr_nl * | , | ||
struct nlmsghdr * | , | ||
struct nl_parser_param * | |||
) |
Referenced by nl_cache_parse_and_add(), and nl_msg_parse().