Home
last modified time | relevance | path

Searched refs:NLA_HDRLEN (Results 1 – 4 of 4) sorted by relevance

/tools/lib/bpf/
Dnlattr.h71 return (char *) nla + NLA_HDRLEN; in libbpf_nla_data()
95 return nla->nla_len - NLA_HDRLEN; in libbpf_nla_len()
Dnetlink.c159 nla->nla_len = NLA_HDRLEN; in bpf_set_link_xdp_fd()
164 nla_xdp->nla_len = NLA_HDRLEN + sizeof(int); in bpf_set_link_xdp_fd()
165 memcpy((char *)nla_xdp + NLA_HDRLEN, &fd, sizeof(fd)); in bpf_set_link_xdp_fd()
172 nla_xdp->nla_len = NLA_HDRLEN + sizeof(flags); in bpf_set_link_xdp_fd()
173 memcpy((char *)nla_xdp + NLA_HDRLEN, &flags, sizeof(flags)); in bpf_set_link_xdp_fd()
/tools/accounting/
Dgetdelays.c39 #define NLA_DATA(na) ((void *)((char*)(na) + NLA_HDRLEN))
40 #define NLA_PAYLOAD(len) (len - NLA_HDRLEN)
139 na->nla_len = nla_len + NLA_HDRLEN; in send_cmd()
/tools/include/uapi/linux/
Dnetlink.h232 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr))) macro