Webserver+3d print
Embed:
(wiki syntax)
Show/hide line numbers
ppp_misc.h
Go to the documentation of this file.
00001 /** 00002 * @file ppp_misc.h 00003 * @brief PPP miscellaneous functions 00004 * 00005 * @section License 00006 * 00007 * Copyright (C) 2010-2017 Oryx Embedded SARL. All rights reserved. 00008 * 00009 * This file is part of CycloneTCP Open. 00010 * 00011 * This program is free software; you can redistribute it and/or 00012 * modify it under the terms of the GNU General Public License 00013 * as published by the Free Software Foundation; either version 2 00014 * of the License, or (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License 00022 * along with this program; if not, write to the Free Software Foundation, 00023 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00024 * 00025 * @author Oryx Embedded SARL (www.oryx-embedded.com) 00026 * @version 1.7.6 00027 **/ 00028 00029 #ifndef _PPP_MISC_H 00030 #define _PPP_MISC_H 00031 00032 //Dependencies 00033 #include "core/net.h" 00034 #include "ppp/ppp.h" 00035 00036 //PPP related functions 00037 error_t pppSendConfigureAckNak(PppContext *context, 00038 const PppConfigurePacket *configureReqPacket, PppProtocol protocol, PppCode code); 00039 00040 error_t pppSendTerminateReq(PppContext *context, 00041 uint8_t identifier, PppProtocol protocol); 00042 00043 error_t pppSendTerminateAck(PppContext *context, 00044 uint8_t identifier, PppProtocol protocol); 00045 00046 error_t pppSendCodeRej(PppContext *context, const PppPacket *packet, 00047 uint8_t identifier, PppProtocol protocol); 00048 00049 error_t pppSendProtocolRej(PppContext *context, uint8_t identifier, 00050 uint16_t protocol, const uint8_t *information, size_t length); 00051 00052 error_t pppSendEchoRep(PppContext *context, 00053 const PppEchoPacket *echoReqPacket, PppProtocol protocol); 00054 00055 error_t pppAddOption(PppConfigurePacket *packet, uint8_t optionType, 00056 const void *optionValue, uint8_t optionLen); 00057 00058 #endif 00059
Generated on Tue Jul 12 2022 17:10:15 by
