Subject: Re: [PATCH] net: fix /proc/net/ip_mr_cache display

From: Stephen Hemminger <[email-masked]>
Date: Mon, 1 Dec 2008 09:33:41 -0800

On Mon, 01 Dec 2008 17:49:56 +0100
Benjamin Thery <[email-masked]> wrote:

> Argh, my patch breaks iproute2 command: ip mroute show
> 
> iproute2 uses sscanf() to read /proc/net/ip_mr_cache and expects 6
> fields to be read. For the unresolved entries my patch only displays
> the first three fields. As a consequence, 'ip mroute show' skips the
> unresolved entries. :(
> 
> So we can
> - either forget this patch and keep displaying garbage information
>    in /proc/net/ip[6]_mr_cache for the unresolved entries. (No one
>    complained before)
> - or may be we can just print '-' or 0 for the fields that have no
>    data associated in the unresolved case.
> 
> Tell me what you prefer.
> 
> Benjamin

/proc file formats are part of the Linux ABI and can't change!