|
@@ -556,7 +556,7 @@ nfulnl_log_packet(unsigned int pf,
|
|
|
/* FIXME: do we want to make the size calculation conditional based on
|
|
|
* what is actually present? way more branches and checks, but more
|
|
|
* memory efficient... */
|
|
|
- size = NLMSG_ALIGN(sizeof(struct nfgenmsg))
|
|
|
+ size = NLMSG_SPACE(sizeof(struct nfgenmsg))
|
|
|
+ nla_total_size(sizeof(struct nfulnl_msg_packet_hdr))
|
|
|
+ nla_total_size(sizeof(u_int32_t)) /* ifindex */
|
|
|
+ nla_total_size(sizeof(u_int32_t)) /* ifindex */
|