projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
653252c
)
[XFRM] AUDIT: Fix flowlabel text format ambibuity.
author
YOSHIFUJI Hideaki
<yoshfuji@linux-ipv6.org>
Sun, 27 Apr 2008 05:24:10 +0000
(22:24 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sun, 27 Apr 2008 21:26:48 +0000
(14:26 -0700)
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: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_state.c
patch
|
blob
|
blame
|
history
diff --git
a/net/xfrm/xfrm_state.c
b/net/xfrm/xfrm_state.c
index 5dcc10b93c861df1e675589947137bf0006d392e..fac27ce770d53d23653ac0418c281685542f963f 100644
(file)
--- a/
net/xfrm/xfrm_state.c
+++ b/
net/xfrm/xfrm_state.c
@@
-2112,7
+2112,7
@@
static void xfrm_audit_helper_pktinfo(struct sk_buff *skb, u16 family,
iph6 = ipv6_hdr(skb);
audit_log_format(audit_buf,
" src=" NIP6_FMT " dst=" NIP6_FMT
- " flowlbl=0x%x%
x%
x",
+ " flowlbl=0x%x%
02x%02
x",
NIP6(iph6->saddr),
NIP6(iph6->daddr),
iph6->flow_lbl[0] & 0x0f,