libnl: /data/src/libnl3/include/netlink/route/link/inet6.h Source File

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
12 extern "C" {
13 #endif
14
15 const char * rtnl_link_inet6_addrgenmode2str (uint8_t mode,
16 char *buf,
17 size_t len);
18
19 uint8_t rtnl_link_inet6_str2addrgenmode (const char *mode);
20
21 extern int rtnl_link_inet6_get_token(struct rtnl_link *,
22 struct nl_addr **);
23
24 extern int rtnl_link_inet6_set_token(struct rtnl_link *,
25 struct nl_addr *);
26
27 extern int rtnl_link_inet6_get_addr_gen_mode(struct rtnl_link *,
28 uint8_t *);
29
30 extern int rtnl_link_inet6_set_addr_gen_mode(struct rtnl_link *,
31 uint8_t);
32
33 extern int rtnl_link_inet6_get_flags(struct rtnl_link *,
34 uint32_t *);
35
36 extern int rtnl_link_inet6_set_flags(struct rtnl_link *,
37 uint32_t);
38
39 /* Link Flags Translations */
40 extern char * rtnl_link_inet6_flags2str(int, char *, size_t);
41 extern int rtnl_link_inet6_str2flags(const char *);
42
43 #ifdef __cplusplus
44 }
45 #endif
46
47 #endif
rtnl_link
Link object.