AH (IP Authentication Header) More...
#include "ipsec/ipsec.h"#include "ipsec/ipsec_inbound.h"#include "ipsec/ipsec_anti_replay.h"#include "ipsec/ipsec_misc.h"#include "ah/ah.h"#include "core/tcp_fsm.h"#include "core/raw_socket.h"#include "ipv4/icmp.h"#include "debug.h"Go to the source code of this file.
Macros | |
| #define | TRACE_LEVEL AH_TRACE_LEVEL |
Functions | |
| error_t | ipv4ProcessAhHeader (NetInterface *interface, const Ipv4Header *ipv4Header, const NetBuffer *buffer, size_t offset, NetRxAncillary *ancillary) |
| Process AH protected packet. More... | |
| error_t | ahGenerateIcv (IpsecSadEntry *sa, const Ipv4Header *ipv4Header, AhHeader *ahHeader, const NetBuffer *buffer, size_t offset) |
| ICV generation. More... | |
| error_t | ahVerifyIcv (IpsecSadEntry *sa, const Ipv4Header *ipv4Header, const AhHeader *ahHeader, const NetBuffer *buffer, size_t offset) |
| ICV verification. More... | |
| void | ahProcessMutableIpv4Options (Ipv4Header *header) |
| Zeroize mutable IPv4 options. More... | |
| void | ahDumpHeader (const AhHeader *ahHeader) |
| Dump AH header for debugging purpose. More... | |
Detailed Description
AH (IP Authentication Header)
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2022-2025 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneIPSEC 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.5.4
Definition in file ah.c.
Macro Definition Documentation
◆ TRACE_LEVEL
Function Documentation
◆ ahDumpHeader()
| void ahDumpHeader | ( | const AhHeader * | ahHeader | ) |
◆ ahGenerateIcv()
| error_t ahGenerateIcv | ( | IpsecSadEntry * | sa, |
| const Ipv4Header * | ipv4Header, | ||
| AhHeader * | ahHeader, | ||
| const NetBuffer * | buffer, | ||
| size_t | offset | ||
| ) |
◆ ahProcessMutableIpv4Options()
| void ahProcessMutableIpv4Options | ( | Ipv4Header * | header | ) |
◆ ahVerifyIcv()
| error_t ahVerifyIcv | ( | IpsecSadEntry * | sa, |
| const Ipv4Header * | ipv4Header, | ||
| const AhHeader * | ahHeader, | ||
| const NetBuffer * | buffer, | ||
| size_t | offset | ||
| ) |
◆ ipv4ProcessAhHeader()
| error_t ipv4ProcessAhHeader | ( | NetInterface * | interface, |
| const Ipv4Header * | ipv4Header, | ||
| const NetBuffer * | buffer, | ||
| size_t | offset, | ||
| NetRxAncillary * | ancillary | ||
| ) |
Process AH protected packet.
- Parameters
-
[in] interface Underlying network interface [in] ipv4Header Pointer to the IPv4 header [in] buffer Multi-part buffer containing the AH protected packet [in] offset Offset to the first byte of the AH header [in] ancillary Additional options passed to the stack along with the packet
- Returns
- Error code
