Home
last modified time | relevance | path

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

12345678910>>...12

/external/libnetfilter_conntrack/src/conntrack/
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 …]
/external/ethtool/libmnl/src/
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 …]
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 …]
Dcallback.c14 static int mnl_cb_noop(const struct nlmsghdr *nlh, void *data) in mnl_cb_noop()
19 static int mnl_cb_error(const struct nlmsghdr *nlh, void *data) in mnl_cb_error()
36 static int mnl_cb_stop(const struct nlmsghdr *nlh, void *data) in mnl_cb_stop()
55 const struct nlmsghdr *nlh = buf; in __mnl_cb_run() local
/external/iproute2/tipc/
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()
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 …]
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
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()
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 …]
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()
Dpeer.c27 static int cmd_peer_rm_addr(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_peer_rm_addr()
64 static int cmd_peer_rm(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_peer_rm()
84 int cmd_peer(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, in cmd_peer()
/external/ethtool/libmnl/examples/netfilter/
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
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
/external/libnl/lib/genl/
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
/external/libnl/lib/netfilter/
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
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()
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()
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()
/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
/external/libnl/lib/
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 …]
/external/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
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
/external/strace/tests-m32/
Dnetlink_protocol.c50 struct nlmsghdr nlh; in send_query() member
207 struct nlmsghdr *nlh; in test_nlmsgerr() local
322 struct nlmsghdr *nlh; in test_nlmsg_done() local
373 struct nlmsghdr nlh = { in test_ack_flags() local
/external/strace/tests/
Dnetlink_protocol.c50 struct nlmsghdr nlh; in send_query() member
207 struct nlmsghdr *nlh; in test_nlmsgerr() local
322 struct nlmsghdr *nlh; in test_nlmsg_done() local
373 struct nlmsghdr nlh = { in test_ack_flags() local
/external/strace/tests-mx32/
Dnetlink_protocol.c50 struct nlmsghdr nlh; in send_query() member
207 struct nlmsghdr *nlh; in test_nlmsgerr() local
322 struct nlmsghdr *nlh; in test_nlmsg_done() local
373 struct nlmsghdr nlh = { in test_ack_flags() local
/external/iproute2/devlink/
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

12345678910>>...12