HomeSort by relevance Sort by last modified time
    Searched defs:nlh (Results 1 - 18 of 18) sorted by null

  /hardware/samsung_slsi/exynos5/mobicore/daemon/Common/
NetlinkConnection.cpp 155 struct nlmsghdr *nlh
160 dataMsg = nlh;
236 struct nlmsghdr *nlh = NULL; local
250 nlh = (struct nlmsghdr *)malloc(
253 nlh->nlmsg_len = NLMSG_SPACE(len);
254 nlh->nlmsg_pid = selfPid;
255 nlh->nlmsg_flags = NLM_F_REQUEST;
256 nlh->nlmsg_seq = sequenceMagic;
259 memcpy(NLMSG_DATA(nlh), buffer, len);
261 iov.iov_base = (void *)nlh;
    [all...]
  /system/core/libnl_2/
msg.c 31 struct nlmsghdr *nlh; local
39 nlh = (struct nlmsghdr *) ((char *) nm + sizeof(struct nl_msg));
52 nlh->nlmsg_len = NLMSG_HDRLEN;
53 nm->nm_nlh = nlh;
63 void *nlmsg_data(const struct nlmsghdr *nlh)
65 return (char *) nlh + NLMSG_HDRLEN;
92 struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, int hdrlen)
94 unsigned char *data = nlmsg_data(nlh);
99 void *nlmsg_tail(const struct nlmsghdr *nlh)
101 return (void *)((char *)nlh + NLMSG_ALIGN(nlh->nlmsg_len))
    [all...]
netlink.c 31 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 = nlmsg_hdr(msg) local
    [all...]
  /external/libnl-headers/netlink/genl/
mngt.h 28 struct nlmsghdr * nlh; member in struct:genl_info
  /hardware/samsung_slsi/exynos5/mobicore/daemon/Daemon/Server/
NetlinkServer.cpp 72 struct nlmsghdr *nlh = NULL; local
92 nlh = (struct nlmsghdr *)malloc(NLMSG_SPACE(MAX_PAYLOAD));
94 iov.iov_base = (void *)nlh;
101 memset(nlh, 0, NLMSG_SPACE(MAX_PAYLOAD));
110 if (NLMSG_OK(nlh, len)) {
111 handleMessage(nlh);
123 struct nlmsghdr *nlh
126 uint32_t seq = nlh->nlmsg_seq;
127 uint32_t pid = nlh->nlmsg_pid;
142 connection->handleMessage(nlh);
    [all...]
  /external/dnsmasq/src/
netlink.c 134 struct nlmsghdr nlh; member in struct:__anon20083
144 req.nlh.nlmsg_len = sizeof(req);
145 req.nlh.nlmsg_type = RTM_GETADDR;
146 req.nlh.nlmsg_flags = NLM_F_ROOT | NLM_F_MATCH | NLM_F_REQUEST | NLM_F_ACK;
147 req.nlh.nlmsg_pid = 0;
148 req.nlh.nlmsg_seq = ++seq;
  /external/iproute2/genl/
ctrl.c 45 struct nlmsghdr *nlh; local
55 nlh = &req.n;
56 nlh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
57 nlh->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK;
58 nlh->nlmsg_type = GENL_ID_CTRL;
68 addattr_l(nlh, 128, CTRL_ATTR_FAMILY_NAME, family, strlen(family) + 1);
70 if (rtnl_talk(&rth, nlh, 0, 0, nlh) < 0) {
77 struct genlmsghdr *ghdr = NLMSG_DATA(nlh);
78 int len = nlh->nlmsg_len
287 struct nlmsghdr *nlh; local
    [all...]
  /external/libselinux/src/
avc_internal.c 106 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; local
149 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > (unsigned)rc) {
162 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; local
164 switch (nlh->nlmsg_type) {
166 struct nlmsgerr *err = NLMSG_DATA(nlh);
179 struct selnl_msg_setenforce *msg = NLMSG_DATA(nlh);
199 struct selnl_msg_policyload *msg = NLMSG_DATA(nlh);
219 avc_prefix, nlh->nlmsg_type);
  /system/core/libnl_2/genl/
genl.c 41 struct nlmsghdr *nlh; local
44 nlh = (struct nlmsghdr *) ((char *) gnlh - NLMSG_HDRLEN);
45 return (char *) nlmsg_tail(nlh) - (char *) nla;
53 struct nlmsghdr *nlh; local
63 nlh = msg->nm_nlh;
64 nlh->nlmsg_len = new_size;
65 nlh->nlmsg_type = family;
66 nlh->nlmsg_pid = getpid();
67 nlh->nlmsg_flags = flags | NLM_F_REQUEST | NLM_F_ACK;
71 nlh->nlmsg_seq = 1
107 struct nlmsghdr *nlh; local
    [all...]
  /external/dnsmasq/contrib/wrt/
dhcp_release.c 188 struct nlmsghdr nlh; member in struct:__anon20071
197 req.nlh.nlmsg_len = sizeof(req);
198 req.nlh.nlmsg_type = RTM_GETADDR;
199 req.nlh.nlmsg_flags = NLM_F_ROOT | NLM_F_MATCH | NLM_F_REQUEST | NLM_F_ACK;
200 req.nlh.nlmsg_pid = 0;
201 req.nlh.nlmsg_seq = 1;
  /external/iproute2/lib/
libnetlink.c 95 struct nlmsghdr nlh; member in struct:__anon22095
103 req.nlh.nlmsg_len = sizeof(req);
104 req.nlh.nlmsg_type = type;
105 req.nlh.nlmsg_flags = NLM_F_DUMP|NLM_F_REQUEST;
106 req.nlh.nlmsg_pid = 0;
107 req.nlh.nlmsg_seq = rth->dump = ++rth->seq;
157 struct nlmsghdr nlh; local
160 { .iov_base = &nlh, .iov_len = sizeof(nlh) },
170 nlh.nlmsg_len = NLMSG_LENGTH(len)
    [all...]
  /external/iptables/libipq/
libipq.c 129 struct nlmsghdr *nlh; local
185 nlh = (struct nlmsghdr *)buf;
186 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > status) {
273 struct nlmsghdr nlh; member in struct:__anon22298
278 req.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(req));
279 req.nlh.nlmsg_flags = NLM_F_REQUEST;
280 req.nlh.nlmsg_type = IPQM_MODE;
281 req.nlh.nlmsg_pid = h->local.nl_pid;
284 return ipq_netlink_sendto(h, (void *)&req, req.nlh.nlmsg_len)
322 struct nlmsghdr nlh; local
    [all...]
  /external/ipsec-tools/src/racoon/
grabmyaddr.c 217 struct nlmsghdr nlh; member in struct:__anon22122
232 req.nlh.nlmsg_len = sizeof(req);
233 req.nlh.nlmsg_type = RTM_GETADDR;
234 req.nlh.nlmsg_flags = NLM_F_ROOT|NLM_F_MATCH|NLM_F_REQUEST;
235 req.nlh.nlmsg_pid = 0;
236 req.nlh.nlmsg_seq = ++seq;
  /external/iputils/ninfod/
ni_ifaddrs.c 96 struct nlmsghdr *nlh; member in struct:nlmsg_list
220 struct nlmsghdr *nlh = NULL; local
230 status = nl_getmsg(sd, request, seq, &nlh, &done);
233 if (nlh) {
237 free(nlh);
242 nlm_next->nlh = (struct nlmsghdr *) nlh;
268 if(nlm->nlh)
269 free(nlm->nlh);
353 struct nlmsghdr *nlh, *nlh0 local
    [all...]
  /external/kernel-headers/original/linux/
netlink.h 80 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
81 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
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) && \
85 (nlh)->nlmsg_len <= (len))
86 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))
221 const struct nlmsghdr *nlh; member in struct:netlink_callback
238 struct nlmsghdr *nlh; local
    [all...]
  /external/iproute2/ip/
iproute.c 1023 struct nlmsghdr nlh; member in struct:__anon22073
1032 req.nlh.nlmsg_len = sizeof(req);
1033 req.nlh.nlmsg_type = RTM_GETROUTE;
1034 req.nlh.nlmsg_flags = NLM_F_ROOT|NLM_F_REQUEST;
1035 req.nlh.nlmsg_pid = 0;
1036 req.nlh.nlmsg_seq = rth->dump = ++rth->seq;
    [all...]
  /external/iproute2/misc/
ss.c 1330 static void tcp_show_info(const struct nlmsghdr *nlh, struct inet_diag_msg *r)
1337 nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*r)));
1425 static int tcp_show_sock(struct nlmsghdr *nlh, struct filter *f)
1427 struct inet_diag_msg *r = NLMSG_DATA(nlh);
1481 tcp_show_info(nlh, r);
1494 struct nlmsghdr nlh; member in struct:__anon22104
2083 struct nlmsghdr nlh; member in struct:__anon22105
    [all...]
  /external/qemu-pc-bios/bochs/bios/
rombios.c 5219 Bit16u npc, nph, npspt, nlc, nlh, nlspt; local
    [all...]

Completed in 329 milliseconds