On Thu, Oct 19, 2023 at 01:52:52PM +0200, Florian Westphal wrote: > > - return nfnetlink_unicast(skb2, net, NETLINK_CB(skb).portid); > > + tablename = nla_strdup(nla[NFTA_RULE_TABLE], GFP_ATOMIC); > > + buf = kasprintf(GFP_ATOMIC, "%s:%u", tablename, nft_net->base_seq); > > You can use %.*s:%u", nla_len(nla[NFTA_RULE_TABLE]), nla_data(nla[NFTA_RULE_TABLE) ... > here to avoid the extra strdup. Nice, thanks!