diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/ipt_LOG.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/ipv4/netfilter/ipt_LOG.c b/net/ipv4/netfilter/ipt_LOG.c index 5234f4f3499a..0a452a54adbe 100644 --- a/net/ipv4/netfilter/ipt_LOG.c +++ b/net/ipv4/netfilter/ipt_LOG.c | |||
@@ -411,12 +411,12 @@ ipt_log_packet(u_int8_t pf, | |||
411 | skb->mac_header != skb->network_header) { | 411 | skb->mac_header != skb->network_header) { |
412 | int i; | 412 | int i; |
413 | const unsigned char *p = skb_mac_header(skb); | 413 | const unsigned char *p = skb_mac_header(skb); |
414 | for (i = 0; i < skb->dev->hard_header_len; i++,p++) | 414 | |
415 | printk("%02x%c", *p, | 415 | printk("%02x", *p++); |
416 | i==skb->dev->hard_header_len - 1 | 416 | for (i = 1; i < skb->dev->hard_header_len; i++, p++) |
417 | ? ' ':':'); | 417 | printk(":%02x", *p); |
418 | } else | 418 | } |
419 | printk(" "); | 419 | printk(" "); |
420 | } | 420 | } |
421 | 421 | ||
422 | dump_packet(loginfo, skb, 0); | 422 | dump_packet(loginfo, skb, 0); |