/external/iproute2/include/linux/ |
H A D | netlink.h | 82 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) 83 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 84 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 85 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ 86 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 87 (nlh)->nlmsg_len <= (len)) 88 #define NLMSG_PAYLOAD(nlh,le [all...] |
/external/kernel-headers/original/linux/ |
H A D | netlink.h | 82 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) 83 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 84 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 85 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ 86 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 87 (nlh)->nlmsg_len <= (len)) 88 #define NLMSG_PAYLOAD(nlh,le 226 const struct nlmsghdr *nlh; member in struct:netlink_callback 244 struct nlmsghdr *nlh; local [all...] |
H A D | rtnetlink.h | 627 u32 group, struct nlmsghdr *nlh, gfp_t flags);
|
/external/iproute2/genl/ |
H A D | 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, NULL, NULL) < 0) { 77 struct genlmsghdr *ghdr = NLMSG_DATA(nlh); 78 int len = nlh 287 struct nlmsghdr *nlh; local [all...] |
/external/iptables/libipq/ |
H A D | libipq.c | 127 struct nlmsghdr *nlh; local 183 nlh = (struct nlmsghdr *)buf; 184 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > status) { 271 struct nlmsghdr nlh; member in struct:__anon2946 276 req.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(req)); 277 req.nlh.nlmsg_flags = NLM_F_REQUEST; 278 req.nlh.nlmsg_type = IPQM_MODE; 279 req.nlh.nlmsg_pid = h->local.nl_pid; 282 return ipq_netlink_sendto(h, (void *)&req, req.nlh 320 struct nlmsghdr nlh; local [all...] |
/external/wpa_supplicant/ |
H A D | priv_netlink.h | 57 #define NLMSG_DATA(nlh) ((void*) (((char*) nlh) + NLMSG_LENGTH(0)))
|
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/ |
H A D | priv_netlink.h | 57 #define NLMSG_DATA(nlh) ((void*) (((char*) nlh) + NLMSG_LENGTH(0)))
|
/external/dnsmasq/contrib/wrt/ |
H A D | dhcp_release.c | 188 struct nlmsghdr nlh; member in struct:__anon1826 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/dnsmasq/src/ |
H A D | netlink.c | 134 struct nlmsghdr nlh; member in struct:__anon1838 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/lib/ |
H A D | libnetlink.c | 95 struct nlmsghdr nlh; member in struct:__anon2883 100 req.nlh.nlmsg_len = sizeof(req); 101 req.nlh.nlmsg_type = type; 102 req.nlh.nlmsg_flags = NLM_F_ROOT|NLM_F_MATCH|NLM_F_REQUEST; 103 req.nlh.nlmsg_pid = 0; 104 req.nlh.nlmsg_seq = rth->dump = ++rth->seq; 150 struct nlmsghdr nlh; local 153 { .iov_base = &nlh, .iov_len = sizeof(nlh) }, 166 nlh [all...] |
/external/kernel-headers/original/linux/netfilter/ |
H A D | nfnetlink.h | 114 struct nlmsghdr *nlh, struct nfattr *cda[], int *errp);
|
/external/ipsec-tools/src/racoon/ |
H A D | grabmyaddr.c | 217 struct nlmsghdr nlh; member in struct:__anon2909 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/iproute2/misc/ |
H A D | ss.c | 1264 static void tcp_show_info(const struct nlmsghdr *nlh, struct inet_diag_msg *r) argument 1271 nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*r))); 1347 static int tcp_show_sock(struct nlmsghdr *nlh, struct filter *f) argument 1349 struct inet_diag_msg *r = NLMSG_DATA(nlh); 1403 tcp_show_info(nlh, r); 1416 struct nlmsghdr nlh; member in struct:__anon2892 1432 req.nlh.nlmsg_len = sizeof(req); 1433 req.nlh.nlmsg_type = socktype; 1434 req.nlh.nlmsg_flags = NLM_F_ROOT|NLM_F_MATCH|NLM_F_REQUEST; 1435 req.nlh [all...] |
/external/iproute2/ip/ |
H A D | iproute.c | 998 struct nlmsghdr nlh; member in struct:__anon2865 1007 req.nlh.nlmsg_len = sizeof(req); 1008 req.nlh.nlmsg_type = RTM_GETROUTE; 1009 req.nlh.nlmsg_flags = NLM_F_ROOT|NLM_F_REQUEST; 1010 req.nlh.nlmsg_pid = 0; 1011 req.nlh.nlmsg_seq = rth->dump = ++rth->seq;
|