[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090416.043800.171462037.davem@davemloft.net>
Date: Thu, 16 Apr 2009 04:38:00 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: ysugiura@...aclelinux.com
Cc: netdev@...r.kernel.org
Subject: Re: [IPV6]: ROUTE:read ifname in rt6_info_route()
From: Yuta sugiura <ysugiura@...aclelinux.com>
Date: Thu, 16 Apr 2009 20:05:05 +0900
> Hi,
> I have a suggestion about /proc/net/IPv6_route format.
> In rt6_info_route(), interface name is treated as a maximum 8
> characters.
> But the type of (struct rt6_inf *)->u.dst.dev->name is char[IFNAMESIZ=
> 16]
> so, I think that it should change "%8s" to "%16s".
Isn't there a way to pass the field length as a paramenter
to formatting functions? Then we can just pass in
IFNAMESIZE as that parameter.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists