1 //----------------------------------------------------------------------- 2 // This software is part of the OpenBeOS distribution and is covered 3 // by the OpenBeOS license. 4 // 5 // Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de 6 //----------------------------------------------------------------------- 7 8 #ifndef __K_PPP_MRU_HANDLER__H 9 #define __K_PPP_MRU_HANDLER__H 10 11 #include <KPPPOptionHandler.h> 12 13 14 class _KPPPMRUHandler : public KPPPOptionHandler { 15 public: 16 _KPPPMRUHandler(KPPPInterface& interface); 17 18 virtual status_t AddToRequest(KPPPConfigurePacket& request); 19 virtual status_t ParseNak(const KPPPConfigurePacket& nak); 20 virtual status_t ParseReject(const KPPPConfigurePacket& reject); 21 virtual status_t ParseAck(const KPPPConfigurePacket& ack); 22 23 virtual status_t ParseRequest(const KPPPConfigurePacket& request, 24 int32 index, KPPPConfigurePacket& nak, KPPPConfigurePacket& reject); 25 virtual status_t SendingAck(const KPPPConfigurePacket& ack); 26 27 virtual void Reset(); 28 29 private: 30 uint16 fLocalMRU; 31 }; 32 33 34 #endif 35