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 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377
|
/*
bpP.h: private definitions supporting the implementation
of BP (Bundle Protocol) nodes in the ION
(Interplanetary Overlay Network) stack, including
scheme-specific forwarders and the convergence-layer
adapters they rely on.
Author: Scott Burleigh, JPL
Modification History:
Date Who What
Copyright (c) 2005, California Institute of Technology.
ALL RIGHTS RESERVED. U.S. Government Sponsorship
acknowledged.
*/
#ifndef _BPP_H_
#define _BPP_H_
#include "rfx.h"
#include "ionsec.h"
#include "bp.h"
#ifdef __cplusplus
extern "C" {
#endif
#define BP_VERSION 6
/* "Watch" switches for bundle protocol operation. */
#define WATCH_a (1)
#define WATCH_b (2)
#define WATCH_c (4)
#define WATCH_m (8)
#define WATCH_w (16)
#define WATCH_x (32)
#define WATCH_y (64)
#define WATCH_z (128)
#define WATCH_abandon (256)
#define WATCH_expire (512)
#define WATCH_refusal (1024)
#define WATCH_timeout (2048)
#define WATCH_limbo (4096)
#define WATCH_delimbo (8192)
#define SDR_LIST_ELT_OVERHEAD (WORD_SIZE * 4)
/* A note on coding technique: the checking of return codes
* can safely be foregone in some circumstances, to simplify
* the code and marginally improve performance. The general
* rule is that while an SDR transaction is open it is not
* necessary to check the value returned by an SDR function
* UNLESS the result of that function must be non-failure
* in order for subsequent operations in the scope of the
* same transaction to be safe [e.g., to prevent segmentation
* faults]. The reason for this is that sdr_end_xn(), when
* it is invoked to conclude the transaction, will itself
* fail and back out the transaction if any SDR operation
* within the scope of the transaction failed; it is only
* (and ALWAYS) necessary to check the value returned by
* sdr_end_xn(). Note also that, if you do check the value
* returned by an SDR function while a transaction is open
* and it indicates failure, it is NOT necessary to abort
* the transaction by calling sdr_cancel_xn(); the transaction
* has already been aborted. It is only necessary to return
* a failure indication to invoking code and let sdr_end_xn()
* at the top of the function stack clean up the transaction
* and return -1 to trigger the applicable failure handling. */
#define MIN_PRIMARY_BLK_LENGTH (23)
#define MAX_CL_PROTOCOL_NAME_LEN (15)
#define MAX_CL_DUCT_NAME_LEN (255)
#define MAX_SCHEME_NAME_LEN (15)
#define MAX_NSS_LEN (63)
#define MAX_EID_LEN (MAX_SCHEME_NAME_LEN + MAX_NSS_LEN + 2)
#define MAX_CBHE_NODE_NBR (16777215)
#define MAX_CBHE_SERVICE_NBR (32767)
#ifndef BP_MAX_BLOCK_SIZE
#define BP_MAX_BLOCK_SIZE (2000)
#endif
/* We hitchhike on the ZCO heap space management system to
* manage the space occupied by Bundle objects. In effect,
* the Bundle overhead objects compete with ZCOs for available
* SDR heap space. We don't want this practice to become
* widespread, which is why these functions are declared
* privately here rather than publicly in the zco.h header. */
extern void zco_increase_heap_occupancy(Sdr sdr, vast delta);
extern void zco_reduce_heap_occupancy(Sdr sdr, vast delta);
/* A BP "node" is a set of cooperating state machines that
* together constitute a single functional point of presence,
* residing in a single SDR database, in a DTN-based network.
*
* A single node may be equipped to send and receive bundles
* to and from endpoints whose IDs are formed under one or
* more "schemes". For each such scheme the node will have
* a single scheme-specific "forwarder", for which scheme-
* specific forwarding information may be recorded in the
* database.
*
* To utilize the services of the node, an application instance
* calls bp_open() to reserve for its own use a specified DTN
* endpoint that is registered at this node, and then calls
* bp_receive() to extract inbound bundles from the queue of
* undelivered inbound bundles for that endpoint and/or calls
* bp_send() to issue bundles to some specified endpoint.
*
* The blocks of data that DTN applications exchange among
* themselves are termed "application data units" (ADUs). A
* BP forwarder packages ADUs within bundles and then uses
* services provided by underlying communication protocols (at
* the "convergence layer" and below) to transmit the bundles
* to other nodes. */
typedef struct
{
uvast nbr;
} NodeId;
typedef struct
{
sm_SemId semaphore;
int nominalRate; /* In bytes per second. */
vast capacity; /* Bytes, current second. */
} Throttle;
typedef struct
{
Object text; /* Not NULL-terminated. */
unsigned int textLength;
} BpString;
typedef struct
{
unsigned short schemeNameOffset; /* In dictionary. */
unsigned short nssOffset; /* In dictionary. */
} DtnEid;
typedef struct
{
uvast nodeNbr; /* For "imc", group nbr. */
unsigned int serviceNbr;
} CbheEid;
typedef struct
{
DtnEid d;
CbheEid c;
char cbhe; /* Boolean. */
char unicast; /* Boolean. */
} EndpointId;
typedef struct
{
uvast nodeNbr;
unsigned int serviceNbr;
char *schemeName;
int schemeNameLength;
char *colon;
char *nss;
int nssLength;
char cbhe; /* Boolean. */
char nullEndpoint; /* Boolean. */
} MetaEid;
typedef struct
{
char *protocolName;
char *proxNodeEid;
} DequeueContext;
/* * * Bundle structures * * * */
/* For non-fragmentary bundles, and for the first fragmentary
* bundle of a fragmented source bundle, fragmentOffset is zero.
* For fragmentary bundles other than the first, fragmentOffset
* indicates the offset of the fragmentary bundle's payload
* from the beginning of the payload of the original source
* bundle. */
typedef struct
{
EndpointId source; /* Original sender. */
BpTimestamp creationTime;
unsigned int fragmentOffset;
} BundleId;
typedef struct
{
unsigned int length; /* initial length of ZCO */
Object content; /* a ZCO reference in SDR */
} Payload;
/* Administrative record types */
#define BP_STATUS_REPORT (1)
#define BP_CUSTODY_SIGNAL (2)
/* Administrative record flags */
#define BP_BDL_IS_A_FRAGMENT (1) /* 00000001 */
typedef enum
{
SrLifetimeExpired = 1,
SrUnidirectionalLink,
SrCanceled,
SrDepletedStorage,
SrDestinationUnintelligible,
SrNoKnownRoute,
SrNoTimelyContact,
SrBlockUnintelligible
} BpSrReason;
typedef struct
{
unsigned int seconds;
unsigned int nanosec;
} DtnTime;
typedef struct
{
BpTimestamp creationTime; /* From bundle's ID. */
unsigned int fragmentOffset; /* From bundle's ID. */
unsigned int fragmentLength;
char *sourceEid; /* From bundle's ID. */
unsigned char isFragment; /* Boolean. */
unsigned char flags;
BpSrReason reasonCode;
DtnTime receiptTime;
DtnTime acceptanceTime;
DtnTime forwardTime;
DtnTime deliveryTime;
DtnTime deletionTime;
} BpStatusRpt;
typedef enum
{
CtRedundantReception = 3,
CtDepletedStorage,
CtDestinationUnintelligible,
CtNoKnownRoute,
CtNoTimelyContact,
CtBlockUnintelligible
} BpCtReason;
typedef struct
{
BpTimestamp creationTime; /* From bundle's ID. */
unsigned int fragmentOffset; /* From bundle's ID. */
unsigned int fragmentLength;
char *sourceEid; /* From bundle's ID. */
unsigned char isFragment; /* Boolean. */
unsigned char succeeded; /* Boolean. */
BpCtReason reasonCode;
DtnTime signalTime;
} BpCtSignal;
/* The convergence-layer adapter uses the ClDossier structure to
* assert its own private knowledge about the bundle: authenticity
* and/or EID of sender. */
typedef struct
{
int authentic; /* Boolean. */
BpString senderEid;
uvast senderNodeNbr; /* If CBHE. */
} ClDossier;
/* Bundle processing flags */
#define BDL_IS_FRAGMENT (1) /* 00000001 */
#define BDL_IS_ADMIN (2) /* 00000010 */
#define BDL_DOES_NOT_FRAGMENT (4) /* 00000100 */
#define BDL_IS_CUSTODIAL (8) /* 00001000 */
#define BDL_DEST_IS_SINGLETON (16) /* 00010000 */
#define BDL_APP_ACK_REQUEST (32) /* 00100000 */
/* Block processing flags */
#define BLK_MUST_BE_COPIED (1) /* 00000001 */
#define BLK_REPORT_IF_NG (2) /* 00000010 */
#define BLK_ABORT_IF_NG (4) /* 00000100 */
#define BLK_IS_LAST (8) /* 00001000 */
#define BLK_REMOVE_IF_NG (16) /* 00010000 */
#define BLK_FORWARDED_OPAQUE (32) /* 00100000 */
#define BLK_HAS_EID_REFERENCES (64) /* 01000000 */
/* Extension locations */
#define PRE_PAYLOAD (0)
#define POST_PAYLOAD (1)
typedef struct
{
BundleId id;
/* Stuff in Primary block. */
unsigned int bundleProcFlags;/* Incl. CoS, SRR. */
unsigned int timeToLive; /* In seconds. */
EndpointId destination; /* ...of bundle's ADU */
/* source of bundle's ADU is in the id field. */
EndpointId reportTo;
EndpointId custodian;
/* creation time is in the id field. */
unsigned int expirationTime; /* Time tag in seconds. */
unsigned int dictionaryLength;
Object dictionary;
/* fragment offset is in the id field. */
unsigned int totalAduLength;
/* Stuff in Extended COS extension block. */
BpExtendedCOS extendedCOS;
/* Stuff in (or for) the Bundle Age extension block. */
unsigned int age; /* In microseconds. */
struct timeval arrivalTime;
/* Stuff in Payload block. */
unsigned int payloadBlockProcFlags;
Payload payload;
/* Stuff in extension blocks, preceding and following the
* payload block: SDR lists of ExtensionBlock objects.
* Each extensionsLength field is the sum of the "length"
* values of all ExtensionBlocks in the corresponding
* extensions list. */
Object extensions[2];
int extensionsLength[2]; /* Concatenated. */
Object collabBlocks; /* SDR list of C. blocks. */
/* Internal housekeeping stuff. */
char custodyTaken; /* Boolean. */
char delivered; /* Boolean. */
char suspended; /* Boolean. */
char returnToSender; /* Boolean. */
char accepted; /* Boolean. */
char corrupt; /* Boolean. */
char anonymous; /* Boolean. */
char fragmented; /* Boolean. */
int dbOverhead; /* SDR bytes occupied. */
BpStatusRpt statusRpt; /* For response per CoS. */
BpCtSignal ctSignal; /* For acknowledgement. */
ClDossier clDossier; /* Processing hints. */
Object stations; /* Stack of EIDs (route). */
/* Database navigation stuff (back-references). */
Object hashEntry; /* Entry in bundles hash. */
Object timelineElt; /* TTL expire list ref. */
Object overdueElt; /* Xmit overdue ref. */
Object ctDueElt; /* CT deadline ref. */
Object fwdQueueElt; /* Scheme's queue ref. */
Object fragmentElt; /* Incomplete's list ref. */
Object dlvQueueElt; /* Endpoint's queue ref. */
Object trackingElts; /* List of app. list refs. */
Object incompleteElt; /* Ref. to Incomplete. */
/* Transmission queue (or limbo list) stuff. */
Object ductXmitElt; /* Transmission queue ref. */
Object proxNodeEid; /* An SDR string */
Object destDuctName; /* An SDR string */
time_t enqueueTime; /* When queued for xmit. */
} Bundle;
#define COS_FLAGS(bundleProcFlags) ((bundleProcFlags >> 7) & 0x7f)
#define SRR_FLAGS(bundleProcFlags) ((bundleProcFlags >> 14) & 0x7f)
typedef struct
{
Object fragments; /* SDR list */
/* Each element of the fragments list is a Bundle object;
* the list is in ascending fragment offset order. When
* the list is complete -- the fragment offset of the
* first bundle is zero, the fragment offset of each
* subsequent bundle is less than or equal to the sum
* of the fragment offset and payload length of the
* prior bundle, and the sum of the fragment offset and
* payload length of the last bundle is equal to the
* total ADU length -- the payloads are concatenated
* into the original ADU, the payload for a new
* aggregate bundle that is queued for delivery to
* the application, and all fragments (including the
* final one) are destroyed. */
unsigned int totalAduLength;
} IncompleteBundle;
/* * * Endpoint structures * * * */
typedef enum
{
DiscardBundle = 0,
EnqueueBundle
} BpRecvRule;
/* The endpoint object characterizes an endpoint within which
* the node is registered. */
typedef struct
{
char nss[MAX_NSS_LEN + 1];
BpRecvRule recvRule;
Object recvScript; /* SDR string */
Object incompletes; /* SDR list of Incompletes */
Object deliveryQueue; /* SDR list of Bundles */
Object scheme; /* back-reference */
Object stats; /* EndpointStats address. */
int updateStats; /* Boolean. */
} Endpoint;
#define BP_ENDPOINT_SOURCED 0
#define BP_ENDPOINT_QUEUED 1
#define BP_ENDPOINT_ABANDONED 2
#define BP_ENDPOINT_DELIVERED 3
#define BP_ENDPOINT_STATS 4
typedef struct
{
time_t resetTime;
Tally tallies[BP_ENDPOINT_STATS];
} EndpointStats;
/* The volatile endpoint object encapsulates the volatile state
* of the corresponding Endpoint. */
typedef struct
{
Object endpointElt; /* Reference to Endpoint. */
Object stats; /* EndpointStats address. */
int updateStats; /* Boolean. */
char nss[MAX_NSS_LEN + 1];
int appPid; /* Consumes dlv notices. */
sm_SemId semaphore; /* For dlv notices. */
} VEndpoint;
/* * * Scheme structures * * * */
/* Scheme objects are used to encapsulate knowledge about how to
* forward bundles. CBHE-conformant schemes are so noted. */
typedef struct
{
char name[MAX_SCHEME_NAME_LEN + 1];
int nameLength;
int cbhe; /* Boolean. */
int unicast; /* Boolean; */
Object fwdCmd; /* For starting forwarder. */
Object admAppCmd; /* For starting admin app. */
Object forwardQueue; /* SDR list of Bundles */
Object endpoints; /* SDR list of Endpoints */
} Scheme;
typedef struct
{
Object schemeElt; /* Reference to scheme. */
/* Copied from Scheme. */
char name[MAX_SCHEME_NAME_LEN + 1];
int nameLength;
int cbhe;
int unicast;
char adminEid[MAX_EID_LEN];
int adminNSSLength;
int fwdPid; /* For stopping forwarder. */
int admAppPid; /* For stopping admin app. */
sm_SemId semaphore; /* For dispatch notices. */
PsmAddress endpoints; /* SM list: VEndpoint. */
} VScheme;
/* * * Induct structures * * * */
typedef struct
{
char name[MAX_CL_DUCT_NAME_LEN + 1];
Object cliCmd; /* For starting the CLI. */
Object protocol; /* back-reference */
Object stats; /* InductStats address. */
int updateStats; /* Boolean. */
} Induct;
#define BP_INDUCT_RECEIVED 0
#define BP_INDUCT_MALFORMED 1
#define BP_INDUCT_INAUTHENTIC 2
#define BP_INDUCT_CONGESTIVE 3
#define BP_INDUCT_STATS 4
typedef struct
{
time_t resetTime;
Tally tallies[BP_INDUCT_STATS];
} InductStats;
typedef struct
{
Object inductElt; /* Reference to Induct. */
Object stats; /* InductStats address. */
int updateStats; /* Boolean. */
char protocolName[MAX_CL_PROTOCOL_NAME_LEN + 1];
char ductName[MAX_CL_DUCT_NAME_LEN + 1];
int cliPid; /* For stopping the CLI. */
Throttle acqThrottle; /* For congestion control. */
} VInduct;
/* * * Outduct structures * * * */
typedef struct
{
Scalar backlog;
Object lastForOrdinal; /* SDR list element. */
} OrdinalState;
typedef struct
{
char name[MAX_CL_DUCT_NAME_LEN + 1];
Object cloCmd; /* For starting the CLO. */
Object bulkQueue; /* SDR list of Bundles */
Scalar bulkBacklog; /* Bulk bytes enqueued. */
Object stdQueue; /* SDR list of Bundles */
Scalar stdBacklog; /* Std bytes enqueued. */
Object urgentQueue; /* SDR list of Bundles */
Scalar urgentBacklog; /* Urgent bytes enqueued. */
OrdinalState ordinals[256]; /* Orders urgent queue. */
unsigned int maxPayloadLen; /* 0 = no limit. */
int blocked; /* Boolean */
Object protocol; /* back-reference */
Object stats; /* OutductStats address. */
int updateStats; /* Boolean. */
} Outduct;
#define BP_OUTDUCT_ENQUEUED 0
#define BP_OUTDUCT_DEQUEUED 1
#define BP_OUTDUCT_STATS 2
typedef struct
{
time_t resetTime;
Tally tallies[BP_OUTDUCT_STATS];
} OutductStats;
typedef struct
{
Object outductElt; /* Reference to Outduct. */
Object stats; /* OutductStats address. */
int updateStats; /* Boolean. */
char protocolName[MAX_CL_PROTOCOL_NAME_LEN + 1];
char ductName[MAX_CL_DUCT_NAME_LEN + 1];
int cloPid; /* For stopping the CLO. */
sm_SemId semaphore; /* For transmit notices. */
Throttle xmitThrottle; /* For rate control. */
} VOutduct;
/* * * Protocol structures * * * */
/* Protocol Classes */
#define BP_PROTOCOL_STREAMING 1
#define BP_PROTOCOL_UNRELIABLE 2
#define BP_PROTOCOL_RELIABLE 8
#define BP_PROTOCOL_BOTH 10
typedef struct
{
char name[MAX_CL_PROTOCOL_NAME_LEN + 1];
int payloadBytesPerFrame;
int overheadPerFrame;
int nominalRate; /* Bytes per second. */
int protocolClass;
Object inducts; /* SDR list of Inducts */
Object outducts; /* SDR list of Outducts */
} ClProtocol;
/* * * BP Database structures * * * */
#define EPOCH_2000_SEC 946684800
typedef enum
{
expiredTTL = 1,
xmitOverdue = 2,
ctDue = 3,
csDue = 4
} BpEventType;
typedef struct
{
BpEventType type;
time_t time; /* as from time(2) */
Object ref; /* Bundle, etc. */
} BpEvent;
typedef struct
{
Object bundleObj; /* 0 if count > 1. */
unsigned int count;
} BundleSet;
typedef struct
{
Object schemes; /* SDR list of Schemes */
Object protocols; /* SDR list of ClProtocols */
Object timeline; /* SDR list of BpEvents */
Object bundles; /* SDR hash of BundleSets */
Object inboundBundles; /* SDR list of ZCOs */
Object limboQueue; /* SDR list of Bundles */
Object clockCmd; /* For starting clock. */
int maxAcqInHeap;
unsigned int bundleCounter; /* For non-synced clock. */
int watching; /* Activity watch switch. */
/* Network management instrumentation */
time_t resetTime; /* Stats reset time. */
time_t startTime; /* Node restart time. */
int regCount; /* Since node restart. */
int updateStats; /* Boolean. */
vast currentBundlesFragmented;
vast totalBundlesFragmented;
vast currentFragmentsProduced;
vast totalFragmentsProduced;
Object sourceStats; /* BpCosStats address. */
Object recvStats; /* BpCosStats address. */
Object discardStats; /* BpCosStats address. */
Object xmitStats; /* BpCosStats address. */
Object delStats; /* BpDelStats address. */
Object ctStats; /* BpCtStats address. */
Object dbStats; /* BpDbStats address. */
} BpDB;
/* CT database encapsulates custody transfer configuration. */
typedef struct
{
unsigned int ctExpiredTimeout;
} BpctDB;
#define BP_STATUS_RECEIVE 0
#define BP_STATUS_ACCEPT 1
#define BP_STATUS_FORWARD 2
#define BP_STATUS_DELIVER 3
#define BP_STATUS_DELETE 4
#define BP_STATUS_STATS 5
#define BP_REASON_NONE 0
#define BP_REASON_EXPIRED 1
#define BP_REASON_FWD_UNIDIR 2
#define BP_REASON_CANCELED 3
#define BP_REASON_DEPLETION 4
#define BP_REASON_EID_MALFORMED 5
#define BP_REASON_NO_ROUTE 6
#define BP_REASON_NO_CONTACT 7
#define BP_REASON_BLK_MALFORMED 8
#define BP_REASON_STATS 9
#define BP_CT_CUSTODY_ACCEPTED 0
#define BP_CT_CUSTODY_RELEASED 1
#define BP_CT_CUSTODY_EXPIRED 2
#define BP_CT_REDUNDANT 3
#define BP_CT_DEPLETION 4
#define BP_CT_EID_MALFORMED 5
#define BP_CT_NO_ROUTE 6
#define BP_CT_NO_CONTACT 7
#define BP_CT_BLK_MALFORMED 8
#define BP_CT_STATS 9
#define BP_DB_QUEUED_FOR_FWD 0
#define BP_DB_FWD_OKAY 1
#define BP_DB_FWD_FAILED 2
#define BP_DB_REQUEUED_FOR_FWD 3
#define BP_DB_TO_LIMBO 4
#define BP_DB_FROM_LIMBO 5
#define BP_DB_EXPIRED 6
#define BP_DB_ABANDON 7
#define BP_DB_DISCARD 8
#define BP_DB_STATS 9
typedef struct
{
Tally tallies[3];
} BpCosStats;
typedef struct
{
unsigned int totalDelByReason[BP_REASON_STATS];
unsigned int currentDelByReason[BP_REASON_STATS];
} BpDelStats;
typedef struct
{
Tally tallies[BP_CT_STATS];
} BpCtStats;
typedef struct
{
Tally tallies[BP_DB_STATS];
} BpDbStats;
/* Volatile database encapsulates the volatile state of the
* database. */
typedef struct
{
Object sourceStats; /* BpCosStats address. */
Object recvStats; /* BpCosStats address. */
Object discardStats; /* BpCosStats address. */
Object xmitStats; /* BpCosStats address. */
Object delStats; /* BpDelStats address. */
Object ctStats; /* BpCtStats address. */
Object dbStats; /* BpDbStats address. */
int updateStats; /* Boolean. */
unsigned int creationTimeSec;
int bundleCounter;
int clockPid; /* For stopping clock. */
int watching; /* Activity watch switch. */
/* For finding structures in database. */
PsmAddress schemes; /* SM list: VScheme. */
PsmAddress inducts; /* SM list: VInduct. */
PsmAddress outducts; /* SM list: VOutduct. */
PsmAddress timeline; /* SM RB tree: list xref. */
} BpVdb;
/* * * Acquisition structures * * * */
typedef enum
{
AcqTBD = 0,
AcqOK
} AcqDecision;
typedef struct
{
VInduct *vduct;
/* Per-bundle state variables. */
Bundle bundle;
int headerLength;
int trailerLength;
int bundleLength;
int authentic; /* Boolean. */
char *dictionary;
Lyst collabBlocks;
Lyst extBlocks[2]; /* (AcqExtBlock *) */
int currentExtBlocksList; /* 0 or 1. */
AcqDecision decision;
int lastBlockParsed;
int malformed;
int congestive; /* Not enough ZCO space. */
int mustAbort; /* Unreadable block(s). */
/* Per-acquisition state variables. */
int allAuthentic; /* Boolean. */
char *senderEid;
Object acqFileRef;
Object zco; /* Concatenated bundles. */
Object zcoElt; /* Retention in BpDB. */
int zcoLength;
int zcoBytesConsumed;
ZcoReader reader;
int zcoBytesReceived;
int bytesBuffered;
char buffer[BP_MAX_BLOCK_SIZE];
} AcqWorkArea;
/* Definitions supporting route computation. */
typedef enum
{
fwd = 1, /* Forward via indicated EID. */
xmit = 2 /* Transmit in indicated CL duct. */
} FwdAction;
typedef struct
{
FwdAction action;
int protocolClass;
Object outductElt; /* sdrlist elt for xmit */
Object destDuctName; /* sdrstring for xmit */
Object eid; /* sdrstring for fwd */
} FwdDirective;
/* Definitions supporting the use of QoS-sensitive bandwidth
* management. */
/* Outflow objects are non-persistent. They are used only to
* do QoS-sensitive bandwidth management. Since they are private
* to CLOs, they can reside in the private memory of the CLO
* (rather than in shared memory).
*
* Each Outduct, of whatever CL protocol, has three Outflows:
*
* Expedited = 2, Standard = 1, and Bulk = 0.
*
* Expedited traffic goes out before any other. Standard traffic
* (service factor = 2) goes out twice as fast as Bulk traffic
* (service factor = 1). */
#define EXPEDITED_FLOW 2
typedef struct
{
Object outboundBundles; /* SDR list. */
int totalBytesSent;
int svcFactor;
} Outflow;
/* * * Function prototypes. * * * */
extern int bpSend( MetaEid *sourceMetaEid,
char *destEid,
char *reportToEid,
int lifespan,
int classOfService,
BpCustodySwitch custodySwitch,
unsigned char srrFlags,
int ackRequested,
BpExtendedCOS *extendedCOS,
Object adu,
Object *newBundle,
int bundleIsAdmin);
/* This function creates a new bundle
* and queues it for forwarding by the
* applicable scheme-specific forwarder,
* based on the scheme name of the
* destination endpoint ID.
*
* adu must be a zero-copy object
* reference as returned by zco_create().
* bundleIsAdmin is Boolean, must be
* 1 for status reports and custody
* signals but zero otherwise.
*
* Returns 1 on success, in which case
* (and only in this case) the address
* of the new bundle within the ION
* database is returned in newBundle.
* If destination is found to be NULL
* (a transient error), returns zero.
* Otherwise (permanent system failure)
* returns -1. */
extern int bpAbandon( Object bundleObj,
Bundle *bundle);
/* This is the common processing for any
* bundle that a forwarder decides it
* cannot accept for forwarding. It
* sends any applicable status reports
* and then deletes the bundle from
* local storage.
*
* Call this function at most once per
* bundle. Returns 0 on success, -1 on
* any failure. */
extern int bpAccept( Object bundleObj,
Bundle *bundle);
/* This is the common processing for any
* bundle that a forwarder decides it
* can accept for forwarding, whether
* the bundle was sourced locally or
* was received from some other node.
* It updates statistics that are used
* to make future bundle acquisition
* decisions; if custody transfer is
* requested, it takes custody of the
* bundle; and it sends any applicable
* status reports.
*
* This function may be called multiple
* times per bundle but will take effect
* only once. Returns 0 on success, -1
* on any failure. */
extern int bpClone( Bundle *originalBundle,
Bundle *newBundleBuffer,
Object *newBundleObj,
unsigned int offset,
unsigned int length);
/* The function creates a copy of part
* or all of originalBundle, writing
* it to the location returned in
* newBundleObj. newBundleBuffer is
* required: it is used as the work
* area for constructing the new bundle.
* If offset is zero and length is the
* length of originalBundle's payload
* (or zero, which is used to indicate
* "length of original bundle's payload")
* then the copy will have a copy of
* the entire payload of the original
* bundle. Otherwise the function is
* used to "fragment" the bundle: the
* new bundle's payload will be the
* indicated subset of the original
* payload. Returns 0 on success,
* -1 on any error. */
extern int bpEnqueue( FwdDirective *directive,
Bundle *bundle,
Object bundleObj,
char *proxNodeEid);
/* This function is invoked by a forwarder
* to enqueue a bundle for transmission
* by a convergence-layer output adapter
* to the proximate node identified by
* proxNodeEid. It appends the indicated
* bundle to the appropriate transmission
* queue of the duct indicated by
* "directive" based on the bundle's
* priority. If the bundle is destined
* for a specific location among all the
* locations that are reachable via this
* duct, then the directive' destDuctName
* must be a string identifying that
* location.
*
* If forwarding the bundle to multiple
* nodes (flooding or multicast), call
* this function once per planned
* transmission.
*
* Returns 0 on success, -1 on any
* failure. */
extern int bpDequeue( VOutduct *vduct,
Outflow *outflows,
Object *outboundZco,
BpExtendedCOS *extendedCOS,
char *destDuctName,
unsigned int maxPayloadLength,
int timeoutInterval);
/* This function is invoked by a
* convergence-layer output adapter (an
* outduct) to get a bundle that it is to
* transmit to some remote convergence-
* layer input adapter (induct).
*
* bpDequeue first blocks until the
* capacity of the outduct's xmitThrottle
* is non-negative. In this way BP imposes
* rate control on outbound traffic,
* limiting transmission rate to the
* nominal data rate of the outduct.
*
* The function then selects the next
* outbound bundle from the set of outduct
* bundle queues identified by outflows.
* If no such bundle is currently waiting
* for transmission, it blocks until one
* is [or until a signal handler calls
* bp_interrupt()].
*
* On selecting a bundle, if the bundle's
* payload is longer than the indicated
* maximum then bpDequeue fragments the
* bundle: a cloned bundle whose payload
* is all bytes beyond the initial
* maxPayloadLength bytes is created and
* inserted back to the front of the queue
* from which the bundle was selected.
*
* Then bpDequeue catenates (serializes)
* the BP header information in the
* bundle and prepends that serialized
* header to the source data of the
* bundle's payload ZCO; if there are
* post-payload blocks, it likewise
* catenates them into a trailer that
* is appended to the source data. Then
* it returns the address of that ZCO in
* *bundleZco for transmission at the
* convergence layer (possibly entailing
* segmentation that would be invisible
* to BP).
*
* The extended class of service for the
* bundle is provided in *extendedCOS
* so that the requested QOS can be
* mapped to the QOS features of the
* convergence-layer protocol.
*
* If this bundle is destined for a
* specific location among all the
* locations that are reachable via
* this duct, then a string identifying
* that location is written into
* destDuctName, which must be an array
* of at least MAX_CL_DUCT_NAME_LEN + 1
* bytes.
*
* The timeoutInterval argument indicates
* the length of time following return of
* a bundle after which failure of custody
* transfer should be inferred if no
* custody acceptance signal for this
* bundle has been received. Any negative
* value signifies that the calling
* function accepts "stewardship" of the
* bundle, i.e., commits to dispositioning
* the returned bundle as soon as results
* of convergence-layer transmission are
* known, by calling one of two functions:
* either bpHandleXmitSuccess or else
* bpHandleXmitFailure. A value of zero
* signifies that the calling function
* does not accept stewardship but also
* does not want to set a custody transfer
* timer.
*
* Returns 0 on success, -1 on failure. */
extern int bpIdentify(Object bundleZco, Object *bundleObj);
/* This function parses out the ID fields
* of the catenated outbound bundle in
* bundleZco, locates the bundle that
* is identified by that bundle ID, and
* passes that bundle's address back in
* bundleObj, e.g., to enable insertion
* of a custody timeout event via bpMemo.
*
* bpIdentify allocates a temporary
* buffer of size BP_MAX_BLOCK_SIZE
* into which the initial block(s) of
* the catenated bundle identified
* by bundleZco are read for parsing.
* If that buffer is not long enough
* to contain the entire primary block
* of the bundle, bundle ID field
* extraction will be incomplete and
* the bundle will not be located.
*
* If the bundle is not located, the
* address returned in *bundleObj will
* be zero.
*
* Returns 0 on success (whether bundle
* was located or not), -1 on system
* failure. */
extern int bpMemo(Object bundleObj, unsigned int interval);
/* This function inserts a "custody-
* acceptance due" event into the
* timeline. The event causes bpclock
* to re-forward the indicated bundle if
* it is still in the database (i.e., it
* has not yet been accepted by another
* custodian) as of the moment computed
* by adding the indicated interval to
* the current time.
*
* Returns 0 on success, -1 on failure. */
extern int bpHandleXmitSuccess(Object zco, unsigned int interval);
/* This function is invoked by a
* convergence-layer output adapter (an
* outduct) on detection of convergence-
* layer protocol transmission success.
* It causes the serialized (catenated)
* outbound bundle in zco to be destroyed,
* unless some constraint (such as
* acceptance of custody) requires that
* bundle destruction be deferred.
*
* In the event that custody of the
* bundle has indeed been accepted, the
* calling function can request a further
* increment of reliability: when the
* value of "interval" is greater than
* zero, it indicates the length of time
* after which failure of custody transfer
* should be inferred if no custody
* acceptance signal for this bundle has
* been received.
*
* Returns 0 on success, -1 on failure. */
extern int bpHandleXmitFailure(Object zco);
/* This function is invoked by a
* convergence-layer output adapter (an
* outduct) on detection of a convergence-
* layer protocol transmission error.
* It causes the serialized (catenated)
* outbound bundle in zco to be queued
* up for re-forwarding.
*
* Returns 0 on success, -1 on failure. */
extern int bpReforwardBundle(Object bundleToReforward);
/* bpReforwardBundle aborts the current
* outduct queuing for the bundle and
* queues it for re-forwarding, possibly
* on a different route. It is invoked
* when transmission is determined to be
* overdue, indicating an anomaly in the
* originally selected route.
*
* Returns 0 on success, -1 on failure. */
extern AcqWorkArea *bpGetAcqArea(VInduct *vduct);
/* Allocates a bundle acquisition work
* area for use in acquiring inbound
* bundles via the indicated duct.
*
* Returns NULL on any failure. */
extern void bpReleaseAcqArea(AcqWorkArea *workArea);
/* Releases dynamically allocated
* bundle acquisition work area. */
extern int bpBeginAcq( AcqWorkArea *workArea,
int authentic,
char *senderEid);
/* This function is invoked by a
* convergence-layer input adapter
* to initiate acquisition of a new
* bundle via the indicated workArea.
* It initializes deserialization of
* an array of bytes constituting a
* single transmitted bundle.
*
* The "authentic" Boolean and "senderEid"
* string are knowledge asserted by the
* convergence-layer input adapter
* invoking this function: an assertion
* of authenticity of the data being
* acquired (e.g., per knowledge that
* the data were received via a
* physically secure medium) and, if
* non-NULL, an EID characterizing the
* node that send this inbound bundle.
*
* Returns 0 on success, -1 on any
* failure. */
extern int bpLoadAcq( AcqWorkArea *workArea,
Object zco);
/* This function continues acquisition
* of a bundle as initiated by an
* invocation of bpBeginAcq(). To
* do so, it inserts the indicated
* zero-copy object -- containing
* the bundle in concatenated form --
* into workArea.
*
* bpLoadAcq is an alternative to
* bpContinueAcq, intended for use
* by convergence-layer adapters that
* natively acquire concatenated
* bundles into zero-copy objects.
*
* Returns 0 on success, -1 on any
* failure. */
extern int bpContinueAcq( AcqWorkArea *workArea,
char *bytes,
int length);
/* This function continues acquisition
* of a bundle as initiated by an
* invocation of bpBeginAcq(). To
* do so, it appends the indicated array
* of bytes, of the indicated length, to
* the byte array that is encapsulated
* in workArea.
*
* bpContinueAcq is an alternative to
* bpLoadAcq, intended for use by
* convergence-layer adapters that
* incrementally acquire portions of
* concatenated bundles into byte-array
* buffers. The function transparently
* creates a zero-copy object for
* acquisition of the bundle, if one
* does not already exist, and appends
* "bytes" to the source data of that
* ZCO.
*
* Returns 0 on success, -1 on any
* failure. */
extern void bpCancelAcq( AcqWorkArea *workArea);
/* Cancels acquisition of a new
* bundle via the indicated workArea,
* destroying the bundle acquisition
* ZCO of workArea. */
extern int bpEndAcq( AcqWorkArea *workArea);
/* Concludes acquisition of a new
* bundle via the indicated workArea.
* This function is invoked after the
* convergence-layer input adapter
* has invoked either bpLoadAcq() or
* bpContinueAcq() [perhaps invoking
* the latter multiple times] such
* that all bytes of the transmitted
* bundle are now included in the
* bundle acquisition ZCO of workArea.
*
* Returns 1 on success, 0 on any failure
* pertaining only to this bundle, -1 on
* any other (i.e., system) failure. If
* 1 is returned, then the bundle has been
* fully acquired and dispatched (that is,
* queued for delivery and/or forwarding).
* In this case, the invoking convergence-
* layer input adapter should simply
* continue with the next cycle of
* bundle acquisition, i.e., it should
* call bpBeginAcq().
*
* If 0 is returned then the failure
* is transient, applying only to the
* bundle that is currently being
* acquired. In this case, the current
* bundle acquisition has failed but
* BP itself can continue; the invoking
* convergence-layer input adapter
* should simply continue with the next
* cycle of bundle acquisition just as
* if the return code had been 1. */
extern int bpDestroyBundle(Object bundleToDestroy,
int expired);
/* bpDestroyBundle destroys the bundle,
* provided all retention constraints
* have been removed. "expired" is
* Boolean, set to 1 only by bpClock when
* it destroys a bundle whose TTL has
* expired or by bp_cancel on bundle
* cancellation. Returns 1 if bundlex
* is actually destroyed, 0 if bundle is
* retained because not all constraints
* have been removed, -1 on any error. */
extern int bpInit();
extern void bpDropVdb();
extern void bpRaiseVdb();
extern int bpSetCTCountdownTimer(time_t newTimeout);
extern int bpStart();
extern void bpStop();
extern int bpAttach();
extern void bpDetach();
extern Object getBpDbObject();
extern BpDB *getBpConstants();
extern BpVdb *getBpVdb();
extern void getCurrentDtnTime(DtnTime *dt);
extern int guessBundleSize(Bundle *bundle);
extern int computeECCC(int bundleSize, ClProtocol *protocol);
extern void computeApplicableBacklog(Outduct *, Bundle *, Scalar *);
extern int putBpString(BpString *bpString, char *string);
extern char *getBpString(BpString *bpString);
extern char *retrieveDictionary(Bundle *bundle);
extern void releaseDictionary(char *dictionary);
extern int parseEidString(char *eidString, MetaEid *metaEid,
VScheme **scheme, PsmAddress *schemeElt);
extern void restoreEidString(MetaEid *metaEid);
extern int printEid(EndpointId *eid, char *dictionary, char **str);
extern int startBpTask(Object cmd, Object cmdparms, int *pid);
extern void noteStateStats(int stateIdx, Bundle *bundle);
extern void clearAllStateStats();
extern void reportAllStateStats();
extern void findScheme(char *name, VScheme **vscheme,
PsmAddress *elt);
extern int addScheme(char *name, char *fwdCmd, char *admAppCmd);
extern int updateScheme(char *name, char *fwdCmd, char *admAppCmd);
extern int removeScheme(char *name);
extern int bpStartScheme(char *name);
extern void bpStopScheme(char *name);
extern void findEndpoint(char *schemeName, char *nss,
VScheme *vscheme, VEndpoint **vpoint,
PsmAddress *elt);
/* Note that adding an endpoint is also called "registering". */
extern int addEndpoint(char *endpointName,
BpRecvRule recvAction, char *recvScript);
extern int updateEndpoint(char *endpointName,
BpRecvRule recvAction, char *recvScript);
/* Removing an endpoint is also called "unregistering". */
extern int removeEndpoint(char *endpointName);
extern void fetchProtocol(char *name, ClProtocol *clp, Object *elt);
extern int addProtocol(char *name, int payloadBytesPerFrame,
int overheadPerFrame, int nominalRate,
int protocolClass);
extern int removeProtocol(char *name);
extern int bpStartProtocol(char *name);
extern void bpStopProtocol(char *name);
extern void findInduct(char *protocolName, char *name,
VInduct **vduct, PsmAddress *elt);
extern int addInduct(char *protocolName, char *name,
char *cliCmd);
extern int updateInduct(char *protocolName, char *name,
char *cliCmd);
extern int removeInduct(char *protocolName, char *name);
extern int bpStartInduct(char *protocolName, char *ductName);
extern void bpStopInduct(char *protocolName, char *ductName);
extern void findOutduct(char *protocolName, char *name,
VOutduct **vduct, PsmAddress *elt);
extern int addOutduct(char *protocolName, char *name,
char *cloCmd, unsigned int maxPayloadLength);
extern int updateOutduct(char *protocolName, char *name,
char *cloCmd, unsigned int maxPayloadLength);
extern int removeOutduct(char *protocolName, char *name);
extern int bpStartOutduct(char *protocolName, char *ductName);
extern void bpStopOutduct(char *protocolName, char *ductName);
extern int bpBlockOutduct(char *protocolName, char *ductName);
extern int bpUnblockOutduct(char *protocolName, char *ductName);
extern Object insertBpTimelineEvent(BpEvent *newEvent);
extern void destroyBpTimelineEvent(Object timelineElt);
extern int decodeBundle(Sdr sdr, Object zco, unsigned char *buf,
Bundle *image, char **dictionary,
unsigned int *bundleLength);
extern int findBundle(char *sourceEid, BpTimestamp *creationTime,
unsigned int fragmentOffset,
unsigned int fragmentLength,
Object *bundleAddr);
extern int retrieveInTransitBundle(Object bundleZco, Object *obj);
extern int deliverBundle(Object bundleObj, Bundle *bundle,
VEndpoint *vpoint);
extern int forwardBundle(Object bundleObj, Bundle *bundle,
char *stationEid);
extern int reverseEnqueue(Object xmitElt, ClProtocol *protocol,
Object outductObj, Outduct *outduct,
int sendToLimbo);
extern int enqueueToLimbo(Bundle *bundle, Object bundleObj);
extern int releaseFromLimbo(Object xmitElt, int resume);
extern int sendStatusRpt(Bundle *bundle, char *dictionary);
typedef int (*StatusRptCB)(BpDelivery *, BpStatusRpt *);
typedef int (*CtSignalCB)(BpDelivery *, BpCtSignal *);
typedef struct bpsap_st
{
VEndpoint *vpoint;
MetaEid endpointMetaEid;
sm_SemId recvSemaphore;
} Sap;
extern int _handleAdminBundles(char *adminEid,
StatusRptCB handleStatusRpt,
CtSignalCB handleCtSignal);
extern int applyCtSignal(BpCtSignal *, char *);
extern int eidIsLocal(EndpointId eid, char* dictionary);
#ifdef __cplusplus
}
#endif
#endif /* _BPP_H_ */
|