xref: /haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/_KPPPMRUHandler.h (revision abdb7d1abbf1686ecb8f7132e576d332f6cc01ed)
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_MRU_HANDLER__H
7 #define __K_PPP_MRU_HANDLER__H
8 
9 #include <KPPPOptionHandler.h>
10 
11 
12 class _KPPPMRUHandler : public KPPPOptionHandler {
13 	public:
14 		_KPPPMRUHandler(KPPPInterface& interface);
15 
16 		virtual status_t AddToRequest(KPPPConfigurePacket& request);
17 		virtual status_t ParseNak(const KPPPConfigurePacket& nak);
18 		virtual status_t ParseReject(const KPPPConfigurePacket& reject);
19 		virtual status_t ParseAck(const KPPPConfigurePacket& ack);
20 
21 		virtual status_t ParseRequest(const KPPPConfigurePacket& request,
22 			int32 index, KPPPConfigurePacket& nak, KPPPConfigurePacket& reject);
23 		virtual status_t SendingAck(const KPPPConfigurePacket& ack);
24 
25 		virtual void Reset();
26 
27 	private:
28 		uint16 fLocalMRU;
29 };
30 
31 
32 #endif
33