Re: [PATCH net-next 6/7] net: ipv4: return route match in GETROUTE request

2017-01-11 Thread David Ahern
On 1/10/17 6:40 PM, David Miller wrote: > From: David Ahern > Date: Mon, 9 Jan 2017 13:32:50 -0800 > >> diff --git a/include/uapi/linux/rtnetlink.h b/include/uapi/linux/rtnetlink.h >> index 8c93ad1ef9ab..471384b72cea 100644 >> --- a/include/uapi/linux/rtnetlink.h >>

Re: [PATCH net-next 6/7] net: ipv4: return route match in GETROUTE request

2017-01-10 Thread David Miller
From: David Ahern Date: Mon, 9 Jan 2017 13:32:50 -0800 > diff --git a/include/uapi/linux/rtnetlink.h b/include/uapi/linux/rtnetlink.h > index 8c93ad1ef9ab..471384b72cea 100644 > --- a/include/uapi/linux/rtnetlink.h > +++ b/include/uapi/linux/rtnetlink.h > @@ -319,6

[PATCH net-next 6/7] net: ipv4: return route match in GETROUTE request

2017-01-09 Thread David Ahern
Add the matching route returned in fib_result as a new, nested attribute, RTA_ROUTE_GET, to the GETROUTE response. The rtmsg struct is added use a new attribute, RTA_ROUTE_GET_RTM. These attributes allow userspace to show which route was matched for a GETROUTE request. Signed-off-by: David Ahern