summaryrefslogtreecommitdiffstats
path: root/gatchat/ppp_cp.h
AgeCommit message (Collapse)AuthorFilesLines
2011-10-10gatchat: Update copyright informationMarcel Holtmann1-1/+1
2011-06-29ppp: Add basic length sanity checksDenis Kenzior1-1/+1
2010-07-09ppp: Add MAX_IPCP_FAILURE to avoid timeout quicklyZhenhua Zhang1-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.
2010-06-29ppp: Refactor server-side APIDenis Kenzior1-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.
2010-04-28ppp: Make pppcp functions const correctDenis Kenzior1-2/+2
2010-04-26ppp: use default ACCM when sending LCP codes 1-7Kristen Carlson Accardi1-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.
2010-04-13ppp: Add pppcp_signal_downDenis Kenzior1-0/+1
For use when the link is abruptly terminated by the remote side
2010-04-08ppp: Rip out the now unused option string stuffDenis Kenzior1-1/+0
Using wireshark is much easier
2010-04-08ppp: Rip out the old option processingDenis Kenzior1-11/+27
Put in the new option processing
2010-04-08ppp: Move some one-time setters to the protoDenis Kenzior1-7/+6
2010-04-07ppp: Add rca callbackDenis Kenzior1-7/+9
When the other side acks our options, then let us apply these options locally and start using them
2010-04-07ppp: Add pppcp option iteratorsDenis Kenzior1-0/+17
2010-04-07ppp: Move pppcp_timer_data privateDenis Kenzior1-8/+0
2010-04-07ppp: Hide away the magic_number in ppp_lcp.cDenis Kenzior1-3/+0
2010-04-06ppp: Remove OPTION_ERR, treat errors as rejectDenis Kenzior1-1/+0
2010-04-05Refactor: Make struct pppcp declaration privateDenis Kenzior1-26/+2
2010-04-05Refactor: add pppcp_set/get_magic_numberDenis Kenzior1-0/+3
2010-04-05Refactor: add pppcp_set_prefixDenis Kenzior1-0/+1
2010-04-05Refactor: add pppcp_get_pppDenis Kenzior1-0/+2
2010-04-05Refactor: add pppcp_set_option_stringsDenis Kenzior1-0/+2
2010-04-05Refactor: Move valid code selection to ipcp/lcpDenis Kenzior1-0/+14
We already have a set_valid_codes function, let us use it
2010-04-05Refactor: Move packet_ops to a static look-upDenis Kenzior1-2/+0
No need to allocate space for this, as it is always the same for all instances.
2010-04-05Refactor: Make option_scan more type safeDenis Kenzior1-2/+2
2010-04-05Refactor: Make option_process more typesafeDenis Kenzior1-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.
2010-04-05Refactor: Add pppcp_set_data & pppcp_get_dataDenis Kenzior1-0/+4
Using these functions makes the code much cleaner than trying to pass the priv pointer everywhere
2010-04-05Make pppcp_code enum a private structureMarcel Holtmann1-14/+0
2010-04-05Make pppcp_event_type enum a private structureMarcel Holtmann1-22/+3
2010-04-05Refactor: Move to a transition state tableDenis Kenzior1-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
2010-04-05Refactor: Make the enum assignments explicitDenis Kenzior1-16/+16
They will be used for certain magic later on
2010-04-05Refactor: Move the state definition to ppp_cp.cDenis Kenzior1-14/+1
2010-04-05ppp: implement Max-Failure counterKristen Carlson Accardi1-0/+1
put a cap on the number of Configure-Nak packets we send.
2010-04-01Remove PPP CP event_queue handling and process events directlyMarcel Holtmann1-1/+0
2010-04-01Remove useless pppcp_protocol_data structureMarcel Holtmann1-10/+2
2010-04-01Add debugging for PPP LCP and IPCP optionsMarcel Holtmann1-0/+2
2010-03-26ppp: send Protocol-RejectKristen Carlson Accardi1-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.
2010-03-25ppp: change debug output to include control protocol prefixKristen Carlson Accardi1-1/+9
2010-03-24use separate timers for PPP config and terminateKristen Carlson Accardi1-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.
2010-03-22Generic PPP control protocol supportKristen Carlson Accardi1-0/+139
Implement a generic protocol that can be shared by both the LCP and the NCP implementation.