embedded IPsec source code documentation


phy_2000_ah_md5.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,4, 255,255,255,255, 
00012                                 0x2000, 
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_MD5,  
00017                                 0x01, 0x23, 0x45, 0x67, 0x01, 0x23, 0x45, 0x67, 0x01, 0x23, 0x45, 0x67, 0x01, 0x23, 0x45, 0x67, 0, 0, 0, 0
00018                           ),
00019           EMPTY_SAD_ENTRY,
00020           EMPTY_SAD_ENTRY,
00021           EMPTY_SAD_ENTRY,
00022           EMPTY_SAD_ENTRY
00023 
00024 };
00025 
00026 /* SPD configuration data */
00027 spd_entry inbound_spd_config[IPSEC_MAX_SAD_ENTRIES] = {
00028 /*            source                            destination                       protocol          ports         policy          SA pointer 
00029  *            address          network          address          network                            src    dest                              */
00030         SPD_ENTRY(  192,168,1,5,     255,255,255,255, 192,168,1,4,     255,255,255,255, 0,                              0,     0,     POLICY_APPLY,   &inbound_sad_config[0]),
00031         EMPTY_SPD_ENTRY,
00032         EMPTY_SPD_ENTRY,
00033         EMPTY_SPD_ENTRY,
00034         EMPTY_SPD_ENTRY
00035 };
00036 
00037 
00038 /***************************/
00039 /* outbound configurations */
00040 /***************************/
00041 
00042 /* SAD configuartion data */
00043 sad_entry outbound_sad_config[IPSEC_MAX_SAD_ENTRIES] = {
00044         SAD_ENTRY(      192,168,1,5, 255,255,255,255, 
00045                                 0x2000, 
00046                                 IPSEC_PROTO_AH, IPSEC_TUNNEL, 
00047                                 0, 
00048                                 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
00049                                 IPSEC_HMAC_MD5,  
00050                                 0x01, 0x23, 0x45, 0x67, 0x01, 0x23, 0x45, 0x67, 0x01, 0x23, 0x45, 0x67, 0x01, 0x23, 0x45, 0x67, 0, 0, 0, 0
00051                   ),
00052         EMPTY_SAD_ENTRY,
00053         EMPTY_SAD_ENTRY,                          
00054         EMPTY_SAD_ENTRY,
00055         EMPTY_SAD_ENTRY
00056 };
00057 
00058 /* SPD configuration data */
00059 spd_entry outbound_spd_config[IPSEC_MAX_SPD_ENTRIES] = {
00060 /*            source                            destination                       protocol          ports         policy          SA pointer 
00061  *            address          network          address          network                            src    dest                              */
00062         SPD_ENTRY(  192,168,1,4,     255,255,255,255, 192,168,1,5,     255,255,255,255, 0,                              0,     0,     POLICY_APPLY,   &outbound_sad_config[0]),
00063         EMPTY_SPD_ENTRY,
00064         EMPTY_SPD_ENTRY,
00065         EMPTY_SPD_ENTRY,
00066         EMPTY_SPD_ENTRY
00067 };
00068 

Copyright 2003 by Christian Scheurer and Niklaus Schild