Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1e7a03f authored by Patrick McHardy's avatar Patrick McHardy
Browse files

netfilter: ctnetlink: dump expectation helper name



Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent a8c28d05
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1512,6 +1512,7 @@ ctnetlink_exp_dump_expect(struct sk_buff *skb,
			  const struct nf_conntrack_expect *exp)
{
	struct nf_conn *master = exp->master;
	struct nf_conntrack_helper *helper;
	long timeout = (exp->timeout.expires - jiffies) / HZ;

	if (timeout < 0)
@@ -1528,6 +1529,9 @@ ctnetlink_exp_dump_expect(struct sk_buff *skb,

	NLA_PUT_BE32(skb, CTA_EXPECT_TIMEOUT, htonl(timeout));
	NLA_PUT_BE32(skb, CTA_EXPECT_ID, htonl((unsigned long)exp));
	helper = rcu_dereference(nfct_help(master)->helper);
	if (helper)
		NLA_PUT_STRING(skb, CTA_EXPECT_HELP_NAME, helper->name);

	return 0;