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

libnl 3.7.0

ppp.h
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3 * Copyright (c) 2016 Jonas Johansson <jonasj76@gmail.com>
4 */
5
6 #ifndef NETLINK_LINK_PPP_H_
7 #define NETLINK_LINK_PPP_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 struct rtnl_link *rtnl_link_ppp_alloc(void);
17 extern int rtnl_link_ppp_set_fd(struct rtnl_link *, int32_t);
18 extern int rtnl_link_ppp_get_fd(struct rtnl_link *, int32_t *);
19
20 #ifdef __cplusplus
21 }
22 #endif
23
24 #endif
rtnl_link_ppp_get_fd
int rtnl_link_ppp_get_fd(struct rtnl_link *, int32_t *)
Get PPP file descriptor.
Definition: ppp.c:190
rtnl_link_ppp_alloc
struct rtnl_link * rtnl_link_ppp_alloc(void)
Allocate link object of type PPP.
Definition: ppp.c:150
rtnl_link_ppp_set_fd
int rtnl_link_ppp_set_fd(struct rtnl_link *, int32_t)
Set PPP file descriptor.
Definition: ppp.c:172
rtnl_link
Link object.