Home
last modified time | relevance | path

Searched refs:nlh (Results 1 – 2 of 2) sorted by relevance

/hostap-3.6.0/src/drivers/
Dpriv_netlink.h53 #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
Ddriver_nl80211.c329 struct nlmsghdr *nlh = (struct nlmsghdr *) err - 1; in error_handler() local
330 int len = nlh->nlmsg_len; in error_handler()
334 int ack_len = sizeof(*nlh) + sizeof(int) + sizeof(*nlh); in error_handler()
338 if (!(nlh->nlmsg_flags & NLM_F_ACK_TLVS)) in error_handler()
341 if (!(nlh->nlmsg_flags & NLM_F_CAPPED)) in error_handler()
342 ack_len += err->msg.nlmsg_len - sizeof(*nlh); in error_handler()
347 attrs = (void *) ((unsigned char *) nlh + ack_len); in error_handler()