/external/kernel-headers/original/linux/ |
D | netlink.h | 80 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) argument 81 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument 82 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 83 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument 84 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 85 (nlh)->nlmsg_len <= (len)) 86 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument 184 extern void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err); 221 const struct nlmsghdr *nlh; member 238 struct nlmsghdr *nlh; in __nlmsg_put() local [all …]
|
D | rtnetlink.h | 618 u32 group, struct nlmsghdr *nlh, gfp_t flags);
|
/external/iproute2/genl/ |
D | ctrl.c | 45 struct nlmsghdr *nlh; in genl_ctrl_resolve_family() local 55 nlh = &req.n; in genl_ctrl_resolve_family() 56 nlh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in genl_ctrl_resolve_family() 57 nlh->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in genl_ctrl_resolve_family() 58 nlh->nlmsg_type = GENL_ID_CTRL; in genl_ctrl_resolve_family() 68 addattr_l(nlh, 128, CTRL_ATTR_FAMILY_NAME, family, strlen(family) + 1); in genl_ctrl_resolve_family() 70 if (rtnl_talk(&rth, nlh, 0, 0, nlh, NULL, NULL) < 0) { in genl_ctrl_resolve_family() 77 struct genlmsghdr *ghdr = NLMSG_DATA(nlh); in genl_ctrl_resolve_family() 78 int len = nlh->nlmsg_len; in genl_ctrl_resolve_family() 81 if (nlh->nlmsg_type != GENL_ID_CTRL) { in genl_ctrl_resolve_family() [all …]
|
/external/wpa_supplicant_8/src/drivers/ |
D | priv_netlink.h | 53 #define NLMSG_DATA(nlh) ((void*) (((char*) nlh) + NLMSG_LENGTH(0))) argument 54 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument 56 (((char *)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 57 #define NLMSG_OK(nlh,len) ((len) >= (int) sizeof(struct nlmsghdr) && \ argument 58 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 59 (int) (nlh)->nlmsg_len <= (len)) 60 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
|
/external/iproute2/include/linux/ |
D | netlink.h | 80 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) argument 81 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument 82 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 83 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument 84 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 85 (nlh)->nlmsg_len <= (len)) 86 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
|
/external/iptables/libipq/ |
D | libipq.c | 129 struct nlmsghdr *nlh; in ipq_netlink_recvfrom() local 185 nlh = (struct nlmsghdr *)buf; in ipq_netlink_recvfrom() 186 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > status) { in ipq_netlink_recvfrom() 273 struct nlmsghdr nlh; in ipq_set_mode() member 278 req.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(req)); in ipq_set_mode() 279 req.nlh.nlmsg_flags = NLM_F_REQUEST; in ipq_set_mode() 280 req.nlh.nlmsg_type = IPQM_MODE; in ipq_set_mode() 281 req.nlh.nlmsg_pid = h->local.nl_pid; in ipq_set_mode() 284 return ipq_netlink_sendto(h, (void *)&req, req.nlh.nlmsg_len); in ipq_set_mode() 322 struct nlmsghdr nlh; in ipq_set_verdict() local [all …]
|
/external/libselinux/src/ |
D | avc_internal.c | 106 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in avc_netlink_receive() local 149 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > (unsigned)rc) { in avc_netlink_receive() 162 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in avc_netlink_process() local 164 switch (nlh->nlmsg_type) { in avc_netlink_process() 166 struct nlmsgerr *err = NLMSG_DATA(nlh); in avc_netlink_process() 179 struct selnl_msg_setenforce *msg = NLMSG_DATA(nlh); in avc_netlink_process() 199 struct selnl_msg_policyload *msg = NLMSG_DATA(nlh); in avc_netlink_process() 219 avc_prefix, nlh->nlmsg_type); in avc_netlink_process()
|
/external/iproute2/lib/ |
D | libnetlink.c | 95 struct nlmsghdr nlh; in rtnl_wilddump_request() member 100 req.nlh.nlmsg_len = sizeof(req); in rtnl_wilddump_request() 101 req.nlh.nlmsg_type = type; in rtnl_wilddump_request() 102 req.nlh.nlmsg_flags = NLM_F_ROOT|NLM_F_MATCH|NLM_F_REQUEST; in rtnl_wilddump_request() 103 req.nlh.nlmsg_pid = 0; in rtnl_wilddump_request() 104 req.nlh.nlmsg_seq = rth->dump = ++rth->seq; in rtnl_wilddump_request() 150 struct nlmsghdr nlh; in rtnl_dump_request() local 153 { .iov_base = &nlh, .iov_len = sizeof(nlh) }, in rtnl_dump_request() 166 nlh.nlmsg_len = NLMSG_LENGTH(len); in rtnl_dump_request() 167 nlh.nlmsg_type = type; in rtnl_dump_request() [all …]
|
/external/dnsmasq/contrib/wrt/ |
D | dhcp_release.c | 188 struct nlmsghdr nlh; in find_interface() member 197 req.nlh.nlmsg_len = sizeof(req); in find_interface() 198 req.nlh.nlmsg_type = RTM_GETADDR; in find_interface() 199 req.nlh.nlmsg_flags = NLM_F_ROOT | NLM_F_MATCH | NLM_F_REQUEST | NLM_F_ACK; in find_interface() 200 req.nlh.nlmsg_pid = 0; in find_interface() 201 req.nlh.nlmsg_seq = 1; in find_interface()
|
/external/dnsmasq/src/ |
D | netlink.c | 134 struct nlmsghdr nlh; in iface_enumerate() member 144 req.nlh.nlmsg_len = sizeof(req); in iface_enumerate() 145 req.nlh.nlmsg_type = RTM_GETADDR; in iface_enumerate() 146 req.nlh.nlmsg_flags = NLM_F_ROOT | NLM_F_MATCH | NLM_F_REQUEST | NLM_F_ACK; in iface_enumerate() 147 req.nlh.nlmsg_pid = 0; in iface_enumerate() 148 req.nlh.nlmsg_seq = ++seq; in iface_enumerate()
|
/external/libnl-headers/netlink/ |
D | msg.h | 123 #define nlmsg_for_each_attr(pos, nlh, hdrlen, rem) \ argument 124 nla_for_each_attr(pos, nlmsg_attrdata(nlh, hdrlen), \ 125 nlmsg_attrlen(nlh, hdrlen), rem)
|
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/ |
D | priv_netlink.h | 57 #define NLMSG_DATA(nlh) ((void*) (((char*) nlh) + NLMSG_LENGTH(0))) argument
|
/external/ipsec-tools/src/racoon/ |
D | grabmyaddr.c | 217 struct nlmsghdr nlh; in getifaddrs() member 232 req.nlh.nlmsg_len = sizeof(req); in getifaddrs() 233 req.nlh.nlmsg_type = RTM_GETADDR; in getifaddrs() 234 req.nlh.nlmsg_flags = NLM_F_ROOT|NLM_F_MATCH|NLM_F_REQUEST; in getifaddrs() 235 req.nlh.nlmsg_pid = 0; in getifaddrs() 236 req.nlh.nlmsg_seq = ++seq; in getifaddrs()
|
/external/libnl-headers/netlink/genl/ |
D | mngt.h | 28 struct nlmsghdr * nlh; member
|
/external/iproute2/misc/ |
D | ss.c | 1321 static void tcp_show_info(const struct nlmsghdr *nlh, struct inet_diag_msg *r) in tcp_show_info() argument 1328 nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*r))); in tcp_show_info() 1404 static int tcp_show_sock(struct nlmsghdr *nlh, struct filter *f) in tcp_show_sock() argument 1406 struct inet_diag_msg *r = NLMSG_DATA(nlh); in tcp_show_sock() 1460 tcp_show_info(nlh, r); in tcp_show_sock() 1473 struct nlmsghdr nlh; in tcp_show_netlink() member 1489 req.nlh.nlmsg_len = sizeof(req); in tcp_show_netlink() 1490 req.nlh.nlmsg_type = socktype; in tcp_show_netlink() 1491 req.nlh.nlmsg_flags = NLM_F_ROOT|NLM_F_MATCH|NLM_F_REQUEST; in tcp_show_netlink() 1492 req.nlh.nlmsg_pid = 0; in tcp_show_netlink() [all …]
|
/external/kernel-headers/original/linux/netfilter/ |
D | nfnetlink.h | 114 struct nlmsghdr *nlh, struct nfattr *cda[], int *errp);
|
/external/iproute2/ip/ |
D | iproute.c | 994 struct nlmsghdr nlh; in rtnl_rtcache_request() member 1003 req.nlh.nlmsg_len = sizeof(req); in rtnl_rtcache_request() 1004 req.nlh.nlmsg_type = RTM_GETROUTE; in rtnl_rtcache_request() 1005 req.nlh.nlmsg_flags = NLM_F_ROOT|NLM_F_REQUEST; in rtnl_rtcache_request() 1006 req.nlh.nlmsg_pid = 0; in rtnl_rtcache_request() 1007 req.nlh.nlmsg_seq = rth->dump = ++rth->seq; in rtnl_rtcache_request()
|
/external/qemu-pc-bios/bochs/bios/ |
D | rombios.c | 5219 Bit16u npc, nph, npspt, nlc, nlh, nlspt; 5277 nlh = read_word(ebda_seg, &EbdaData->ata.devices[device].lchs.heads); 5281 if( (cylinder >= nlc) || (head >= nlh) || (sector > nlspt )) { 5293 if ( (nph != nlh) || (npspt != nlspt)) { 5294 …lba_low = ((((Bit32u)cylinder * (Bit32u)nlh) + (Bit32u)head) * (Bit32u)nlspt) + (Bit32u)sector - 1; 5326 nlh = read_word(ebda_seg, &EbdaData->ata.devices[device].lchs.heads); 5334 SET_DH(nlh - 1); 5360 nlh = read_word(ebda_seg, &EbdaData->ata.devices[device].lchs.heads); 5364 lba_low = (Bit32u)(nlc - 1) * (Bit32u)nlh * (Bit32u)nlspt;
|