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

libnl 3.12.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#include <netlink/route/link.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16extern const char * rtnl_link_inet_devconf2str(int, char *, size_t);
17extern int rtnl_link_inet_str2devconf(const char *);
18
19extern int rtnl_link_inet_get_conf(struct rtnl_link *,
20 const unsigned int, uint32_t *);
21extern 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
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:236
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:266
rtnl_link
Link object.
Definition nl-route.h:29