diff options
author | Dan Williams <dcbw@redhat.com> | 2014-07-25 19:36:29 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-07-30 16:45:51 (GMT) |
commit | 558f966782539f6d975da705fd73cea561c9dc83 (patch) | |
tree | 902129d2871c42a533af65a4d6249f0b561c4d6b /include | |
parent | b51815a9dbd8e45fd2558bbe337fb360ca2fd861 (diff) | |
download | libnl-558f966782539f6d975da705fd73cea561c9dc83.zip libnl-558f966782539f6d975da705fd73cea561c9dc83.tar.gz libnl-558f966782539f6d975da705fd73cea561c9dc83.tar.bz2 |
link/inet6: add link IPv6 address generation mode support
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/Makefile.am | 1 | ||||
-rw-r--r-- | include/netlink/route/link/inet6.h | 37 |
2 files changed, 38 insertions, 0 deletions
diff --git a/include/Makefile.am b/include/Makefile.am index 9833def..90f647c 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -48,6 +48,7 @@ nobase_libnlinclude_HEADERS = \ netlink/route/link/bridge.h \ netlink/route/link/can.h \ netlink/route/link/inet.h \ + netlink/route/link/inet6.h \ netlink/route/link/info-api.h \ netlink/route/link/macvlan.h \ netlink/route/link/vlan.h \ diff --git a/include/netlink/route/link/inet6.h b/include/netlink/route/link/inet6.h new file mode 100644 index 0000000..8ffeab2 --- /dev/null +++ b/include/netlink/route/link/inet6.h @@ -0,0 +1,37 @@ +/* + * netlink/route/link/inet6.h INET6 Link Module + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation version 2.1 + * of the License. + * + * Copyright (c) 2014 Dan Williams <dcbw@redhat.com> + */ + +#ifndef NETLINK_LINK_INET6_H_ +#define NETLINK_LINK_INET6_H_ + +#include <netlink/netlink.h> + +#ifdef __cplusplus +extern "C" { +#endif + +const char * rtnl_link_inet6_addrgenmode2str (uint8_t mode, + char *buf, + size_t len); + +uint8_t rtnl_link_inet6_str2addrgenmode (const char *mode); + +extern int rtnl_link_inet6_get_addr_gen_mode(struct rtnl_link *, + uint8_t *); + +extern int rtnl_link_inet6_set_addr_gen_mode(struct rtnl_link *, + uint8_t); + +#ifdef __cplusplus +} +#endif + +#endif |