summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2011-04-10 09:02:47 (GMT)
committerThomas Graf <tgraf@suug.ch>2011-04-10 09:02:47 (GMT)
commit41fb241b7bb88d10300145778e401ab34e3bf46b (patch)
treece719a4289c21b15bfeb798bb4fb544ec3b20d57 /include
parent0893aafcec59219e5f125adff1a61e48b63f9c75 (diff)
downloadlibnl-41fb241b7bb88d10300145778e401ab34e3bf46b.zip
libnl-41fb241b7bb88d10300145778e401ab34e3bf46b.tar.gz
libnl-41fb241b7bb88d10300145778e401ab34e3bf46b.tar.bz2
link: Provide rtnl_link_delete() to delete virtual links
Takes a link object and extracts ifindex and name to build a deletion request message to delete virtual network links.
Diffstat (limited to 'include')
-rw-r--r--include/netlink/route/link.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/netlink/route/link.h b/include/netlink/route/link.h
index 6a9d8de..b9951d6 100644
--- a/include/netlink/route/link.h
+++ b/include/netlink/route/link.h
@@ -102,6 +102,10 @@ extern int rtnl_link_build_change_request(struct rtnl_link *,
extern int rtnl_link_change(struct nl_sock *, struct rtnl_link *,
struct rtnl_link *, int);
+extern int rtnl_link_build_delete_request(const struct rtnl_link *,
+ struct nl_msg **);
+extern int rtnl_link_delete(struct nl_sock *, const struct rtnl_link *);
+
/* Name <-> Index Translations */
extern char * rtnl_link_i2name(struct nl_cache *, int, char *, size_t);
extern int rtnl_link_name2i(struct nl_cache *, const char *);