netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [iproute2 net-next v2 0/3] ip netconf improvements
@ 2017-03-24  2:51 David Ahern
  2017-03-24  2:51 ` [iproute2 net-next v2 1/3] netlink: Add flag to suppress print of nlmsg error David Ahern
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: David Ahern @ 2017-03-24  2:51 UTC (permalink / raw)
  To: netdev, stephen; +Cc: nicolas.dichtel, David Ahern

Currently, ip netconf only shows data for ipv4 and ipv6 for dumps
and just ipv4 for device requests. Improve the user experience by
using the new kernel patch to dump all address families that have
registered. For example, if mpls_router module is loaded then mpls
values are displayed along with ipv4 and ipv6.

If the new feature is not supported (new iproute2 on older kernel)
the kernel returns the nlmsg error EOPNOTSUPP which can be trapped
and fallback to existing behavior.

v2
- fixed index conversion in patch 3 per nicholas' comment

David Ahern (3):
  netlink: Add flag to suppress print of nlmsg error
  ip netconf: Show all address families by default in dumps
  ip netconf: show all families on dev request

 include/libnetlink.h |  1 +
 ip/ipnetconf.c       | 36 +++++++++++++++++++++++++-----------
 lib/libnetlink.c     |  3 ++-
 3 files changed, 28 insertions(+), 12 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-04-14 23:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-24  2:51 [iproute2 net-next v2 0/3] ip netconf improvements David Ahern
2017-03-24  2:51 ` [iproute2 net-next v2 1/3] netlink: Add flag to suppress print of nlmsg error David Ahern
2017-03-24  2:51 ` [iproute2 net-next v2 2/3] ip netconf: Show all address families by default in dumps David Ahern
2017-03-24  2:51 ` [iproute2 net-next v2 3/3] ip netconf: show all families on dev request David Ahern
2017-03-24  8:37 ` [iproute2 net-next v2 0/3] ip netconf improvements Nicolas Dichtel
2017-04-04 21:07 ` David Ahern
2017-04-04 21:39   ` Stephen Hemminger
2017-04-05 12:18     ` David Ahern
2017-04-14 23:02 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).