Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338283
b: refs/heads/master
c: 0df1a84
h: refs/heads/master
i:
  338281: 3ff1885
  338279: be3f37c
v: v3
  • Loading branch information
Shan Wei authored and Greg Kroah-Hartman committed Nov 28, 2012
1 parent 08cef85 commit 7e70bd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f5d6d9d2def045cdf8d25f836b72ce46629814c
refs/heads/master: 0df1a84e0ec875d1bc12ac6aca325cb3543a7ad6
13 changes: 1 addition & 12 deletions trunk/drivers/staging/gdm72xx/gdm_wimax.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,24 +168,13 @@ static void dump_eth_packet(const char *title, u8 *data, int len)
get_ip_protocol_name(ip_protocol),
get_port_name(port));

#if 1
if (!(data[0] == 0xff && data[1] == 0xff)) {
if (protocol == ETH_P_IP) {
printk(KERN_DEBUG " src=%u.%u.%u.%u\n",
((unsigned char *)&(ih->saddr))[0],
((unsigned char *)&(ih->saddr))[1],
((unsigned char *)&(ih->saddr))[2],
((unsigned char *)&(ih->saddr))[3]);
printk(KERN_DEBUG " src=%pI4\n", &ih->saddr);
} else if (protocol == ETH_P_IPV6) {
#ifdef NIP6
printk(KERN_DEBUG " src=%x:%x:%x:%x:%x:%x:%x:%x\n",
NIP6(ih->saddr));
#else
printk(KERN_DEBUG " src=%pI6\n", &ih->saddr);
#endif
}
}
#endif

#if (DUMP_PACKET & DUMP_SDU_ALL)
printk_hex(data, len);
Expand Down

0 comments on commit 7e70bd6

Please sign in to comment.