History

net: rtnetlink: add linkprop commands to add and delete alternative ifnames

Add two commands to add and delete list of link properties. Implement the first property type along - alternative ifnames. Each net device can have multiple alternative names.

Jiri Pirko committed 7 years ago

Commit 36fbf1e1 parent ff927417 files · +177 −2Browse files

Showing the changes to include/uapi/linux (3 of 7 files). Show all

Unified · Split

3 files
  1. include/uapi/linux/if.h +1 −0
  2. include/uapi/linux/if_link.h +2 −0
  3. include/uapi/linux/rtnetlink.h +7 −0
include/uapi/linux/if.h+1−0
@@ -33,6 +33,7 @@ · 32 unmodified lines
33#define IFNAMSIZ 1633#define IFNAMSIZ 16
34#endif /* __UAPI_DEF_IF_IFNAMSIZ */34#endif /* __UAPI_DEF_IF_IFNAMSIZ */
35#define IFALIASZ 25635#define IFALIASZ 256
36#define ALTIFNAMSIZ 128
36#include <linux/hdlc/ioctl.h>37#include <linux/hdlc/ioctl.h>
37 38
38/* For glibc compatibility. An empty enum does not compile. */39/* For glibc compatibility. An empty enum does not compile. */
include/uapi/linux/if_link.h+2−0
@@ -167,6 +167,8 @@ enum { · 166 unmodified lines
167 IFLA_NEW_IFINDEX,167 IFLA_NEW_IFINDEX,
168 IFLA_MIN_MTU,168 IFLA_MIN_MTU,
169 IFLA_MAX_MTU,169 IFLA_MAX_MTU,
170 IFLA_PROP_LIST,
171 IFLA_ALT_IFNAME, /* Alternative ifname */
170 __IFLA_MAX172 __IFLA_MAX
171};173};
172 174
include/uapi/linux/rtnetlink.h+7−0
@@ -164,6 +164,13 @@ enum { · 163 unmodified lines
164 RTM_GETNEXTHOP,164 RTM_GETNEXTHOP,
165#define RTM_GETNEXTHOP RTM_GETNEXTHOP165#define RTM_GETNEXTHOP RTM_GETNEXTHOP
166 166
167 RTM_NEWLINKPROP = 108,
168#define RTM_NEWLINKPROP RTM_NEWLINKPROP
169 RTM_DELLINKPROP,
170#define RTM_DELLINKPROP RTM_DELLINKPROP
171 RTM_GETLINKPROP,
172#define RTM_GETLINKPROP RTM_GETLINKPROP
173
167 __RTM_MAX,174 __RTM_MAX,
168#define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1)175#define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1)
169};176};