1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
|
/*
* bpextensions.c: Bundle Protocol extension definition
* module, implementing Bundle Authentication
* Block support in addition to the Extended
* Class of Service (ECOS) block.
*
* Copyright (c) 2008, California Institute of Technology.
* ALL RIGHTS RESERVED. U.S. Government Sponsorship
* acknowledged.
*
* Author: Scott Burleigh, JPL
*/
/* Add external function declarations between here... */
#if 0
#include "snid.h"
#endif
#include "phn.h"
#include "ecos.h"
#include "bae.h"
#include "extbspbab.h"
#include "extbsppcb.h"
#include "extbsppib.h"
#ifdef ENABLE_BPACS
#include "cteb.h"
#endif /* ENABLE_BPACS */
/* ... and here. */
static ExtensionDef extensions[] =
{
{ "phn", EXTENSION_TYPE_PHN, 0,
phn_offer,
phn_release,
phn_acquire,
phn_check,
phn_record,
phn_clear,
phn_copy,
{phn_processOnFwd,
phn_processOnAccept,
phn_processOnEnqueue,
phn_processOnDequeue,
0}
},
#if 0
{ "snid", EXTENSION_TYPE_SNID, 0,
snid_offer,
snid_release,
snid_acquire,
snid_check,
snid_record,
snid_clear,
snid_copy,
{snid_processOnFwd,
snid_processOnAccept,
snid_processOnEnqueue,
snid_processOnDequeue,
0}
},
#endif
{ "ecos", EXTENSION_TYPE_ECOS, 0,
ecos_offer,
ecos_release,
ecos_acquire,
ecos_check,
ecos_record,
ecos_clear,
ecos_copy,
{ecos_processOnFwd,
ecos_processOnAccept,
ecos_processOnEnqueue,
ecos_processOnDequeue,
0}
},
{ "bae", EXTENSION_TYPE_BAE, 0,
bae_offer,
bae_release,
bae_acquire,
bae_check,
bae_record,
bae_clear,
bae_copy,
{bae_processOnFwd,
bae_processOnAccept,
bae_processOnEnqueue,
bae_processOnDequeue,
0}
},
#ifdef ENABLE_BPACS
{ "cteb", EXTENSION_TYPE_CTEB, 0,
cteb_offer,
cteb_release,
cteb_acquire,
0,
cteb_record,
cteb_clear,
cteb_copy,
{0,
0,
0,
cteb_processOnDequeue,
0}
},
#endif /* ENABLE_BPACS */
{ "pib", BSP_PIB_TYPE, 0,
bsp_pibOffer,
bsp_pibRelease,
bsp_pibAcquire,
bsp_pibCheck,
0,
bsp_pibClear,
bsp_pibCopy,
{0,
0,
0,
bsp_pibProcessOnDequeue,
0}
},
{ "pcb", BSP_PCB_TYPE, 0,
bsp_pcbOffer,
bsp_pcbRelease,
bsp_pcbAcquire,
bsp_pcbCheck,
0,
bsp_pcbClear,
bsp_pcbCopy,
{0,
0,
0,
bsp_pcbProcessOnDequeue,
0}
},
{ "bab", BSP_BAB_TYPE, 0,
// NK changed the name from "bsp_bab_pre"
bsp_babOffer,
bsp_babRelease,
bsp_babAcquire,
bsp_babPreCheck,
0,
bsp_babClear,
bsp_babCopy,
{0,
0,
0,
bsp_babPreProcessOnDequeue,
0}
},
{ "bsp_bab_post", BSP_BAB_TYPE, 1,
bsp_babOffer,
bsp_babRelease,
bsp_babAcquire,
bsp_babPostCheck,
0,
bsp_babClear,
bsp_babCopy,
{0,
0,
0,
bsp_babPostProcessOnDequeue,
bsp_babPostProcessOnTransmit}
},
{ "unknown",0,0,0,0,0,0,0,0,0,{0,0,0,0,0} }
};
/* NOTE: the order of appearance of extension definitions in the
* extensions array determines the order in which pre-payload
* extension blocks will be inserted into locally sourced bundles
* prior to the payload block and the order in which post-payload
* extension blocks will be inserted into locally sourced bundles
* after the payload block. */
|