Re: /proc/net/arp silliness

From: David Ford (david@kalifornia.com)
Date: Tue Apr 25 2000 - 02:05:20 EST


as promised, here is the patch.

-d


--- net/ipv4/arp.c~ Mon Apr 24 18:02:40 2000
+++ net/ipv4/arp.c Tue Apr 25 00:02:48 2000
@@ -1059,15 +1059,21 @@
                 }
 #endif
 
- size = sprintf(buffer+len,
- "%u.%u.%u.%u0x%-10x0x%-10x%s",
- NIPQUAD(*(u32*)n->primary_key),
- hatype,
- arp_state_to_flags(n),
- hbuffer);
- size += sprintf(buffer+len+size,
- " %-17s %s\n",
- "*", dev->name);
+ {
+ char tbuf[16];
+ sprintf(tbuf, "%u.%u.%u.%u", NIPQUAD(*(u32*)n->primary_key));
+
+ size = sprintf(buffer+len, "%-16s 0x%-10x0x%-10x%s",
+ tbuf,
+ hatype,
+ arp_state_to_flags(n),
+ hbuffer);
+
+ size += sprintf(buffer+len+size,
+ " %-8s %s\n",
+ "*", dev->name);
+ }
+
                         read_unlock(&n->lock);
 
                         len += size;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:09 EST