diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-10-05 01:18:40 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-10-05 01:18:40 +0000 |
commit | 012bb3e61e5eced6c610f9e036372bf0c8def2d1 (patch) | |
tree | 87efc733f9b164e8c85c0336f92c8fb7eff6d183 /net/ipv4/arp.c | |
parent | 625a1589d3d6464b5d90b8a0918789e3afffd220 (diff) |
Merge with Linux 2.4.0-test9. Please check DECstation, I had a number
of rejects to fixup while integrating Linus patches. I also found
that this kernel will only boot SMP on Origin; the UP kernel freeze
soon after bootup with SCSI timeout messages. I commit this anyway
since I found that the last CVS versions had the same problem.
Diffstat (limited to 'net/ipv4/arp.c')
-rw-r--r-- | net/ipv4/arp.c | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index 2dfd1763c..c173b9eb3 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c @@ -1066,16 +1066,13 @@ static int arp_get_info(char *buffer, char **start, off_t offset, int length) { char tbuf[16]; sprintf(tbuf, "%u.%u.%u.%u", NIPQUAD(*(u32*)n->primary_key)); - - size = sprintf(buffer+len, "%-16s 0x%-10x0x%-10x%s", + size = sprintf(buffer+len, "%-16s 0x%-10x0x%-10x%s" + " * %s\n", tbuf, hatype, arp_state_to_flags(n), - hbuffer); - - size += sprintf(buffer+len+size, - " %-8s %s\n", - "*", dev->name); + hbuffer, + dev->name); } read_unlock(&n->lock); @@ -1099,15 +1096,17 @@ static int arp_get_info(char *buffer, char **start, off_t offset, int length) struct net_device *dev = n->dev; int hatype = dev ? dev->type : 0; - size = sprintf(buffer+len, - "%u.%u.%u.%u0x%-10x0x%-10x%s", - NIPQUAD(*(u32*)n->key), - hatype, - ATF_PUBL|ATF_PERM, - "00:00:00:00:00:00"); - size += sprintf(buffer+len+size, - " %-17s %s\n", - "*", dev ? dev->name : "*"); + { + char tbuf[16]; + sprintf(tbuf, "%u.%u.%u.%u", NIPQUAD(*(u32*)n->key)); + size = sprintf(buffer+len, "%-16s 0x%-10x0x%-10x%s" + " * %s\n", + tbuf, + hatype, + ATF_PUBL|ATF_PERM, + "00:00:00:00:00:00", + dev ? dev->name : "*"); + } len += size; pos += size; |