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

libnl 3.7.0

inet.h
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3 * Copyright (c) 2010 Thomas Graf <tgraf@suug.ch>
4 */
5
6 #ifndef NETLINK_LINK_INET_H_
7 #define NETLINK_LINK_INET_H_
8
9 #include <netlink/netlink.h>
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 extern const char * rtnl_link_inet_devconf2str(int, char *, size_t);
16 extern int rtnl_link_inet_str2devconf(const char *);
17
18 extern int rtnl_link_inet_get_conf(struct rtnl_link *,
19 const unsigned int, uint32_t *);
20 extern int rtnl_link_inet_set_conf(struct rtnl_link *,
21 const unsigned int, uint32_t);
22
23 #ifdef __cplusplus
24 }
25 #endif
26
27 #endif
rtnl_link_inet_get_conf
int rtnl_link_inet_get_conf(struct rtnl_link *, const unsigned int, uint32_t *)
Get value of a ipv4 link configuration setting.
Definition: inet.c:232
rtnl_link_inet_set_conf
int rtnl_link_inet_set_conf(struct rtnl_link *, const unsigned int, uint32_t)
Change value of a ipv4 link configuration setting.
Definition: inet.c:262
rtnl_link
Link object.