IPCP (PPP Internet Protocol Control Protocol) More...
Go to the source code of this file.
Macros | |
#define | IPCP_DEFAULT_SUBNET_MASK IPV4_ADDR(255, 255, 255, 255) |
Enumerations | |
enum | IpcpOptionType { IPCP_OPTION_IP_ADDRESSES = 1 , IPCP_OPTION_IP_COMP_PROTOCOL = 2 , IPCP_OPTION_IP_ADDRESS = 3 , IPCP_OPTION_PRIMARY_DNS = 129 , IPCP_OPTION_PRIMARY_NBNS = 130 , IPCP_OPTION_SECONDARY_DNS = 131 , IPCP_OPTION_SECONDARY_NBNS = 132 } |
IPCP option types. More... | |
Functions | |
error_t | ipcpOpen (PppContext *context) |
IPCP Open event. More... | |
error_t | ipcpClose (PppContext *context) |
IPCP Close event. More... | |
void | ipcpTick (PppContext *context) |
IPCP timer handler. More... | |
void | ipcpProcessPacket (PppContext *context, const PppPacket *packet, size_t length) |
Process an incoming IPCP packet. More... | |
error_t | ipcpProcessConfigureReq (PppContext *context, const PppConfigurePacket *configureReqPacket) |
Process Configure-Request packet. More... | |
error_t | ipcpProcessConfigureAck (PppContext *context, const PppConfigurePacket *configureAckPacket) |
Process Configure-Ack packet. More... | |
error_t | ipcpProcessConfigureNak (PppContext *context, const PppConfigurePacket *configureNakPacket) |
Process Configure-Nak packet. More... | |
error_t | ipcpProcessConfigureReject (PppContext *context, const PppConfigurePacket *configureRejPacket) |
Process Configure-Reject packet. More... | |
error_t | ipcpProcessTerminateReq (PppContext *context, const PppTerminatePacket *terminateReqPacket) |
Process Terminate-Request packet. More... | |
error_t | ipcpProcessTerminateAck (PppContext *context, const PppTerminatePacket *terminateAckPacket) |
Process Terminate-Ack packet. More... | |
error_t | ipcpProcessCodeRej (PppContext *context, const PppCodeRejPacket *codeRejPacket) |
Process Code-Reject packet. More... | |
error_t | ipcpProcessUnknownCode (PppContext *context, const PppPacket *packet) |
Process packet with unknown code. More... | |
void | ipcpThisLayerUp (PppContext *context) |
This-Layer-Up callback function. More... | |
void | ipcpThisLayerDown (PppContext *context) |
This-Layer-Down callback function. More... | |
void | ipcpThisLayerStarted (PppContext *context) |
This-Layer-Started callback function. More... | |
void | ipcpThisLayerFinished (PppContext *context) |
This-Layer-Finished callback function. More... | |
void | ipcpInitRestartCount (PppContext *context, uint_t value) |
Initialize-Restart-Count callback function. More... | |
void | ipcpZeroRestartCount (PppContext *context) |
Zero-Restart-Count callback function. More... | |
error_t | ipcpSendConfigureReq (PppContext *context) |
Send-Configure-Request callback function. More... | |
error_t | ipcpSendConfigureAck (PppContext *context, const PppConfigurePacket *configureReqPacket) |
Send-Configure-Ack callback function. More... | |
error_t | ipcpSendConfigureNak (PppContext *context, const PppConfigurePacket *configureReqPacket) |
Send-Configure-Nak callback function. More... | |
error_t | ipcpSendConfigureRej (PppContext *context, const PppConfigurePacket *configureReqPacket) |
Send-Configure-Reject callback function. More... | |
error_t | ipcpSendTerminateReq (PppContext *context) |
Send-Terminate-Request callback function. More... | |
error_t | ipcpSendTerminateAck (PppContext *context, const PppTerminatePacket *terminateReqPacket) |
Send-Terminate-Ack callback function. More... | |
error_t | ipcpSendCodeRej (PppContext *context, const PppPacket *packet) |
Send-Code-Reject callback function. More... | |
error_t | ipcpParseOption (PppContext *context, PppOption *option, size_t inPacketLen, PppConfigurePacket *outPacket) |
Parse IPCP configuration option. More... | |
error_t | ipcpParseIpAddressOption (PppContext *context, IpcpIpAddressOption *option, PppConfigurePacket *outPacket) |
Parse IP-Address option. More... | |
Variables | |
typedef | __packed_struct |
IP-Addresses option. More... | |
uint8_t | length |
Ipv4Addr | srcIpAddr |
Ipv4Addr | destIpAddr |
IpcpIpAddressesOption | |
uint16_t | protocol |
uint8_t | data [] |
IpcpIpCompProtocolOption | |
Ipv4Addr | ipAddr |
IpcpIpAddressOption | |
IpcpPrimaryDnsOption | |
IpcpPrimaryNbnsOption | |
IpcpSecondaryDnsOption | |
IpcpSecondaryNbnsOption | |
Detailed Description
IPCP (PPP Internet Protocol Control Protocol)
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version
- 2.4.0
Definition in file ipcp.h.
Macro Definition Documentation
◆ IPCP_DEFAULT_SUBNET_MASK
#define IPCP_DEFAULT_SUBNET_MASK IPV4_ADDR(255, 255, 255, 255) |
Enumeration Type Documentation
◆ IpcpOptionType
enum IpcpOptionType |
IPCP option types.
Function Documentation
◆ ipcpClose()
error_t ipcpClose | ( | PppContext * | context | ) |
◆ ipcpInitRestartCount()
void ipcpInitRestartCount | ( | PppContext * | context, |
uint_t | value | ||
) |
◆ ipcpOpen()
error_t ipcpOpen | ( | PppContext * | context | ) |
◆ ipcpParseIpAddressOption()
error_t ipcpParseIpAddressOption | ( | PppContext * | context, |
IpcpIpAddressOption * | option, | ||
PppConfigurePacket * | outPacket | ||
) |
◆ ipcpParseOption()
error_t ipcpParseOption | ( | PppContext * | context, |
PppOption * | option, | ||
size_t | inPacketLen, | ||
PppConfigurePacket * | outPacket | ||
) |
◆ ipcpProcessCodeRej()
error_t ipcpProcessCodeRej | ( | PppContext * | context, |
const PppCodeRejPacket * | codeRejPacket | ||
) |
◆ ipcpProcessConfigureAck()
error_t ipcpProcessConfigureAck | ( | PppContext * | context, |
const PppConfigurePacket * | configureAckPacket | ||
) |
◆ ipcpProcessConfigureNak()
error_t ipcpProcessConfigureNak | ( | PppContext * | context, |
const PppConfigurePacket * | configureNakPacket | ||
) |
◆ ipcpProcessConfigureReject()
error_t ipcpProcessConfigureReject | ( | PppContext * | context, |
const PppConfigurePacket * | configureRejPacket | ||
) |
◆ ipcpProcessConfigureReq()
error_t ipcpProcessConfigureReq | ( | PppContext * | context, |
const PppConfigurePacket * | configureReqPacket | ||
) |
◆ ipcpProcessPacket()
void ipcpProcessPacket | ( | PppContext * | context, |
const PppPacket * | packet, | ||
size_t | length | ||
) |
◆ ipcpProcessTerminateAck()
error_t ipcpProcessTerminateAck | ( | PppContext * | context, |
const PppTerminatePacket * | terminateAckPacket | ||
) |
◆ ipcpProcessTerminateReq()
error_t ipcpProcessTerminateReq | ( | PppContext * | context, |
const PppTerminatePacket * | terminateReqPacket | ||
) |
◆ ipcpProcessUnknownCode()
error_t ipcpProcessUnknownCode | ( | PppContext * | context, |
const PppPacket * | packet | ||
) |
◆ ipcpSendCodeRej()
error_t ipcpSendCodeRej | ( | PppContext * | context, |
const PppPacket * | packet | ||
) |
◆ ipcpSendConfigureAck()
error_t ipcpSendConfigureAck | ( | PppContext * | context, |
const PppConfigurePacket * | configureReqPacket | ||
) |
◆ ipcpSendConfigureNak()
error_t ipcpSendConfigureNak | ( | PppContext * | context, |
const PppConfigurePacket * | configureReqPacket | ||
) |
◆ ipcpSendConfigureRej()
error_t ipcpSendConfigureRej | ( | PppContext * | context, |
const PppConfigurePacket * | configureReqPacket | ||
) |
◆ ipcpSendConfigureReq()
error_t ipcpSendConfigureReq | ( | PppContext * | context | ) |
◆ ipcpSendTerminateAck()
error_t ipcpSendTerminateAck | ( | PppContext * | context, |
const PppTerminatePacket * | terminateReqPacket | ||
) |
◆ ipcpSendTerminateReq()
error_t ipcpSendTerminateReq | ( | PppContext * | context | ) |
◆ ipcpThisLayerDown()
void ipcpThisLayerDown | ( | PppContext * | context | ) |
◆ ipcpThisLayerFinished()
void ipcpThisLayerFinished | ( | PppContext * | context | ) |
◆ ipcpThisLayerStarted()
void ipcpThisLayerStarted | ( | PppContext * | context | ) |
◆ ipcpThisLayerUp()
void ipcpThisLayerUp | ( | PppContext * | context | ) |
◆ ipcpTick()
void ipcpTick | ( | PppContext * | context | ) |
◆ ipcpZeroRestartCount()
void ipcpZeroRestartCount | ( | PppContext * | context | ) |
Variable Documentation
◆ __packed_struct
typedef __packed_struct |
IP-Addresses option.
Secondary-NBNS-Server-Address option.
Secondary-DNS-Server-Address option.
Primary-NBNS-Server-Address option.
Primary-DNS-Server-Address option.
IP-Address option.
IP-Compression-Protocol option.