Home
last modified time | relevance | path

Searched defs:nlh (Results 1 – 25 of 408) sorted by relevance

12345678910>>...17

/aosp_15_r20/external/libnetfilter_conntrack/src/conntrack/
H A Dbuild_mnl.c17 nfct_build_tuple_ip(struct nlmsghdr *nlh, const struct __nfct_tuple *t) in nfct_build_tuple_ip()
45 nfct_build_tuple_proto(struct nlmsghdr *nlh, const struct __nfct_tuple *t) in nfct_build_tuple_proto()
84 nfct_build_tuple_raw(struct nlmsghdr *nlh, const struct __nfct_tuple *t) in nfct_build_tuple_raw()
95 nfct_build_tuple(struct nlmsghdr *nlh, const struct __nfct_tuple *t, int type) in nfct_build_tuple()
114 nfct_build_protoinfo(struct nlmsghdr *nlh, const struct nf_conntrack *ct) in nfct_build_protoinfo()
219 nfct_nat_seq_adj(struct nlmsghdr *nlh, const struct nf_conntrack *ct, int dir) in nfct_nat_seq_adj()
231 nfct_build_nat_seq_adj(struct nlmsghdr *nlh, const struct nf_conntrack *ct, in nfct_build_nat_seq_adj()
246 nfct_build_protonat(struct nlmsghdr *nlh, const struct nf_conntrack *ct, in nfct_build_protonat()
267 nfct_build_nat(struct nlmsghdr *nlh, const struct __nfct_nat *nat, in nfct_build_nat()
285 nfct_build_snat(struct nlmsghdr *nlh, const struct nf_conntrack *ct, in nfct_build_snat()
[all …]
/aosp_15_r20/external/ethtool/libmnl/src/
H A Dattr.c273 EXPORT_SYMBOL int mnl_attr_parse(const struct nlmsghdr *nlh, in mnl_attr_parse()
413 EXPORT_SYMBOL void mnl_attr_put(struct nlmsghdr *nlh, uint16_t type, in mnl_attr_put()
439 EXPORT_SYMBOL void mnl_attr_put_u8(struct nlmsghdr *nlh, uint16_t type, in mnl_attr_put_u8()
454 EXPORT_SYMBOL void mnl_attr_put_u16(struct nlmsghdr *nlh, uint16_t type, in mnl_attr_put_u16()
469 EXPORT_SYMBOL void mnl_attr_put_u32(struct nlmsghdr *nlh, uint16_t type, in mnl_attr_put_u32()
484 EXPORT_SYMBOL void mnl_attr_put_u64(struct nlmsghdr *nlh, uint16_t type, in mnl_attr_put_u64()
499 EXPORT_SYMBOL void mnl_attr_put_str(struct nlmsghdr *nlh, uint16_t type, in mnl_attr_put_str()
517 EXPORT_SYMBOL void mnl_attr_put_strz(struct nlmsghdr *nlh, uint16_t type, in mnl_attr_put_strz()
533 EXPORT_SYMBOL struct nlattr *mnl_attr_nest_start(struct nlmsghdr *nlh, in mnl_attr_nest_start()
560 EXPORT_SYMBOL bool mnl_attr_put_check(struct nlmsghdr *nlh, size_t buflen, in mnl_attr_put_check()
[all …]
H A Dnlmsg.c67 EXPORT_SYMBOL size_t mnl_nlmsg_get_payload_len(const struct nlmsghdr *nlh) in mnl_nlmsg_get_payload_len()
84 struct nlmsghdr *nlh = buf; in mnl_nlmsg_put_header() local
102 EXPORT_SYMBOL void *mnl_nlmsg_put_extra_header(struct nlmsghdr *nlh, in mnl_nlmsg_put_extra_header()
118 EXPORT_SYMBOL void *mnl_nlmsg_get_payload(const struct nlmsghdr *nlh) in mnl_nlmsg_get_payload()
131 EXPORT_SYMBOL void *mnl_nlmsg_get_payload_offset(const struct nlmsghdr *nlh, in mnl_nlmsg_get_payload_offset()
153 EXPORT_SYMBOL bool mnl_nlmsg_ok(const struct nlmsghdr *nlh, int len) in mnl_nlmsg_ok()
173 EXPORT_SYMBOL struct nlmsghdr *mnl_nlmsg_next(const struct nlmsghdr *nlh, in mnl_nlmsg_next()
188 EXPORT_SYMBOL void *mnl_nlmsg_get_payload_tail(const struct nlmsghdr *nlh) in mnl_nlmsg_get_payload_tail()
207 EXPORT_SYMBOL bool mnl_nlmsg_seq_ok(const struct nlmsghdr *nlh, in mnl_nlmsg_seq_ok()
227 EXPORT_SYMBOL bool mnl_nlmsg_portid_ok(const struct nlmsghdr *nlh, in mnl_nlmsg_portid_ok()
[all …]
/aosp_15_r20/external/iproute2/tipc/
H A Dlink.c27 static int link_list_cb(const struct nlmsghdr *nlh, void *data) in link_list_cb()
51 static int cmd_link_list(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_link_list()
70 static int link_get_cb(const struct nlmsghdr *nlh, void *data) in link_get_cb()
95 static int cmd_link_get_prop(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_link_get_prop()
149 static int cmd_link_get(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_link_get()
167 static int cmd_link_stat_reset(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_link_stat_reset()
321 static int link_stat_show_cb(const struct nlmsghdr *nlh, void *data) in link_stat_show_cb()
365 static int cmd_link_stat_show(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_link_stat_show()
406 static int cmd_link_stat(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_link_stat()
428 static int cmd_link_set_prop(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_link_set_prop()
[all …]
H A Dbearer.c36 struct nlmsghdr *nlh; member
83 static int get_netid_cb(const struct nlmsghdr *nlh, void *data) in get_netid_cb()
105 struct nlmsghdr *nlh; in generate_multicast() local
123 static int nl_add_udp_enable_opts(struct nlmsghdr *nlh, struct opt *opts, in nl_add_udp_enable_opts()
197 static int nl_add_bearer_name(struct nlmsghdr *nlh, const struct cmd *cmd, in nl_add_bearer_name()
266 static int udp_bearer_add(struct nlmsghdr *nlh, struct opt *opts, in udp_bearer_add()
306 static int cmd_bearer_add_media(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_bearer_add_media()
366 static int cmd_bearer_add(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_bearer_add()
388 static int cmd_bearer_enable(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_bearer_enable()
471 static int cmd_bearer_disable(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_bearer_disable()
[all …]
H A Dnode.c27 static int node_list_cb(const struct nlmsghdr *nlh, void *data) in node_list_cb()
56 static int cmd_node_list(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_node_list()
74 static int cmd_node_set_addr(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_node_set_addr()
105 static int cmd_node_get_addr(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_node_get_addr()
134 static int netid_get_cb(const struct nlmsghdr *nlh, void *data) in netid_get_cb()
153 static int cmd_node_get_netid(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_node_get_netid()
171 static int cmd_node_set_netid(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_node_set_netid()
212 static int cmd_node_set(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_node_set()
234 static int cmd_node_get(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_node_get()
257 int cmd_node(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, in cmd_node()
H A Dmedia.c26 static int media_list_cb(const struct nlmsghdr *nlh, void *data) in media_list_cb()
45 static int cmd_media_list(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_media_list()
63 static int media_get_cb(const struct nlmsghdr *nlh, void *data) in media_get_cb()
88 static int cmd_media_get_prop(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_media_get_prop()
143 static int cmd_media_get(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_media_get()
166 static int cmd_media_set_prop(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_media_set_prop()
224 static int cmd_media_set(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_media_set()
249 int cmd_media(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, in cmd_media()
H A Dmsg.c33 static int family_id_cb(const struct nlmsghdr *nlh, void *data) in family_id_cb()
48 static struct mnl_socket *msg_send(struct nlmsghdr *nlh) in msg_send()
97 static int msg_query(struct nlmsghdr *nlh, mnl_cb_t callback, void *data) in msg_query()
116 struct nlmsghdr *nlh; in get_family() local
137 int msg_doit(struct nlmsghdr *nlh, mnl_cb_t callback, void *data) in msg_doit()
143 int msg_dumpit(struct nlmsghdr *nlh, mnl_cb_t callback, void *data) in msg_dumpit()
152 struct nlmsghdr *nlh; in msg_init() local
H A Dsocket.c26 static int publ_list_cb(const struct nlmsghdr *nlh, void *data) in publ_list_cb()
48 struct nlmsghdr *nlh; in publ_list() local
64 static int sock_list_cb(const struct nlmsghdr *nlh, void *data) in sock_list_cb()
104 static int cmd_socket_list(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_socket_list()
131 int cmd_socket(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, in cmd_socket()
/aosp_15_r20/external/libnl/lib/
H A Dmsg.c108 void *nlmsg_data(const struct nlmsghdr *nlh) in nlmsg_data()
113 void *nlmsg_tail(const struct nlmsghdr *nlh) in nlmsg_tail()
124 int nlmsg_datalen(const struct nlmsghdr *nlh) in nlmsg_datalen()
129 static int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len()
146 struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrdata()
157 int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen()
169 int nlmsg_valid_hdr(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_valid_hdr()
185 int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) in nlmsg_ok()
200 struct nlmsghdr *nlmsg_next(struct nlmsghdr *nlh, int *remaining) in nlmsg_next()
219 int nlmsg_parse(struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], in nlmsg_parse()
[all …]
/aosp_15_r20/external/iproute2/devlink/
H A Ddevlink.c98 const struct nlmsghdr *nlh, in _mnlg_socket_sndrcv()
356 static int ifname_map_cb(const struct nlmsghdr *nlh, void *data) in ifname_map_cb()
401 struct nlmsghdr *nlh; in ifname_map_init() local
1036 static void dl_opts_put(struct nlmsghdr *nlh, struct dl *dl) in dl_opts_put()
1093 static int dl_argv_parse_put(struct nlmsghdr *nlh, struct dl *dl, in dl_argv_parse_put()
1481 static int cmd_dev_eswitch_show_cb(const struct nlmsghdr *nlh, void *data) in cmd_dev_eswitch_show_cb()
1496 struct nlmsghdr *nlh; in cmd_dev_eswitch_show() local
1514 struct nlmsghdr *nlh; in cmd_dev_eswitch_set() local
1552 static int cmd_dev_show_cb(const struct nlmsghdr *nlh, void *data) in cmd_dev_show_cb()
1567 struct nlmsghdr *nlh; in cmd_dev_show() local
[all …]
H A Dmnlg.c36 struct nlmsghdr *nlh; in __mnlg_msg_prepare() local
58 int mnlg_socket_send(struct mnlg_socket *nlg, const struct nlmsghdr *nlh) in mnlg_socket_send()
145 static int get_group_id_cb(const struct nlmsghdr *nlh, void *data) in get_group_id_cb()
160 struct nlmsghdr *nlh; in mnlg_socket_group_add() local
206 static int get_family_id_cb(const struct nlmsghdr *nlh, void *data) in get_family_id_cb()
222 struct nlmsghdr *nlh; in mnlg_socket_open() local
/aosp_15_r20/external/trusty/musl/src/network/
Dnetlink.h79 #define NLMSG_DATA(nlh) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr))) argument
80 #define NLMSG_DATALEN(nlh) ((nlh)->nlmsg_len-sizeof(struct nlmsghdr)) argument
81 #define NLMSG_DATAEND(nlh) ((char*)(nlh)+(nlh)->nlmsg_len) argument
82 #define NLMSG_NEXT(nlh) (struct nlmsghdr*)((char*)(nlh)+NETLINK_ALIGN((nlh)->nlmsg_len)) argument
83 #define NLMSG_OK(nlh,end) ((char*)(end)-(char*)(nlh) >= sizeof(struct nlmsghdr)) argument
89 #define RTA_OK(nlh,end) ((char*)(end)-(char*)(rta) >= sizeof(struct rtattr)) argument
91 #define NLMSG_RTA(nlh,len) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr)+NETLINK_ALIGN(len))) argument
92 #define NLMSG_RTAOK(rta,nlh) RTA_OK(rta,NLMSG_DATAEND(nlh)) argument
/aosp_15_r20/external/iptables/iptables/
H A Dnft-cache.c83 static int genid_cb(const struct nlmsghdr *nlh, void *data) in genid_cb()
107 struct nlmsghdr *nlh; in mnl_genid_get() local
120 static int nftnl_table_list_cb(const struct nlmsghdr *nlh, void *data) in nftnl_table_list_cb()
149 struct nlmsghdr *nlh; in fetch_table_cache() local
327 static int nftnl_chain_list_cb(const struct nlmsghdr *nlh, void *data) in nftnl_chain_list_cb()
365 static int nftnl_set_list_cb(const struct nlmsghdr *nlh, void *data) in nftnl_set_list_cb()
405 static int set_elem_cb(const struct nlmsghdr *nlh, void *data) in set_elem_cb()
427 struct nlmsghdr *nlh; in set_fetch_elem_cb() local
456 struct nlmsghdr *nlh; in fetch_set_cache() local
513 struct nlmsghdr *nlh; in __fetch_chain_cache() local
[all …]
H A Dxtables-monitor.c47 static int table_cb(const struct nlmsghdr *nlh, void *data) in table_cb()
77 static int rule_cb(const struct nlmsghdr *nlh, void *data) in rule_cb()
122 static int chain_cb(const struct nlmsghdr *nlh, void *data) in chain_cb()
169 static int newgen_cb(const struct nlmsghdr *nlh, void *data) in newgen_cb()
219 struct nlmsghdr *nlh; in trace_print_rule() local
495 static int trace_cb(const struct nlmsghdr *nlh, struct cb_arg *arg) in trace_cb()
549 static int monitor_cb(const struct nlmsghdr *nlh, void *data) in monitor_cb()
/aosp_15_r20/external/libnfnetlink/src/
H A Dlibnfnetlink.c98 void nfnl_dump_packet(struct nlmsghdr *nlh, int received_len, char *desc) in nfnl_dump_packet()
519 struct nlmsghdr *nlh, unsigned int len, in nfnl_fill_hdr()
552 const struct nlmsghdr *nlh, in nfnl_parse_hdr()
1132 struct nlmsghdr *nlh; in nfnl_get_msg_first() local
1151 struct nlmsghdr *nlh; in nfnl_get_msg_next() local
1237 const struct nlmsghdr *nlh, in nfnl_check_attributes()
1292 static int __nfnl_handle_msg(struct nfnl_handle *h, struct nlmsghdr *nlh, in __nfnl_handle_msg()
1328 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in nfnl_handle_packet() local
1347 static int nfnl_is_error(struct nfnl_handle *h, struct nlmsghdr *nlh) in nfnl_is_error()
1366 static int nfnl_step(struct nfnl_handle *h, struct nlmsghdr *nlh) in nfnl_step()
[all …]
/aosp_15_r20/external/ethtool/libmnl/examples/netfilter/
H A Dnf-queue.c55 static int queue_cb(const struct nlmsghdr *nlh, void *data) in queue_cb()
76 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_pf_request() local
96 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_request() local
117 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_params() local
138 struct nlmsghdr *nlh; in nfq_build_verdict() local
162 struct nlmsghdr *nlh; in main() local
H A Dnf-log.c61 static int log_cb(const struct nlmsghdr *nlh, void *data) in log_cb()
86 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nflog_build_cfg_pf_request() local
105 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nflog_build_cfg_request() local
125 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nflog_build_cfg_params() local
147 struct nlmsghdr *nlh; in main() local
/aosp_15_r20/external/libnl/lib/genl/
H A Dgenl.c116 int genlmsg_valid_hdr(struct nlmsghdr *nlh, int hdrlen) in genlmsg_valid_hdr()
152 int genlmsg_validate(struct nlmsghdr *nlh, int hdrlen, int maxtype, in genlmsg_validate()
192 int genlmsg_parse(struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], in genlmsg_parse()
211 struct genlmsghdr *genlmsg_hdr(struct nlmsghdr *nlh) in genlmsg_hdr()
227 const struct nlmsghdr *nlh; in genlmsg_len() local
352 struct nlmsghdr *nlh; in genlmsg_put() local
/aosp_15_r20/external/musl/src/network/
H A Dnetlink.h79 #define NLMSG_DATA(nlh) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr))) argument
80 #define NLMSG_DATALEN(nlh) ((nlh)->nlmsg_len-sizeof(struct nlmsghdr)) argument
81 #define NLMSG_DATAEND(nlh) ((char*)(nlh)+(nlh)->nlmsg_len) argument
82 #define NLMSG_NEXT(nlh) (struct nlmsghdr*)((char*)(nlh)+NETLINK_ALIGN((nlh)->nlmsg_len)) argument
83 #define NLMSG_OK(nlh,end) ((char*)(end)-(char*)(nlh) >= sizeof(struct nlmsghdr)) argument
91 #define NLMSG_RTA(nlh,len) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr)+NETLINK_ALIGN(len))) argument
92 #define NLMSG_RTAOK(rta,nlh) RTA_OK(rta,NLMSG_DATAEND(nlh)) argument
/aosp_15_r20/external/linux-kselftest/tools/testing/selftests/netfilter/
H A Dnf-queue.c77 static int queue_cb(const struct nlmsghdr *nlh, void *data) in queue_cb()
123 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_request() local
147 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_params() local
174 struct nlmsghdr *nlh; in nfq_build_verdict() local
212 struct nlmsghdr *nlh; in open_queue() local
274 struct nlmsghdr *nlh; in mainloop() local
/aosp_15_r20/external/libnl/lib/netfilter/
H A Dnfnl.c133 uint8_t nfnlmsg_subsys(struct nlmsghdr *nlh) in nfnlmsg_subsys()
142 uint8_t nfnlmsg_subtype(struct nlmsghdr *nlh) in nfnlmsg_subtype()
151 uint8_t nfnlmsg_family(struct nlmsghdr *nlh) in nfnlmsg_family()
162 uint16_t nfnlmsg_res_id(struct nlmsghdr *nlh) in nfnlmsg_res_id()
236 struct nlmsghdr *nlh; in nfnlmsg_put() local
H A Dqueue_msg.c50 int nfnlmsg_queue_msg_parse(struct nlmsghdr *nlh, in nfnlmsg_queue_msg_parse()
137 struct nlmsghdr *nlh, struct nl_parser_param *pp) in queue_msg_parser()
200 int nfnl_queue_msg_send_verdict(struct nl_sock *nlh, in nfnl_queue_msg_send_verdict()
223 int nfnl_queue_msg_send_verdict_batch(struct nl_sock *nlh, in nfnl_queue_msg_send_verdict_batch()
248 int nfnl_queue_msg_send_verdict_payload(struct nl_sock *nlh, in nfnl_queue_msg_send_verdict_payload()
H A Dlog.c73 int nfnl_log_pf_bind(struct nl_sock *nlh, uint8_t pf) in nfnl_log_pf_bind()
89 int nfnl_log_pf_unbind(struct nl_sock *nlh, uint8_t pf) in nfnl_log_pf_unbind()
186 int nfnl_log_create(struct nl_sock *nlh, const struct nfnl_log *log) in nfnl_log_create()
203 int nfnl_log_change(struct nl_sock *nlh, const struct nfnl_log *log) in nfnl_log_change()
224 int nfnl_log_delete(struct nl_sock *nlh, const struct nfnl_log *log) in nfnl_log_delete()
H A Dqueue.c83 int nfnl_queue_pf_bind(struct nl_sock *nlh, uint8_t pf) in nfnl_queue_pf_bind()
99 int nfnl_queue_pf_unbind(struct nl_sock *nlh, uint8_t pf) in nfnl_queue_pf_unbind()
181 int nfnl_queue_create(struct nl_sock *nlh, const struct nfnl_queue *queue) in nfnl_queue_create()
198 int nfnl_queue_change(struct nl_sock *nlh, const struct nfnl_queue *queue) in nfnl_queue_change()
219 int nfnl_queue_delete(struct nl_sock *nlh, const struct nfnl_queue *queue) in nfnl_queue_delete()

12345678910>>...17