cli: Show acceleration interface name

And allow selecting a session through it
This commit is contained in:
Samuel Thibault 2024-01-18 02:00:21 +01:00
parent f00ec1c6e4
commit 0ac498d7d3
3 changed files with 25 additions and 4 deletions

View file

@ -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;