embedded IPsec source code documentation


keil_1001_ah_sha1.h

Go to the documentation of this file.
00001 
00005 /**************************/
00006 /* inbound configurations */
00007 /**************************/
00008 
00009 /* SAD configuartion data */
00010 sad_entry inbound_sad_config[IPSEC_MAX_SAD_ENTRIES] = {
00011         SAD_ENTRY(      192,168,1,3, 255,255,255,255, 
00012                                 0x1001, 
00013                                 IPSEC_PROTO_AH, IPSEC_TUNNEL, 
00014                                 0, 
00015                                 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
00016                                 IPSEC_HMAC_SHA1, 
00017                                 0x01, 0x23, 0x45, 0x67, 0x01, 0x23, 0x45, 0x67, 0x01, 0x23, 0x45, 0x67, 0x01, 0x23, 0x45, 0x67, 0x01, 0x23, 0x45, 0x67
00018                           ),
00019           EMPTY_SAD_ENTRY,
00020           EMPTY_SAD_ENTRY,
00021           EMPTY_SAD_ENTRY,
00022           EMPTY_SAD_ENTRY
00023 };
00024 
00025 /* SPD configuration data */
00026 spd_entry inbound_spd_config[IPSEC_MAX_SAD_ENTRIES] = {
00027 /*            source                            destination                       protocol          ports         policy          SA pointer 
00028  *            address          network          address          network                            src    dest                              */
00029         SPD_ENTRY(  192,168,1,5,     255,255,255,255, 192,168,1,3,     255,255,255,255, 0,                              0,     0,     POLICY_APPLY,   &inbound_sad_config[0]),
00030         EMPTY_SPD_ENTRY,
00031         EMPTY_SPD_ENTRY,
00032         EMPTY_SPD_ENTRY,
00033         EMPTY_SPD_ENTRY
00034 };
00035 
00036 
00037 /***************************/
00038 /* outbound configurations */
00039 /***************************/
00040 
00041 /* SAD configuartion data */
00042 sad_entry outbound_sad_config[IPSEC_MAX_SAD_ENTRIES] = {
00043         SAD_ENTRY(      192,168,1,5, 255,255,255,255, 
00044                                 0x1001, 
00045                                 IPSEC_PROTO_AH, IPSEC_TUNNEL, 
00046                                 0, 
00047                                 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
00048                                 IPSEC_HMAC_SHA1, 
00049                                 0x01, 0x23, 0x45, 0x67, 0x01, 0x23, 0x45, 0x67, 0x01, 0x23, 0x45, 0x67, 0x01, 0x23, 0x45, 0x67, 0x01, 0x23, 0x45, 0x67
00050                   ),
00051         EMPTY_SAD_ENTRY,
00052         EMPTY_SAD_ENTRY,                          
00053         EMPTY_SAD_ENTRY,
00054         EMPTY_SAD_ENTRY
00055 };
00056 
00057 /* SPD configuration data */
00058 spd_entry outbound_spd_config[IPSEC_MAX_SPD_ENTRIES] = {
00059 /*            source                            destination                       protocol          ports         policy          SA pointer 
00060  *            address          network          address          network                            src    dest                              */
00061         SPD_ENTRY(  192,168,1,3,     255,255,255,255, 192,168,1,5,     255,255,255,255, 0,                              0,     0,     POLICY_APPLY,   &outbound_sad_config[0]),
00062         EMPTY_SPD_ENTRY,
00063         EMPTY_SPD_ENTRY,
00064         EMPTY_SPD_ENTRY,
00065         EMPTY_SPD_ENTRY
00066 };
00067 

Copyright 2003 by Christian Scheurer and Niklaus Schild