bfp, xdp: make type explicit
explicit the type of the nlattr
Signed-off-by: Arthur Gautier <baloo@gandi.net>
diff --git a/src/cc/libbpf.c b/src/cc/libbpf.c
index 859dc6d..3938fd3 100644
--- a/src/cc/libbpf.c
+++ b/src/cc/libbpf.c
@@ -637,7 +637,7 @@
// we specify the FD passed over by the user
nla_xdp->nla_type = 1/*IFLA_XDP_FD*/;
- nla_xdp->nla_len = NLA_HDRLEN + sizeof(int);
+ nla_xdp->nla_len = NLA_HDRLEN + sizeof(progfd);
memcpy((char *)nla_xdp + NLA_HDRLEN, &progfd, sizeof(progfd));
nla->nla_len = NLA_HDRLEN + nla_xdp->nla_len;