libnl 3.7.0
inet6.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2014 Dan Williams <dcbw@redhat.com>
4 */
5
6#ifndef NETLINK_LINK_INET6_H_
7#define NETLINK_LINK_INET6_H_
8
9#include <netlink/netlink.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15const char * rtnl_link_inet6_addrgenmode2str (uint8_t mode,
16 char *buf,
17 size_t len);
18
19uint8_t rtnl_link_inet6_str2addrgenmode (const char *mode);
20
21extern int rtnl_link_inet6_get_token(struct rtnl_link *,
22 struct nl_addr **);
23
24extern int rtnl_link_inet6_set_token(struct rtnl_link *,
25 struct nl_addr *);
26
27extern int rtnl_link_inet6_get_addr_gen_mode(struct rtnl_link *,
28 uint8_t *);
29
30extern int rtnl_link_inet6_set_addr_gen_mode(struct rtnl_link *,
31 uint8_t);
32
33extern int rtnl_link_inet6_get_flags(struct rtnl_link *,
34 uint32_t *);
35
36extern int rtnl_link_inet6_set_flags(struct rtnl_link *,
37 uint32_t);
38
39/* Link Flags Translations */
40extern char * rtnl_link_inet6_flags2str(int, char *, size_t);
41extern int rtnl_link_inet6_str2flags(const char *);
42
43#ifdef __cplusplus
44}
45#endif
46
47#endif