libnl: /data/src/libnl3/include/netlink/cli/addr.h Source File

libnl 3.7.0

addr.h
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3 * Copyright (c) 2008-2009 Thomas Graf <tgraf@suug.ch>
4 */
5
6 #ifndef __NETLINK_CLI_ADDR_H_
7 #define __NETLINK_CLI_ADDR_H_
8
9 #include <netlink/route/addr.h>
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 #define nl_cli_addr_alloc_cache(sk) \
16 nl_cli_alloc_cache((sk), "address", rtnl_addr_alloc_cache)
17
18 extern struct rtnl_addr *nl_cli_addr_alloc(void);
19
20 extern void nl_cli_addr_parse_family(struct rtnl_addr *, char *);
21 extern void nl_cli_addr_parse_local(struct rtnl_addr *, char *);
22 extern void nl_cli_addr_parse_dev(struct rtnl_addr *, struct nl_cache *,char *);
23 extern void nl_cli_addr_parse_label(struct rtnl_addr *, char *);
24 extern void nl_cli_addr_parse_peer(struct rtnl_addr *, char *);
25 extern void nl_cli_addr_parse_scope(struct rtnl_addr *, char *);
26 extern void nl_cli_addr_parse_broadcast(struct rtnl_addr *, char *);
27 extern void nl_cli_addr_parse_preferred(struct rtnl_addr *, char *);
28 extern void nl_cli_addr_parse_valid(struct rtnl_addr *, char *);
29
30 #ifdef __cplusplus
31 }
32 #endif
33
34 #endif