1 /* SPDX-License-Identifier: LGPL-2.1-only */ 2 /* 3 * Copyright (c) 2010 Thomas Graf <[email protected]> 4 */ 5 6 #ifndef NETLINK_LINK_INET_H_ 7 #define NETLINK_LINK_INET_H_ 8 9 #include <netlink/netlink.h> 10 #include <netlink/route/link.h> 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 extern const char * rtnl_link_inet_devconf2str(int, char *, size_t); 17 extern int rtnl_link_inet_str2devconf(const char *); 18 19 extern int rtnl_link_inet_get_conf(struct rtnl_link *, 20 const unsigned int, uint32_t *); 21 extern int rtnl_link_inet_set_conf(struct rtnl_link *, 22 const unsigned int, uint32_t); 23 24 #ifdef __cplusplus 25 } 26 #endif 27 28 #endif 29