diff options
author | Thomas Graf <tgraf@suug.ch> | 2013-02-14 11:42:07 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2013-02-14 11:42:22 (GMT) |
commit | ee4122a12edcf7f10f03fbb7e35fe1388a8c3399 (patch) | |
tree | 537ffdd8ae52dc1e3d7f04f201d92737c7298275 /doc | |
parent | bb9911b5a337aeba34b6be53a2ef654828a92897 (diff) | |
download | libnl-ee4122a12edcf7f10f03fbb7e35fe1388a8c3399.zip libnl-ee4122a12edcf7f10f03fbb7e35fe1388a8c3399.tar.gz libnl-ee4122a12edcf7f10f03fbb7e35fe1388a8c3399.tar.bz2 |
vlan: Provide rtnl_link_vlan_alloc()
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/route.txt | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/doc/route.txt b/doc/route.txt index 61a84c4..cd24eef 100644 --- a/doc/route.txt +++ b/doc/route.txt @@ -693,15 +693,12 @@ int master_index; if (!(master_index = rtnl_link_name2i(link_cache, "eth0"))) /* error */ -/* allocate new link object to configure the vlan device */ -link = rtnl_link_alloc(); +/* allocate new link object of type vlan */ +link = rtnl_link_vlan_alloc(); /* set eth0 to be our master device */ rtnl_link_set_link(link, master_index); -if ((err = rtnl_link_set_type(link, "vlan")) < 0) - /* error */ - rtnl_link_vlan_set_id(link, 10); if ((err = rtnl_link_add(sk, link, NLM_F_CREATE)) < 0) |