Home
last modified time | relevance | path

Searched defs:nlh (Results 1 – 13 of 13) sorted by relevance

/third_party/musl/src/network/
Dnetlink.h79 #define NLMSG_DATA(nlh) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr))) argument
80 #define NLMSG_DATALEN(nlh) ((nlh)->nlmsg_len-sizeof(struct nlmsghdr)) argument
81 #define NLMSG_DATAEND(nlh) ((char*)(nlh)+(nlh)->nlmsg_len) argument
82 #define NLMSG_NEXT(nlh) (struct nlmsghdr*)((char*)(nlh)+NETLINK_ALIGN((nlh)->nlmsg_len)) argument
83 #define NLMSG_OK(nlh,end) ((char*)(end)-(char*)(nlh) >= sizeof(struct nlmsghdr)) argument
91 #define NLMSG_RTA(nlh,len) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr)+NETLINK_ALIGN(len))) argument
92 #define NLMSG_RTAOK(rta,nlh) RTA_OK(rta,NLMSG_DATAEND(nlh)) argument
Dnetlink.c14 struct nlmsghdr nlh; in __netlink_enumerate() member
/third_party/wpa_supplicant/wpa_supplicant-2.9/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
57 #define NLMSG_OK(nlh,len) ((len) >= (int) sizeof(struct nlmsghdr) && \ argument
60 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
Ddriver_nl80211.c332 struct nlmsghdr *nlh = (struct nlmsghdr *) err - 1; in error_handler() local
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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
57 #define NLMSG_OK(nlh,len) ((len) >= (int) sizeof(struct nlmsghdr) && \ argument
60 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
Ddriver_nl80211.c350 struct nlmsghdr *nlh = (struct nlmsghdr *) err - 1; in error_handler() local
/third_party/libbpf/src/
Dnlattr.c81 static inline int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len()
158 int libbpf_nla_dump_errormsg(struct nlmsghdr *nlh) in libbpf_nla_dump_errormsg()
Dnetlink.c344 static int __dump_link_nlmsg(struct nlmsghdr *nlh, in __dump_link_nlmsg()
/third_party/ltp/testcases/kernel/containers/netns/
Dnetns_netlink.c48 struct nlmsghdr *nlh; in child_func() local
/third_party/selinux/libselinux/src/
Davc_internal.c148 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in avc_netlink_receive() local
204 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in avc_netlink_process() local
/third_party/libbpf/include/uapi/linux/
Dnetlink.h94 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) argument
95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument
97 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument
100 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
/third_party/ltp/testcases/network/stress/route/
Droute-change-netlink.c195 struct nlmsghdr *nlh; in rtnl_route() local
/third_party/toybox/toys/pending/
Dip.c165 struct nlmsghdr nlh; in send_nlmesg() member