/external/libnl/include/netlink/ |
D | msg.h | 54 extern void * nlmsg_data(const struct nlmsghdr *); 55 extern int nlmsg_datalen(const struct nlmsghdr *); 56 extern void * nlmsg_tail(const struct nlmsghdr *); 59 extern struct nlattr * nlmsg_attrdata(const struct nlmsghdr *, int); 60 extern int nlmsg_attrlen(const struct nlmsghdr *, int); 63 extern int nlmsg_valid_hdr(const struct nlmsghdr *, int); 64 extern int nlmsg_ok(const struct nlmsghdr *, int); 65 extern struct nlmsghdr * nlmsg_next(struct nlmsghdr *, int *); 66 extern int nlmsg_parse(struct nlmsghdr *, int, struct nlattr **, 68 extern struct nlattr * nlmsg_find_attr(struct nlmsghdr *, int, int); [all …]
|
/external/strace/ |
D | netlink.c | 66 fetch_nlmsghdr(struct tcb *const tcp, struct nlmsghdr *const nlmsghdr, in fetch_nlmsghdr() argument 70 if (len < sizeof(struct nlmsghdr)) { in fetch_nlmsghdr() 75 if (tfetch_obj(tcp, addr, nlmsghdr)) in fetch_nlmsghdr() 449 const struct nlmsghdr *const nlmsghdr) in print_nlmsghdr() argument 453 tprintf("{len=%u, type=", nlmsghdr->nlmsg_len); in print_nlmsghdr() 455 decode_nlmsg_type(tcp, nlmsghdr->nlmsg_type, family); in print_nlmsghdr() 458 decode_nlmsg_flags(nlmsghdr->nlmsg_flags, in print_nlmsghdr() 459 nlmsghdr->nlmsg_type, family); in print_nlmsghdr() 461 tprintf(", seq=%u, pid=%u}", nlmsghdr->nlmsg_seq, in print_nlmsghdr() 462 nlmsghdr->nlmsg_pid); in print_nlmsghdr() [all …]
|
D | netlink_netfilter.c | 47 const struct nlmsghdr *const nlmsghdr, in decode_netlink_netfilter() argument 51 if (nlmsghdr->nlmsg_type == NLMSG_DONE) in decode_netlink_netfilter() 59 const uint8_t subsys_id = (uint8_t) (nlmsghdr->nlmsg_type >> 8); in decode_netlink_netfilter() 87 if ((nlmsghdr->nlmsg_type >= NFNL_MSG_BATCH_BEGIN in decode_netlink_netfilter() 88 && nlmsghdr->nlmsg_type <= NFNL_MSG_BATCH_END) in decode_netlink_netfilter() 89 || nlmsghdr->nlmsg_type < NLMSG_MIN_TYPE) in decode_netlink_netfilter()
|
D | netlink_sock_diag.c | 67 const struct nlmsghdr *const nlmsghdr, in decode_netlink_sock_diag() argument 73 if (nlmsghdr->nlmsg_type == NLMSG_DONE) in decode_netlink_sock_diag() 80 (nlmsghdr->nlmsg_flags & NLM_F_REQUEST) in decode_netlink_sock_diag() 85 decoder(tcp, nlmsghdr, family, addr, len); in decode_netlink_sock_diag()
|
/external/libnfnetlink/include/libnfnetlink/ |
D | libnfnetlink.h | 42 #define NFNL_HEADER_LEN (NLMSG_ALIGN(sizeof(struct nlmsghdr)) \ 52 struct nlmsghdr nlh; 57 int (*call)(struct nlmsghdr *nlh, struct nfattr *nfa[], void *data); 91 extern int nfnl_send(struct nfnl_handle *, struct nlmsghdr *); 97 extern void nfnl_fill_hdr(struct nfnl_subsys_handle *, struct nlmsghdr *, 101 nfnl_talk(struct nfnl_handle *, struct nlmsghdr *, pid_t, 102 unsigned, struct nlmsghdr *, 103 int (*)(struct sockaddr_nl *, struct nlmsghdr *, void *), void *); 108 int (*)(struct sockaddr_nl *, struct nlmsghdr *, void *), void *); 119 const struct nlmsghdr *nlh, [all …]
|
/external/iproute2/include/ |
D | libnetlink.h | 30 struct nlmsghdr h; 54 typedef int (*req_filter_fn_t)(struct nlmsghdr *nlh, int reqlen); 65 int rtnl_dump_request_n(struct rtnl_handle *rth, struct nlmsghdr *n) 73 struct nlmsghdr *n, void *); 77 struct nlmsghdr *n, void *); 80 const struct nlmsghdr *inner_nlh); 95 int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, 96 struct nlmsghdr *answer, size_t len) 98 int rtnl_talk_extack(struct rtnl_handle *rtnl, struct nlmsghdr *n, 99 struct nlmsghdr *answer, size_t len, nl_ext_ack_fn_t errfn) [all …]
|
/external/iproute2/ip/ |
D | ip_common.h | 30 struct nlmsghdr *n, void *arg); 32 struct nlmsghdr *n, void *arg, 35 struct nlmsghdr *n, void *arg); 37 struct nlmsghdr *n, void *arg); 39 struct nlmsghdr *n, void *arg); 51 struct nlmsghdr *n, void *arg); 53 struct nlmsghdr *n, void *arg); 55 struct nlmsghdr *n, void *arg); 57 struct nlmsghdr *n, void *arg); 60 struct nlmsghdr *n, void *arg); [all …]
|
/external/libnl/lib/ |
D | msg.c | 105 void *nlmsg_data(const struct nlmsghdr *nlh) in nlmsg_data() 110 void *nlmsg_tail(const struct nlmsghdr *nlh) in nlmsg_tail() 121 int nlmsg_datalen(const struct nlmsghdr *nlh) in nlmsg_datalen() 126 static int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len() 143 struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrdata() 154 int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen() 166 int nlmsg_valid_hdr(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_valid_hdr() 179 int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) in nlmsg_ok() 181 return (remaining >= (int)sizeof(struct nlmsghdr) && in nlmsg_ok() 182 nlh->nlmsg_len >= sizeof(struct nlmsghdr) && in nlmsg_ok() [all …]
|
/external/iproute2/lib/ |
D | libnetlink.c | 69 static int nl_dump_ext_err(const struct nlmsghdr *nlh, nl_ext_ack_fn_t errfn) in nl_dump_ext_err() 73 const struct nlmsghdr *err_nlh = NULL; in nl_dump_ext_err() 123 static int nl_dump_ext_err(const struct nlmsghdr *nlh, nl_ext_ack_fn_t errfn) in nl_dump_ext_err() 211 struct nlmsghdr nlh; in rtnl_wilddump_req_filter() 234 struct nlmsghdr nlh; in rtnl_wilddump_req_filter_fn() 260 struct nlmsghdr nlh; in rtnl_wilddump_stats_req_filter() 283 struct nlmsghdr *h; in rtnl_send_check() 299 for (h = (struct nlmsghdr *)resp; NLMSG_OK(h, status); in rtnl_send_check() 317 struct nlmsghdr nlh = { in rtnl_dump_request() 338 int rtnl_dump_request_n(struct rtnl_handle *rth, struct nlmsghdr *n) in rtnl_dump_request_n() [all …]
|
/external/libnfnetlink/src/ |
D | libnfnetlink.c | 94 struct nlmsghdr *last_nlhdr; 98 void nfnl_dump_packet(struct nlmsghdr *nlh, int received_len, char *desc) in nfnl_dump_packet() 466 int nfnl_send(struct nfnl_handle *nfnlh, struct nlmsghdr *n) in nfnl_send() 519 struct nlmsghdr *nlh, unsigned int len, in nfnl_fill_hdr() 552 const struct nlmsghdr *nlh, in nfnl_parse_hdr() 598 || len < sizeof(struct nlmsghdr)) { in nfnl_recv() 645 int (*handler)(struct sockaddr_nl *, struct nlmsghdr *n, in nfnl_listen() 652 struct nlmsghdr *h; in nfnl_listen() 691 for (h = (struct nlmsghdr *)buf; remain >= sizeof(*h);) { in nfnl_listen() 724 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in nfnl_listen() [all …]
|
/external/libnetfilter_conntrack/src/conntrack/ |
D | build_mnl.c | 17 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/iproute2/tipc/ |
D | msg.c | 33 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() 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() 149 struct nlmsghdr *msg_init(char *buf, int cmd) in msg_init() 152 struct nlmsghdr *nlh; in msg_init()
|
D | node.c | 27 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()
|
D | link.c | 27 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 …]
|
D | media.c | 26 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()
|
/external/libnl/lib/genl/ |
D | genl.c | 117 int genlmsg_valid_hdr(struct nlmsghdr *nlh, int hdrlen) in genlmsg_valid_hdr() 151 int genlmsg_validate(struct nlmsghdr *nlh, int hdrlen, int maxtype, in genlmsg_validate() 191 int genlmsg_parse(struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], in genlmsg_parse() 210 struct genlmsghdr *genlmsg_hdr(struct nlmsghdr *nlh) in genlmsg_hdr() 226 const struct nlmsghdr *nlh; in genlmsg_len() 228 nlh = (const struct nlmsghdr *)((const unsigned char *) gnlh - NLMSG_HDRLEN); in genlmsg_len() 351 struct nlmsghdr *nlh; in genlmsg_put()
|
/external/ltp/lib/ |
D | tst_crypto.c | 39 struct nlmsghdr *nh; in tst_crypto_recv_ack() 43 for (nh = (struct nlmsghdr *) buf; in tst_crypto_recv_ack() 70 struct nlmsghdr nh = { in tst_crypto_add_alg() 71 .nlmsg_len = sizeof(struct nlmsghdr) + sizeof(*alg), in tst_crypto_add_alg() 87 struct nlmsghdr nh = { in tst_crypto_del_alg() 88 .nlmsg_len = sizeof(struct nlmsghdr) + sizeof(*alg), in tst_crypto_del_alg()
|
/external/libnl/include/linux-private/linux/ |
D | netlink.h | 38 struct nlmsghdr { struct 77 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) 82 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 83 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ 84 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 97 struct nlmsghdr msg;
|
/external/wpa_supplicant_8/src/drivers/ |
D | priv_netlink.h | 50 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) 51 #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr))) 55 (struct nlmsghdr *) \ 57 #define NLMSG_OK(nlh,len) ((len) >= (int) sizeof(struct nlmsghdr) && \ 58 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 84 struct nlmsghdr struct
|
/external/libnetfilter_conntrack/include/internal/ |
D | prototypes.h | 9 int __parse_message_type(const struct nlmsghdr *nlh); 10 void __parse_conntrack(const struct nlmsghdr *nlh, struct nfattr *cda[], struct nf_conntrack *ct); 31 int __callback(struct nlmsghdr *nlh, struct nfattr *nfa[], void *data); 43 int nfct_build_tuple(struct nlmsghdr *nlh, const struct __nfct_tuple *t, int type); 50 int __parse_expect_message_type(const struct nlmsghdr *nlh); 51 void __parse_expect(const struct nlmsghdr *nlh, struct nfattr *cda[], struct nf_expect *exp); 52 int __expect_callback(struct nlmsghdr *nlh, struct nfattr *nfa[], void *data);
|
/external/libnl/include/netlink/genl/ |
D | genl.h | 30 extern int genlmsg_valid_hdr(struct nlmsghdr *, int); 31 extern int genlmsg_validate(struct nlmsghdr *, int, int, 33 extern int genlmsg_parse(struct nlmsghdr *, int, struct nlattr **, 36 genlmsg_hdr(struct nlmsghdr *);
|
/external/libnl/include/netlink/netfilter/ |
D | nfnl.h | 28 extern uint8_t nfnlmsg_subsys(struct nlmsghdr *); 29 extern uint8_t nfnlmsg_subtype(struct nlmsghdr *); 30 extern uint8_t nfnlmsg_family(struct nlmsghdr *); 31 extern uint16_t nfnlmsg_res_id(struct nlmsghdr *);
|
/external/iproute2/include/uapi/linux/ |
D | netlink.h | 44 struct nlmsghdr { struct 91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) 96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 97 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ 98 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 111 struct nlmsghdr msg;
|
/external/kernel-headers/original/uapi/linux/ |
D | netlink.h | 44 struct nlmsghdr { struct 91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) 96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 97 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ 98 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 111 struct nlmsghdr msg;
|
/external/iproute2/tc/ |
D | tc_util.h | 27 char **argv, struct nlmsghdr *n); 34 char **argv, struct nlmsghdr *n); 43 int argc, char **argv, struct nlmsghdr *n); 52 char ***argv, int code, struct nlmsghdr *n); 101 int parse_police(int *argc_p, char ***argv_p, int tca_id, struct nlmsghdr *n); 113 char ***argv_p, int tca_id, struct nlmsghdr *n); 118 int parse_action(int *argc_p, char ***argv_p, int tca_id, struct nlmsghdr *n);
|