]> granicus.if.org Git - libnl/commit
ipvlan: don't check for valid @mode argument in rtnl_link_ipvlan_set_mode()
authorThomas Haller <thaller@redhat.com>
Fri, 26 Jun 2015 16:01:21 +0000 (18:01 +0200)
committerThomas Haller <thaller@redhat.com>
Fri, 26 Jun 2015 16:06:06 +0000 (18:06 +0200)
commit371226b834b662e6ad99400ffc20450e574ca5c2
tree99507e578f6f8589821fd998c2456ff233bb3a3f
parentb4afcadc30f0133135c6f8b062d6e1ca68b645a7
ipvlan: don't check for valid @mode argument in rtnl_link_ipvlan_set_mode()

In the future kernel might support more modes. Don't be so
strict in rtnl_link_ipvlan_set_mode() and accept any uint16
mode.
This way when adding new modes, rtnl_link_ipvlan_set_mode() does not
need to be changed.

If the user passes an invalid value and sends a message to the kernel,
it will be rejected there.

http://lists.infradead.org/pipermail/libnl/2015-June/001902.html

Fixes: 7de5be85bf9aa3eb9f022e4813226135e89adec2
Signed-off-by: Thomas Haller <thaller@redhat.com>
lib/route/link/ipvlan.c