Searched defs:nlh (Results 1 - 3 of 3) sorted by relevance

/system/core/libnl_2/
H A Dmsg.c30 struct nlmsghdr *nlh; local
38 nlh = (struct nlmsghdr *) ((char *) nm + sizeof(struct nl_msg));
51 nlh->nlmsg_len = NLMSG_HDRLEN;
52 nm->nm_nlh = nlh;
62 void *nlmsg_data(const struct nlmsghdr *nlh) argument
64 return (char *) nlh + NLMSG_HDRLEN;
91 struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, int hdrlen) argument
93 unsigned char *data = nlmsg_data(nlh);
98 void *nlmsg_tail(const struct nlmsghdr *nlh) argument
100 return (void *)((char *)nlh
104 nlmsg_next(struct nlmsghdr *nlh, int *remaining) argument
120 nlmsg_datalen(const struct nlmsghdr *nlh) argument
126 nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) argument
132 nlmsg_len(const struct nlmsghdr *nlh) argument
138 nlmsg_ok(const struct nlmsghdr *nlh, int rem) argument
[all...]
H A Dnetlink.c31 struct nlmsghdr *nlh = msg->nm_nlh; local
34 if (!nlh) {
42 nlh->nlmsg_seq = 1;
44 nlh->nlmsg_seq = (int) tv.tv_sec;
45 nlh->nlmsg_pid = sk->s_local.nl_pid;
46 nlh->nlmsg_flags |= NLM_F_REQUEST | NLM_F_ACK;
115 struct nlmsghdr *nlh; local
124 nlmsg_for_each_msg(nlh, (struct nlmsghdr *) buf, rc, rem) {
133 msg->nm_nlh = nlh;
206 struct nlmsghdr *nlh local
[all...]
/system/core/libnl_2/genl/
H A Dgenl.c38 struct nlmsghdr *nlh; local
41 nlh = (struct nlmsghdr *) ((char *) gnlh - NLMSG_HDRLEN);
42 return (char *) nlmsg_tail(nlh) - (char *) nla;
50 struct nlmsghdr *nlh; local
60 nlh = msg->nm_nlh;
61 nlh->nlmsg_len = new_size;
62 nlh->nlmsg_type = family;
63 nlh->nlmsg_pid = getpid();
64 nlh->nlmsg_flags = flags | NLM_F_REQUEST | NLM_F_ACK;
68 nlh
104 struct nlmsghdr *nlh; local
[all...]

Completed in 1427 milliseconds