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.
Showing the changes to include/uapi/linux (3 of 7 files). Show all
Unified · Split
| @@ -33,6 +33,7 @@ · 32 unmodified lines | ||
| 33 | 33 | #define IFNAMSIZ 16 |
| 34 | 34 | #endif /* __UAPI_DEF_IF_IFNAMSIZ */ |
| 35 | 35 | #define IFALIASZ 256 |
| 36 | +#define ALTIFNAMSIZ 128 | |
| 36 | 37 | #include <linux/hdlc/ioctl.h> |
| 37 | 38 | |
| 38 | 39 | /* For glibc compatibility. An empty enum does not compile. */ |
| @@ -167,6 +167,8 @@ enum { · 166 unmodified lines | ||
| 167 | 167 | IFLA_NEW_IFINDEX, |
| 168 | 168 | IFLA_MIN_MTU, |
| 169 | 169 | IFLA_MAX_MTU, |
| 170 | + IFLA_PROP_LIST, | |
| 171 | + IFLA_ALT_IFNAME, /* Alternative ifname */ | |
| 170 | 172 | __IFLA_MAX |
| 171 | 173 | }; |
| 172 | 174 | |
| @@ -164,6 +164,13 @@ enum { · 163 unmodified lines | ||
| 164 | 164 | RTM_GETNEXTHOP, |
| 165 | 165 | #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 | 174 | __RTM_MAX, |
| 168 | 175 | #define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1) |
| 169 | 176 | }; |