libnl 3.5.0

PPP
Routing Library (libnl-route) » Links (Interfaces)

## PPP Object
struct rtnl_link * | rtnl_link_ppp_alloc (void)
| Allocate link object of type PPP. More...
int | rtnl_link_ppp_set_fd (struct rtnl_link *link, int32_t fd)
| Set PPP file descriptor. More...
int | rtnl_link_ppp_get_fd (struct rtnl_link *link, int32_t *fd)
| Get PPP file descriptor. More...

## Detailed Description

Link Type Name: "ppp"

PPP Documentation (Netlink Routing Development Guide)

## Function Documentation

## ◆ rtnl_link_ppp_alloc()

struct rtnl_link* rtnl_link_ppp_alloc | ( | void |  | ) |

Allocate link object of type PPP.

Returns
  Allocated link object or NULL.

Definition at line 156 of file ppp.c.

References rtnl_link_alloc(), rtnl_link_put(), and rtnl_link_set_type().

Here is the call graph for this function:

## ◆ rtnl_link_ppp_set_fd()

int rtnl_link_ppp_set_fd | ( | struct rtnl_link * | link,
|  | int32_t | fd
| ) |  |

Set PPP file descriptor.

Parameters

  link | Link object
  flags | PPP file descriptor

Returns
  0 on success or a negative error code.

Definition at line 179 of file ppp.c.

## ◆ rtnl_link_ppp_get_fd()

int rtnl_link_ppp_get_fd | ( | struct rtnl_link * | link,
|  | int32_t * | fd
| ) |  |

Get PPP file descriptor.

Parameters

  link | Link object

Returns
  PPP file descriptor, 0 if not set or a negative error code.

Definition at line 197 of file ppp.c.