libnl 3.7.0

PPP Object

struct rtnl_linkrtnl_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 150 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
linkLink object
flagsPPP file descriptor
Returns
0 on success or a negative error code.

Definition at line 172 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
linkLink object
Returns
PPP file descriptor, 0 if not set or a negative error code.

Definition at line 190 of file ppp.c.