All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net 0/2] ip: fix creation flags reported in RTM_NEWROUTE events
@ 2016-09-07 15:18 Guillaume Nault
  2016-09-07 15:20 ` [PATCH net 1/2] ipv4: fix value of ->nlmsg_flags " Guillaume Nault
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Guillaume Nault @ 2016-09-07 15:18 UTC (permalink / raw)
  To: netdev; +Cc: Roopa Prabhu, Milan Kocian, Michal Kubeček, Nicolas Dichtel

Netlink messages sent to user-space upon RTM_NEWROUTE events have their
nlmsg_flags field inconsistently set. While the NLM_F_REPLACE and
NLM_F_APPEND bits are correctly handled, NLM_F_CREATE and NLM_F_EXCL
are always 0.

This series sets the NLM_F_CREATE and NLM_F_EXCL bits when applicable,
for IPv4 and IPv6.

Since IPv6 ignores the NLM_F_APPEND flags in requests, this flag isn't
reported in RTM_NEWROUTE IPv6 events. This keeps IPv6 internal
consistency (same flag semantic for user requests and kernel events) at
the cost of bringing different flag interpretation for IPv4 and IPv6.

Guillaume Nault (2):
  ipv4: fix value of ->nlmsg_flags reported in RTM_NEWROUTE events
  ipv6: report NLM_F_CREATE and NLM_F_EXCL flags in RTM_NEWROUTE events

 net/ipv4/fib_trie.c | 10 +++++++---
 net/ipv6/ip6_fib.c  |  6 +++++-
 2 files changed, 12 insertions(+), 4 deletions(-)

-- 
2.9.3

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

end of thread, other threads:[~2016-09-12 10:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-07 15:18 [PATCH net 0/2] ip: fix creation flags reported in RTM_NEWROUTE events Guillaume Nault
2016-09-07 15:20 ` [PATCH net 1/2] ipv4: fix value of ->nlmsg_flags " Guillaume Nault
2016-09-07 15:21 ` [PATCH net 2/2] ipv6: report NLM_F_CREATE and NLM_F_EXCL flags " Guillaume Nault
2016-09-09 23:51 ` [PATCH net 0/2] ip: fix creation flags reported " David Miller
2016-09-12 10:29   ` Guillaume Nault

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.