Home
last modified time | relevance | path

Searched refs:nlmsghdr (Results 1 – 25 of 274) sorted by relevance

1234567891011

/external/strace/
Dnetlink.c39 fetch_nlmsghdr(struct tcb *const tcp, struct nlmsghdr *const nlmsghdr, in fetch_nlmsghdr() argument
42 if (len < sizeof(struct nlmsghdr)) { in fetch_nlmsghdr()
47 if (umove_or_printaddr(tcp, addr, nlmsghdr)) in fetch_nlmsghdr()
54 print_nlmsghdr(struct tcb *tcp, const struct nlmsghdr *const nlmsghdr) in print_nlmsghdr() argument
58 tprintf("{len=%u, type=", nlmsghdr->nlmsg_len); in print_nlmsghdr()
60 printxval(netlink_types, nlmsghdr->nlmsg_type, "NLMSG_???"); in print_nlmsghdr()
63 printflags(netlink_flags, nlmsghdr->nlmsg_flags, "NLM_F_???"); in print_nlmsghdr()
65 tprintf(", seq=%u, pid=%u}", nlmsghdr->nlmsg_seq, in print_nlmsghdr()
66 nlmsghdr->nlmsg_pid); in print_nlmsghdr()
71 const struct nlmsghdr *const nlmsghdr, in decode_nlmsghdr_with_payload() argument
[all …]
/external/libnl/include/netlink/
Dmsg.h54 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/libnfnetlink/include/libnfnetlink/
Dlibnfnetlink.h41 #define NFNL_HEADER_LEN (NLMSG_ALIGN(sizeof(struct nlmsghdr)) \
51 struct nlmsghdr nlh;
56 int (*call)(struct nlmsghdr *nlh, struct nfattr *nfa[], void *data);
84 extern int nfnl_send(struct nfnl_handle *, struct nlmsghdr *);
90 extern void nfnl_fill_hdr(struct nfnl_subsys_handle *, struct nlmsghdr *,
94 nfnl_talk(struct nfnl_handle *, struct nlmsghdr *, pid_t,
95 unsigned, struct nlmsghdr *,
96 int (*)(struct sockaddr_nl *, struct nlmsghdr *, void *), void *);
101 int (*)(struct sockaddr_nl *, struct nlmsghdr *, void *), void *);
112 const struct nlmsghdr *nlh,
[all …]
/external/iproute2/ip/
Dip_common.h3 struct nlmsghdr *n, void *arg);
5 struct nlmsghdr *n, void *arg);
7 struct nlmsghdr *n, void *arg);
9 struct nlmsghdr *n, void *arg);
11 struct nlmsghdr *n, void *arg);
23 struct nlmsghdr *n, void *arg);
25 struct nlmsghdr *n, void *arg);
27 struct nlmsghdr *n, void *arg);
29 struct nlmsghdr *n, void *arg);
32 struct nlmsghdr *n, void *arg);
[all …]
/external/libnl/lib/
Dmsg.c105 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/include/
Dlibnetlink.h45 int rtnl_dump_request_n(struct rtnl_handle *rth, struct nlmsghdr *n)
53 struct nlmsghdr *n, void *);
57 struct nlmsghdr *n, void *);
73 int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n,
74 struct nlmsghdr *answer, size_t len)
81 int addattr(struct nlmsghdr *n, int maxlen, int type);
82 int addattr8(struct nlmsghdr *n, int maxlen, int type, __u8 data);
83 int addattr16(struct nlmsghdr *n, int maxlen, int type, __u16 data);
84 int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data);
85 int addattr64(struct nlmsghdr *n, int maxlen, int type, __u64 data);
[all …]
/external/libnfnetlink/src/
Dlibnfnetlink.c94 struct nlmsghdr *last_nlhdr;
98 void nfnl_dump_packet(struct nlmsghdr *nlh, int received_len, char *desc) in nfnl_dump_packet()
384 int nfnl_send(struct nfnl_handle *nfnlh, struct nlmsghdr *n) in nfnl_send()
437 struct nlmsghdr *nlh, unsigned int len, in nfnl_fill_hdr()
470 const struct nlmsghdr *nlh, in nfnl_parse_hdr()
516 || len < sizeof(struct nlmsghdr)) { in nfnl_recv()
563 int (*handler)(struct sockaddr_nl *, struct nlmsghdr *n, in nfnl_listen()
570 struct nlmsghdr *h; in nfnl_listen()
609 for (h = (struct nlmsghdr *)buf; remain >= sizeof(*h);) { in nfnl_listen()
642 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in nfnl_listen()
[all …]
/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/iproute2/lib/
Dlibnetlink.c110 struct nlmsghdr nlh; in rtnl_wilddump_req_filter()
139 struct nlmsghdr *h; in rtnl_send_check()
155 for (h = (struct nlmsghdr *)resp; NLMSG_OK(h, status); in rtnl_send_check()
172 struct nlmsghdr nlh; in rtnl_dump_request()
194 int rtnl_dump_request_n(struct rtnl_handle *rth, struct nlmsghdr *n) in rtnl_dump_request_n()
256 struct nlmsghdr *h = (struct nlmsghdr*)buf; in rtnl_dump_filter_l()
334 int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, in rtnl_talk()
335 struct nlmsghdr *answer, size_t maxlen) in rtnl_talk()
339 struct nlmsghdr *h; in rtnl_talk()
389 for (h = (struct nlmsghdr*)buf; status >= sizeof(*h); ) { in rtnl_talk()
[all …]
/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()
133 static int netid_get_cb(const struct nlmsghdr *nlh, void *data) in netid_get_cb()
152 static int cmd_node_get_netid(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_node_get_netid()
170 static int cmd_node_set_netid(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_node_set_netid()
211 static int cmd_node_set(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_node_set()
233 static int cmd_node_get(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_node_get()
256 int cmd_node(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, in cmd_node()
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()
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()
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.c70 static int enable_l2_bearer(struct nlmsghdr *nlh, struct opt *opts, in enable_l2_bearer()
86 static int get_netid_cb(const struct nlmsghdr *nlh, void *data) in get_netid_cb()
108 struct nlmsghdr *nlh; in generate_multicast()
126 static int enable_udp_bearer(struct nlmsghdr *nlh, struct opt *opts, in enable_udp_bearer()
224 static int cmd_bearer_enable(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_bearer_enable()
301 static int add_l2_bearer(struct nlmsghdr *nlh, struct opt *opts) in add_l2_bearer()
317 static int add_udp_bearer(struct nlmsghdr *nlh, struct opt *opts) in add_udp_bearer()
352 static int cmd_bearer_disable(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_bearer_disable()
436 static int cmd_bearer_set_prop(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_bearer_set_prop()
516 static int cmd_bearer_set(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_bearer_set()
[all …]
/external/libnl/lib/genl/
Dgenl.c117 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/libnl/include/linux-private/linux/
Dnetlink.h38 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/
Dpriv_netlink.h50 #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/
Dprototypes.h9 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/kernel-headers/original/uapi/linux/
Dnetlink.h42 struct nlmsghdr { struct
82 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
87 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
88 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
89 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
102 struct nlmsghdr msg;
/external/iproute2/include/linux/
Dnetlink.h42 struct nlmsghdr { struct
82 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
87 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
88 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
89 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
102 struct nlmsghdr msg;
/external/iproute2/tc/
Dtc_util.h25 int (*parse_qopt)(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n);
29 int (*parse_copt)(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n);
38 char **argv, struct nlmsghdr *n);
46 int code, struct nlmsghdr *n);
92 extern int parse_police(int *, char ***, int, struct nlmsghdr *);
96 extern int act_parse_police(struct action_util *a,int *, char ***, int, struct nlmsghdr *);
103 extern int parse_action(int *, char ***, int, struct nlmsghdr *);
Dtc_common.h13 extern int print_action(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
14 extern int print_filter(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
15 extern int print_qdisc(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
16 extern int print_class(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
/external/libnl/include/netlink/genl/
Dgenl.h30 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/
Dnfnl.h28 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/iputils/ninfod/
Dni_ifaddrs.c96 struct nlmsghdr *nlh;
115 char reqbuf[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + NLMSG_ALIGN(sizeof(struct rtgenmsg))]; in nl_sendreq()
117 struct nlmsghdr *req_hdr; in nl_sendreq()
124 req_hdr = (struct nlmsghdr *) reqbuf; in nl_sendreq()
163 static int nl_getmsg(int sd, int request, int seq, struct nlmsghdr **nlhp, int *done) in nl_getmsg()
165 struct nlmsghdr *nh; in nl_getmsg()
187 nh = (struct nlmsghdr *) buff; in nl_getmsg()
188 …for (nh = (struct nlmsghdr *) buff; NLMSG_OK(nh, read_size); nh = (struct nlmsghdr *) NLMSG_NEXT(n… in nl_getmsg()
214 *nlhp = (struct nlmsghdr *) buff; in nl_getmsg()
220 struct nlmsghdr *nlh = NULL; in nl_getlist()
[all …]
/external/dnsmasq/src/
Dnetlink.c36 static void nl_err(struct nlmsghdr *h);
37 static void nl_routechange(struct nlmsghdr *h);
128 struct nlmsghdr *h; in iface_enumerate()
134 struct nlmsghdr nlh; in iface_enumerate()
170 for (h = (struct nlmsghdr *)iov.iov_base; NLMSG_OK(h, (size_t)len); h = NLMSG_NEXT(h, len)) in iface_enumerate()
239 struct nlmsghdr *h; in netlink_multicast()
249 for (h = (struct nlmsghdr *)iov.iov_base; NLMSG_OK(h, (size_t)len); h = NLMSG_NEXT(h, len)) in netlink_multicast()
260 static void nl_err(struct nlmsghdr *h) in nl_err()
273 static void nl_routechange(struct nlmsghdr *h) in nl_routechange()

1234567891011