The fragment offset in ipv4/ipv6 is a 16bit field, so use u16 instead of unsigned int. On 64bit: 40 bytes to 32 bytes. By extension this also reduces nft_pktinfo (56 to 48 byte).
Showing the changes to include/linux/netfilter (1 of 2 files). Show all
Unified · Split
| @@ -36,8 +36,8 @@ struct xt_action_param { · 35 unmodified lines | ||
| 36 | 36 | const void *matchinfo, *targinfo; |
| 37 | 37 | }; |
| 38 | 38 | const struct nf_hook_state *state; |
| 39 | − int fragoff; | |
| 40 | 39 | unsigned int thoff; |
| 40 | + u16 fragoff; | |
| 41 | 41 | bool hotdrop; |
| 42 | 42 | }; |
| 43 | 43 | |