embedded IPsec source code documentation


keil_1000_ah_md5.h

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

Copyright 2003 by Christian Scheurer and Niklaus Schild