diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2013-12-26 23:15:20 +0400 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2013-12-28 11:24:11 -0800 |
commit | 5e25cf77b9e7d9ae9959db0ac5d731cfbf3b2717 (patch) | |
tree | aabb3e01e9b173089230930fc2694abb82040cf1 /include/utils.h | |
parent | f24a7e720592aa8f267a66b8d80f5617f4c1df61 (diff) |
iproute: Make it possible to specify index on link creation
The RTM_NEWLINK message accepts ifi_index non-zero value and lets
creation of links with given index (if it's free, or course). This
functionality is available since linux-v3.5.
This patch makes this API available via ip tool.
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Diffstat (limited to 'include/utils.h')
-rw-r--r-- | include/utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/utils.h b/include/utils.h index a3e310ee..a4b5b4cc 100644 --- a/include/utils.h +++ b/include/utils.h @@ -156,5 +156,5 @@ extern int inet_get_addr(const char *src, __u32 *dst, struct in6_addr *dst6); struct iplink_req; int iplink_parse(int argc, char **argv, struct iplink_req *req, char **name, char **type, char **link, char **dev, - int *group); + int *group, int *index); #endif /* __UTILS_H__ */ |