cli: Show acceleration interface name
And allow selecting a session through it
This commit is contained in:
parent
f00ec1c6e4
commit
0ac498d7d3
3 changed files with 25 additions and 4 deletions
6
l2tpns.h
6
l2tpns.h
|
|
@ -31,6 +31,8 @@
|
|||
// Tunnel Id reserved for pppoe
|
||||
#define TUNNEL_ID_PPPOE 1
|
||||
|
||||
#define PPP_IF_PREFIX "ppp"
|
||||
|
||||
#define RADIUS_SHIFT 6
|
||||
#define RADIUS_FDS (1 << RADIUS_SHIFT)
|
||||
#define RADIUS_MASK ((1 << RADIUS_SHIFT) - 1)
|
||||
|
|
@ -459,7 +461,9 @@ typedef struct
|
|||
|
||||
// ppp interface
|
||||
int ppp_if_fd;
|
||||
// ppp interface index
|
||||
// ppp interface number (ppp%d)
|
||||
int ppp_if_unit;
|
||||
// ppp interface index (for rtnetlink etc.)
|
||||
int ppp_if_idx;
|
||||
} sessionlocalt;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue