Commit 9453faa
committed
net, neigh: Reject creating NUD_PERMANENT with NTF_MANAGED entries
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2193175
commit 30fc7ef
Author: Daniel Borkmann <daniel@iogearbox.net>
Date: Wed Oct 13 15:21:40 2021 +0200
net, neigh: Reject creating NUD_PERMANENT with NTF_MANAGED entries
The combination of NUD_PERMANENT + NTF_MANAGED is not supported and does
not make sense either given the former indicates a static/fixed neighbor
entry whereas the latter a dynamically resolved one. While it is possible
to transition from one over to the other, we should however reject such
creation attempts.
Fixes: 7482e38 ("net, neigh: Add NTF_MANAGED flag for managed neighbor entries")
Suggested-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>1 parent 45ee5d9 commit 9453faa
1 file changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2002 | 2002 | | |
2003 | 2003 | | |
2004 | 2004 | | |
2005 | | - | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
2006 | 2008 | | |
2007 | 2009 | | |
2008 | 2010 | | |
2009 | 2011 | | |
2010 | 2012 | | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
2011 | 2018 | | |
2012 | | - | |
2013 | | - | |
2014 | 2019 | | |
2015 | 2020 | | |
2016 | 2021 | | |
| |||
0 commit comments