1 /* 2 * Copyright 2003-2004, Waldemar Kornewald <wkornew@gmx.net> 3 * Distributed under the terms of the MIT License. 4 */ 5 6 #ifndef __K_PPP_PFC_HANDLER__H 7 #define __K_PPP_PFC_HANDLER__H 8 9 #include <KPPPOptionHandler.h> 10 11 12 class _KPPPPFCHandler : public KPPPOptionHandler { 13 public: 14 _KPPPPFCHandler(ppp_pfc_state& localPFCState, ppp_pfc_state& peerPFCState, 15 KPPPInterface& interface); 16 17 virtual status_t AddToRequest(KPPPConfigurePacket& request); 18 virtual status_t ParseNak(const KPPPConfigurePacket& nak); 19 virtual status_t ParseReject(const KPPPConfigurePacket& reject); 20 virtual status_t ParseAck(const KPPPConfigurePacket& ack); 21 22 virtual status_t ParseRequest(const KPPPConfigurePacket& request, 23 int32 index, KPPPConfigurePacket& nak, KPPPConfigurePacket& reject); 24 virtual status_t SendingAck(const KPPPConfigurePacket& ack); 25 26 virtual void Reset(); 27 28 private: 29 ppp_pfc_state &fLocalPFCState, &fPeerPFCState; 30 }; 31 32 33 #endif 34