summaryrefslogtreecommitdiff
path: root/gatchat/ppp_cp.h
Commit message (Collapse)AuthorAgeFilesLines
* gatchat: Update copyright informationMarcel Holtmann2011-10-101-1/+1
|
* ppp: Add basic length sanity checksDenis Kenzior2011-06-291-1/+1
|
* ppp: Add MAX_IPCP_FAILURE to avoid timeout quicklyZhenhua Zhang2010-07-091-1/+1
| | | | | | We use IPCP NAK response to stall the progress of acquiring the client IP address from DHCP server. So we need to increase the max failure of NAKs in IPCP handshaking.
* ppp: Refactor server-side APIDenis Kenzior2010-06-291-1/+2
| | | | | | | | | | 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.
* ppp: Make pppcp functions const correctDenis Kenzior2010-04-281-2/+2
|
* ppp: use default ACCM when sending LCP codes 1-7Kristen Carlson Accardi2010-04-261-0/+2
| | | | | | | According to the spec, you must transmit all Link Configuration, Termination, and Code-Reject packets as if no options had been negotiated. This requires that when encoding we use the default ACCM of 0xffffffff when sending these types of packets.
* ppp: Add pppcp_signal_downDenis Kenzior2010-04-131-0/+1
| | | | For use when the link is abruptly terminated by the remote side
* ppp: Rip out the now unused option string stuffDenis Kenzior2010-04-081-1/+0
| | | | Using wireshark is much easier
* ppp: Rip out the old option processingDenis Kenzior2010-04-081-11/+27
| | | | Put in the new option processing
* ppp: Move some one-time setters to the protoDenis Kenzior2010-04-081-7/+6
|
* ppp: Add rca callbackDenis Kenzior2010-04-071-7/+9
| | | | | When the other side acks our options, then let us apply these options locally and start using them
* ppp: Add pppcp option iteratorsDenis Kenzior2010-04-071-0/+17
|
* ppp: Move pppcp_timer_data privateDenis Kenzior2010-04-071-8/+0
|
* ppp: Hide away the magic_number in ppp_lcp.cDenis Kenzior2010-04-071-3/+0
|
* ppp: Remove OPTION_ERR, treat errors as rejectDenis Kenzior2010-04-061-1/+0
|
* Refactor: Make struct pppcp declaration privateDenis Kenzior2010-04-051-26/+2
|
* Refactor: add pppcp_set/get_magic_numberDenis Kenzior2010-04-051-0/+3
|
* Refactor: add pppcp_set_prefixDenis Kenzior2010-04-051-0/+1
|
* Refactor: add pppcp_get_pppDenis Kenzior2010-04-051-0/+2
|
* Refactor: add pppcp_set_option_stringsDenis Kenzior2010-04-051-0/+2
|
* Refactor: Move valid code selection to ipcp/lcpDenis Kenzior2010-04-051-0/+14
| | | | We already have a set_valid_codes function, let us use it
* Refactor: Move packet_ops to a static look-upDenis Kenzior2010-04-051-2/+0
| | | | | No need to allocate space for this, as it is always the same for all instances.
* Refactor: Make option_scan more type safeDenis Kenzior2010-04-051-2/+2
|
* Refactor: Make option_process more typesafeDenis Kenzior2010-04-051-1/+2
| | | | | | option_process was declared with two gpointer arguments for the sole reason of being used as a GFunc. Casting to a GFunc or re-writing the foreach as a loop is preferable.
* Refactor: Add pppcp_set_data & pppcp_get_dataDenis Kenzior2010-04-051-0/+4
| | | | | Using these functions makes the code much cleaner than trying to pass the priv pointer everywhere
* Make pppcp_code enum a private structureMarcel Holtmann2010-04-051-14/+0
|
* Make pppcp_event_type enum a private structureMarcel Holtmann2010-04-051-22/+3
|
* Refactor: Move to a transition state tableDenis Kenzior2010-04-051-3/+1
| | | | | | It is much more compact to re-implement the transition states as a table as opposed to functions with switch/case statements. The logic is made much easier to follow and much of the code duplication is eliminated
* Refactor: Make the enum assignments explicitDenis Kenzior2010-04-051-16/+16
| | | | They will be used for certain magic later on
* Refactor: Move the state definition to ppp_cp.cDenis Kenzior2010-04-051-14/+1
|
* ppp: implement Max-Failure counterKristen Carlson Accardi2010-04-051-0/+1
| | | | put a cap on the number of Configure-Nak packets we send.
* Remove PPP CP event_queue handling and process events directlyMarcel Holtmann2010-04-011-1/+0
|
* Remove useless pppcp_protocol_data structureMarcel Holtmann2010-04-011-10/+2
|
* Add debugging for PPP LCP and IPCP optionsMarcel Holtmann2010-04-011-0/+2
|
* ppp: send Protocol-RejectKristen Carlson Accardi2010-03-261-0/+2
| | | | | | | change ppp_decode to store the length of the decoded frame, so that if we have a packet with a protocol we don't understand, we can send Protocol-Reject packets. Modify ppp_cp code to add support for sending Protocol-Reject packet.
* ppp: change debug output to include control protocol prefixKristen Carlson Accardi2010-03-251-1/+9
|
* use separate timers for PPP config and terminateKristen Carlson Accardi2010-03-241-5/+10
| | | | | | Prevent conflicts between config timer information and terminate timer information by providing a new data structure which keeps timer information for config and terminate requests separate.
* Generic PPP control protocol supportKristen Carlson Accardi2010-03-221-0/+139
Implement a generic protocol that can be shared by both the LCP and the NCP implementation.