mikroSDK Reference Manual
ppp_misc.h
Go to the documentation of this file.
1
31#ifndef _PPP_MISC_H
32#define _PPP_MISC_H
33
34//Dependencies
35#include "core/net.h"
36#include "ppp/ppp.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//PPP related functions
44error_t pppSendConfigureAckNak(PppContext *context,
45 const PppConfigurePacket *configureReqPacket, PppProtocol protocol, PppCode code);
46
47error_t pppSendTerminateReq(PppContext *context,
48 uint8_t identifier, PppProtocol protocol);
49
50error_t pppSendTerminateAck(PppContext *context,
51 uint8_t identifier, PppProtocol protocol);
52
53error_t pppSendCodeRej(PppContext *context, const PppPacket *packet,
54 uint8_t identifier, PppProtocol protocol);
55
56error_t pppSendProtocolRej(PppContext *context, uint8_t identifier,
57 uint16_t protocol, const uint8_t *information, size_t length);
58
59error_t pppSendEchoRep(PppContext *context,
60 const PppEchoPacket *echoReqPacket, PppProtocol protocol);
61
62error_t pppAddOption(PppConfigurePacket *packet, uint8_t optionType,
63 const void *optionValue, uint8_t optionLen);
64
65//C++ guard
66#ifdef __cplusplus
67}
68#endif
69
70#endif
error_t
Error codes.
Definition error.h:43
TCP/IP stack core.
PPP (Point-to-Point Protocol)
PppProtocol
Protocol field values.
Definition ppp.h:198
PppCode
Code field values.
Definition ppp.h:215