Age | Commit message (Collapse) | Author | Files | Lines |
|
The biggest update here is that the server needs to be in dormant mode
by default, so as not to send a Configure-Req to the peer until the peer
is ready. This requires adding special constructor for LCP to
initialize it to Stopped state instead of initial state.
Along with this, we pass the server local IP directly to the ppp server
constructor.
|
|
|
|
|
|
1. Add interface to set PPP server info by g_at_ppp_set_server_info.
2. Pass local and peer address through IPCP handshaking.
|
|
Right now it is very hard to figure out whether we should be calling the
connect callback or the disconnect callback. So refactor as follows:
- Connect callback is only called once the net is actually up
- Disconnect callback is called once ppp is down, with a reason
for why it is so.
|
|
|
|
Marcel: recording right now only works for PPP, so we'd need some sort
of multi-protocol support.
So for now expose set_recording to be used through the main PPP object.
HDLC object recording support needs to be extended.
|
|
|
|
|
|
Also refactor the set credentials function, we will be removing the auth
object shortly
|
|
|
|
|
|
|
|
|
|
The ppp argument to the current disconnect callback is useless as the
ppp structure is most likely stored in user data anyway.
|
|
The connect callback was not giving enough information and the
information it was providing was not in a convenient form.
- Provide the ppp interface name (e.g. tun0)
- Provide ip, dns1 & dns2 as strings
- Do not send the ppp structure in the callback, it is most likely
present in the user data anyway
|
|
Also use proper indentation style
|
|
Authentication support with CHAP and MD5
|
|
This patch implements the basic PPP protocol. LCP, NCP etc. are handled in
a different patch.
|