提交 5e2c433d 编写于 作者: Y YOSHIFUJI Hideaki 提交者: David S. Miller

[XFRM] AUDIT: Fix flowlabel text format ambibuity.

Flowlabel text format was not correct and thus ambiguous.
For example, 0x00123 or 0x01203 are formatted as 0x123.
This is not what audit tools want.
Signed-off-by: NYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 653252c2
...@@ -2112,7 +2112,7 @@ static void xfrm_audit_helper_pktinfo(struct sk_buff *skb, u16 family, ...@@ -2112,7 +2112,7 @@ static void xfrm_audit_helper_pktinfo(struct sk_buff *skb, u16 family,
iph6 = ipv6_hdr(skb); iph6 = ipv6_hdr(skb);
audit_log_format(audit_buf, audit_log_format(audit_buf,
" src=" NIP6_FMT " dst=" NIP6_FMT " src=" NIP6_FMT " dst=" NIP6_FMT
" flowlbl=0x%x%x%x", " flowlbl=0x%x%02x%02x",
NIP6(iph6->saddr), NIP6(iph6->saddr),
NIP6(iph6->daddr), NIP6(iph6->daddr),
iph6->flow_lbl[0] & 0x0f, iph6->flow_lbl[0] & 0x0f,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册