ipcp: try to re-send CHAP ack on timeout
If it was lost, some clients (e.g. pppd) may not try to re-send their CHAP reply.
This commit is contained in:
parent
b3b052a483
commit
366faaea76
3 changed files with 24 additions and 10 deletions
3
l2tpns.h
3
l2tpns.h
|
|
@ -419,6 +419,8 @@ typedef struct
|
|||
|
||||
// authentication to use
|
||||
int lcp_authtype;
|
||||
// whether authentication is over
|
||||
int lcp_authdone;
|
||||
|
||||
// Last Received LCP ConfReq and its length
|
||||
uint8_t lcp_last_received_confreq[MAXLCPLENGTH];
|
||||
|
|
@ -998,6 +1000,7 @@ void processmpframe(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l, uint8_t e
|
|||
void processipv6in(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l);
|
||||
void processccp(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l);
|
||||
void sendchap(sessionidt s, tunnelidt t);
|
||||
void resendchapack(sessionidt s, tunnelidt t, uint16_t auth_id);
|
||||
uint8_t *makeppp(uint8_t *b, int size, uint8_t *p, int l, sessionidt s, tunnelidt t, uint16_t mtype, uint8_t prio, bundleidt bid, uint8_t mp_bits);
|
||||
uint8_t *opt_makeppp(uint8_t *p, int l, sessionidt s, tunnelidt t, uint16_t mtype, uint8_t prio, bundleidt bid, uint8_t mp_bits);
|
||||
void sendlcp(sessionidt s, tunnelidt t);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue