| /src/external/gpl2/lvm2/dist/daemons/cmirrord/ |
| local.c | 47 struct nlmsghdr *nlh = (struct nlmsghdr *)send_buf; local 48 struct cn_msg *msg = NLMSG_DATA(nlh); 57 nlh->nlmsg_seq = 0; 58 nlh->nlmsg_pid = getpid(); 59 nlh->nlmsg_type = NLMSG_DONE; 60 nlh->nlmsg_len = NLMSG_LENGTH(sizeof(struct cn_msg)); 61 nlh->nlmsg_flags = 0; 69 r = send(cn_fd, nlh, NLMSG_LENGTH(sizeof(struct cn_msg)), 0); 186 struct nlmsghdr *nlh; local 191 nlh = (struct nlmsghdr *)send_buf [all...] |
| /src/external/bsd/libpcap/dist/ |
| pcap-netfilter-linux.c | 151 const struct nlmsghdr *nlh = (const struct nlmsghdr *) bp; local 192 if (nlh->nlmsg_len < sizeof(struct nlmsghdr) || (u_int)len < nlh->nlmsg_len) { 193 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Message truncated: (got: %zd) (nlmsg_len: %u)", len, nlh->nlmsg_len); 197 if (NFNL_SUBSYS_ID(nlh->nlmsg_type) == NFNL_SUBSYS_ULOG && 198 NFNL_MSG_TYPE(nlh->nlmsg_type) == NFULNL_MSG_PACKET) 200 else if (NFNL_SUBSYS_ID(nlh->nlmsg_type) == NFNL_SUBSYS_QUEUE && 201 NFNL_MSG_TYPE(nlh->nlmsg_type) == NFQNL_MSG_PACKET) 214 if (nlh->nlmsg_len < HDR_LENGTH) { 215 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Malformed message: (nlmsg_len: %u)", nlh->nlmsg_len) 350 struct nlmsghdr *nlh = (struct nlmsghdr *) buf; local [all...] |
| /src/external/bsd/unbound/dist/ipset/ |
| ipset.c | 143 struct nlmsghdr *nlh; local 157 nlh = mnl_nlmsg_put_header(buffer); 158 nlh->nlmsg_type = IPSET_CMD_ADD | (NFNL_SUBSYS_IPSET << 8); 159 nlh->nlmsg_flags = NLM_F_REQUEST|NLM_F_ACK|NLM_F_EXCL; 161 nfg = mnl_nlmsg_put_extra_header(nlh, sizeof(struct nfgenmsg)); 166 mnl_attr_put_u8(nlh, IPSET_ATTR_PROTOCOL, IPSET_PROTOCOL); 167 mnl_attr_put(nlh, IPSET_ATTR_SETNAME, strlen(setname) + 1, setname); 168 nested[0] = mnl_attr_nest_start(nlh, IPSET_ATTR_DATA); 169 nested[1] = mnl_attr_nest_start(nlh, IPSET_ATTR_IP); 170 mnl_attr_put(nlh, (af == AF_INET ? IPSET_ATTR_IPADDR_IPV4 : IPSET_ATTR_IPADDR_IPV6 [all...] |
| /src/crypto/dist/ipsec-tools/src/racoon/ |
| grabmyaddr.c | 363 struct nlmsghdr nlh; member in struct:__anon6 373 req.nlh.nlmsg_len = sizeof(req); 374 req.nlh.nlmsg_type = type; 375 req.nlh.nlmsg_flags = NLM_F_ROOT | NLM_F_MATCH | NLM_F_REQUEST; 376 req.nlh.nlmsg_pid = 0; 377 req.nlh.nlmsg_seq = ++seq;
|
| /src/crypto/external/bsd/heimdal/dist/lib/roken/ |
| getifaddrs.c | 143 struct nlmsghdr *nlh; member in struct:nlmsg_list 393 struct nlmsghdr *nlh = NULL; local 420 status = nl_getmsg(sd, request, seq, &nlh, &done); 423 if (nlh){ 427 free(nlh); 432 nlm_next->nlh = (struct nlmsghdr *)nlh; 458 if (nlm->nlh) 459 free(nlm->nlh); 551 struct nlmsghdr *nlh, *nlh0 local [all...] |
| /src/external/bsd/wpa/dist/src/drivers/ |
| driver_nl80211.c | 354 struct nlmsghdr *nlh = (struct nlmsghdr *) err - 1; local 356 int len = nlh->nlmsg_len; 359 int ack_len = sizeof(*nlh) + sizeof(int) + sizeof(*nlh); 368 if (!(nlh->nlmsg_flags & NLM_F_ACK_TLVS)) 371 if (!(nlh->nlmsg_flags & NLM_F_CAPPED)) 372 ack_len += err->msg.nlmsg_len - sizeof(*nlh); 377 attrs = (void *) ((unsigned char *) nlh + ack_len);
|