embedded IPsec source code documentation


ah.h File Reference


Detailed Description

Header of IP Authentication Header (AH).

Author:
Christian Scheurer <http://www.christianscheurer.ch>
This document is part of embedded IPsec
Copyright (c) 2003 Niklaus Schild and Christian Scheurer, HTI Biel/Bienne
All rights reserved.
This file contains code from the OpenSSL Project
portions Copyright (c) 1998-2003 OpenSSL (www.openssl.org)

Definition in file ah.h.

#include "ipsec/sa.h"
#include "ipsec/util.h"

Go to the source code of this file.

Data Structures

struct  ah_hdr_struct

Defines

#define IPSEC_AH_HDR_SIZE   (12)

Typedefs

typedef ah_hdr_struct ipsec_ah_header

Functions

int ipsec_ah_check (ipsec_ip_header *, int *, int *, void *)
int ipsec_ah_encapsulate (ipsec_ip_header *, int *, int *, void *, __u32, __u32)

Variables

__u32 ipsec_ah_bitmap
__u32 ipsec_ah_lastSeq


Define Documentation

#define IPSEC_AH_HDR_SIZE   (12)
 

AH header size without ICV

Definition at line 50 of file ah.h.


Typedef Documentation

typedef struct ah_hdr_struct ipsec_ah_header
 


Function Documentation

int ipsec_ah_check ipsec_ip_header ,
int *  ,
int *  ,
void * 
 

int ipsec_ah_encapsulate ipsec_ip_header ,
int *  ,
int *  ,
void *  ,
__u32  ,
__u32 
 


Variable Documentation

__u32 ipsec_ah_bitmap
 

save session state to detect replays - must be 32 bits. Note: must be initialized with zero (0x00000000) when a new SA is established!

Definition at line 64 of file ah.h.

__u32 ipsec_ah_lastSeq
 

save session state to detect replays Note: must be initialized with zero (0x00000000) when a new SA is established!

Definition at line 65 of file ah.h.


Copyright 2003 by Christian Scheurer and Niklaus Schild