Re: [IPV6]: ROUTE:read ifname in rt6_info_route()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Brian Haley
Date: Thursday, April 16, 2009 - 9:17 am

Stephen Hemminger wrote:

Does the kernel actually truncate an interface name more than 8 chars long in
the original version?  I did a quick test in userspace and found that

	printf("%*s\n", 1, "foo");

prints:

foo

I think the width specifier is used for *minimum* width, not maximum.

-Brian
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[IPV6]: ROUTE:read ifname in rt6_info_route(), Yuta sugiura, (Thu Apr 16, 4:05 am)
Re: [IPV6]: ROUTE:read ifname in rt6_info_route(), David Miller, (Thu Apr 16, 4:38 am)
Re: [IPV6]: ROUTE:read ifname in rt6_info_route(), Stephen Hemminger, (Thu Apr 16, 8:30 am)
Re: [IPV6]: ROUTE:read ifname in rt6_info_route(), Brian Haley, (Thu Apr 16, 9:17 am)
Re: [IPV6]: ROUTE:read ifname in rt6_info_route(), Andreas Schwab, (Thu Apr 16, 9:47 am)
Re: [IPV6]: ROUTE:read ifname in rt6_info_route(), Stephen Hemminger, (Thu Apr 16, 10:27 am)
Re: [IPV6]: ROUTE:read ifname in rt6_info_route(), Yuta sugiura, (Thu Apr 16, 8:44 pm)
Re: [IPV6]: ROUTE:read ifname in rt6_info_route(), Andreas Schwab, (Fri Apr 17, 3:24 am)