#include <rpc/rpc.h>
#include <limits.h>
Go to the source code of this file.
#define DTN_MAX_AUTHDATA 1024 |
Definition at line 50 of file dtn_types.h.
#define DTN_MAX_BLOCK_LEN 1024 |
Definition at line 53 of file dtn_types.h.
Referenced by xdr_dtn_extension_block_t(), and xdr_dtn_sequence_id_t().
#define DTN_MAX_BLOCKS 256 |
Definition at line 54 of file dtn_types.h.
Referenced by xdr_dtn_bundle_spec_t().
#define DTN_MAX_BUNDLE_MEM 50000 |
Definition at line 52 of file dtn_types.h.
Referenced by dtn_set_payload(), dtn::APIClient::handle_recv(), and xdr_dtn_bundle_payload_t().
#define DTN_MAX_ENDPOINT_ID 256 |
Definition at line 47 of file dtn_types.h.
Referenced by dtn::EndpointID::copyto(), dtn_build_local_eid(), dtn_copy_eid(), dtn_parse_eid_string(), dtn::APIEndpointIDOpt::set(), xdr_dtn_endpoint_id_t(), and xdr_dtn_service_tag_t().
#define DTN_MAX_EXEC_LEN ARG_MAX |
Definition at line 49 of file dtn_types.h.
Referenced by xdr_dtn_reg_info_t().
#define DTN_MAX_PATH_LEN PATH_MAX |
Definition at line 48 of file dtn_types.h.
Referenced by xdr_dtn_bundle_payload_t().
#define DTN_MAX_REGION_LEN 64 |
Definition at line 51 of file dtn_types.h.
#define DTN_REGID_NONE 0 |
Value for an unspecified registration cookie (i.e.
indication that the daemon should allocate a new unique id).
Definition at line 111 of file dtn_types.h.
Referenced by TcaController::dtn_reg(), DTNSendCommand::init_opts(), main(), parse_options(), reader_thread(), TcaController::send_bundle(), and to_bundles().
#define DTN_TIMEOUT_INF ((dtn_timeval_t)-1) |
An infinite wait is a timeout of -1.
Definition at line 85 of file dtn_types.h.
Referenced by dtntunnel::DTNTunnel::main(), and main().
typedef enum dtn_bundle_delivery_opts_t dtn_bundle_delivery_opts_t |
Definition at line 198 of file dtn_types.h.
typedef struct dtn_bundle_id_t dtn_bundle_id_t |
Definition at line 295 of file dtn_types.h.
Definition at line 369 of file dtn_types.h.
typedef struct dtn_bundle_payload_t dtn_bundle_payload_t |
Definition at line 383 of file dtn_types.h.
typedef enum dtn_bundle_priority_t dtn_bundle_priority_t |
Definition at line 168 of file dtn_types.h.
typedef struct dtn_bundle_spec_t dtn_bundle_spec_t |
Definition at line 279 of file dtn_types.h.
typedef struct dtn_bundle_status_report_t dtn_bundle_status_report_t |
Definition at line 342 of file dtn_types.h.
typedef struct dtn_endpoint_id_t dtn_endpoint_id_t |
Definition at line 68 of file dtn_types.h.
typedef enum dtn_extension_block_flags_t dtn_extension_block_flags_t |
Definition at line 222 of file dtn_types.h.
typedef struct dtn_extension_block_t dtn_extension_block_t |
Definition at line 236 of file dtn_types.h.
typedef enum dtn_reg_flags_t dtn_reg_flags_t |
Definition at line 135 of file dtn_types.h.
typedef u_int dtn_reg_id_t |
A registration cookie.
Definition at line 74 of file dtn_types.h.
typedef struct dtn_reg_info_t dtn_reg_info_t |
Definition at line 152 of file dtn_types.h.
typedef struct dtn_sequence_id_t dtn_sequence_id_t |
Definition at line 251 of file dtn_types.h.
typedef struct dtn_service_tag_t dtn_service_tag_t |
Definition at line 105 of file dtn_types.h.
typedef enum dtn_status_report_flags_t dtn_status_report_flags_t |
Definition at line 325 of file dtn_types.h.
typedef enum dtn_status_report_reason_t dtn_status_report_reason_t |
Definition at line 311 of file dtn_types.h.
typedef struct dtn_timestamp_t dtn_timestamp_t |
Definition at line 91 of file dtn_types.h.
typedef u_int dtn_timeval_t |
DTN timeouts are specified in seconds.
Definition at line 80 of file dtn_types.h.
Bundle delivery option flags.
Note that multiple options may be selected for a given bundle.
DOPTS_NONE - no custody, etc DOPTS_CUSTODY - custody xfer DOPTS_DELIVERY_RCPT - end to end delivery (i.e. return receipt) DOPTS_RECEIVE_RCPT - per hop arrival receipt DOPTS_FORWARD_RCPT - per hop departure receipt DOPTS_CUSTODY_RCPT - per custodian receipt DOPTS_DELETE_RCPT - request deletion receipt DOPTS_SINGLETON_DEST - destination is a singleton DOPTS_MULTINODE_DEST - destination is not a singleton DOPTS_DO_NOT_FRAGMENT - set the do not fragment bit
DOPTS_NONE | |
DOPTS_CUSTODY | |
DOPTS_DELIVERY_RCPT | |
DOPTS_RECEIVE_RCPT | |
DOPTS_FORWARD_RCPT | |
DOPTS_CUSTODY_RCPT | |
DOPTS_DELETE_RCPT | |
DOPTS_SINGLETON_DEST | |
DOPTS_MULTINODE_DEST | |
DOPTS_DO_NOT_FRAGMENT |
Definition at line 186 of file dtn_types.h.
The payload of a bundle can be sent or received either in a file, in which case the payload structure contains the filename, or in memory where the struct contains the data in-band, in the 'buf' field.
When sending a bundle, if the location specifies that the payload is in a temp file, then the daemon assumes ownership of the file and should have sufficient permissions to move or rename it.
When receiving a bundle that is a status report, then the status_report pointer will be non-NULL and will point to a dtn_bundle_status_report_t structure which contains the parsed fields of the status report.
DTN_PAYLOAD_MEM - payload contents in memory DTN_PAYLOAD_FILE - payload contents in file DTN_PAYLOAD_TEMP_FILE - in file, assume ownership (send only)
Definition at line 364 of file dtn_types.h.
Bundle priority specifier.
COS_BULK - lowest priority COS_NORMAL - regular priority COS_EXPEDITED - important COS_RESERVED - TBD
Definition at line 162 of file dtn_types.h.
Extension block flags.
Note that multiple flags may be selected for a given block.
BLOCK_FLAG_NONE - no flags BLOCK_FLAG_REPLICATE - block must be replicated in every fragment BLOCK_FLAG_REPORT - transmit report if block can't be processed BLOCK_FLAG_DELETE_BUNDLE - delete bundle if block can't be processed BLOCK_FLAG_LAST - last block BLOCK_FLAG_DISCARD_BLOCK - discard block if it can't be processed BLOCK_FLAG_UNPROCESSED - block was forwarded without being processed
BLOCK_FLAG_NONE | |
BLOCK_FLAG_REPLICATE | |
BLOCK_FLAG_REPORT | |
BLOCK_FLAG_DELETE_BUNDLE | |
BLOCK_FLAG_LAST | |
BLOCK_FLAG_DISCARD_BLOCK | |
BLOCK_FLAG_UNPROCESSED |
Definition at line 213 of file dtn_types.h.
enum dtn_reg_flags_t |
Registration flags are a bitmask of the following:
Delivery failure actions (exactly one must be selected): DTN_REG_DROP - drop bundle if registration not active DTN_REG_DEFER - spool bundle for later retrieval DTN_REG_EXEC - exec program on bundle arrival
Session flags: DTN_SESSION_CUSTODY - app assumes custody for the session DTN_SESSION_PUBLISH - creates a publication point DTN_SESSION_SUBSCRIBE - create subscription for the session
DTN_REG_DROP | |
DTN_REG_DEFER | |
DTN_REG_EXEC | |
DTN_SESSION_CUSTODY | |
DTN_SESSION_PUBLISH | |
DTN_SESSION_SUBSCRIBE |
Definition at line 127 of file dtn_types.h.
Bundle Status Report status flags that indicate which timestamps in the status report structure are valid.
STATUS_RECEIVED | |
STATUS_CUSTODY_ACCEPTED | |
STATUS_FORWARDED | |
STATUS_DELIVERED | |
STATUS_DELETED | |
STATUS_ACKED_BY_APP |
Definition at line 317 of file dtn_types.h.
Bundle Status Report "Reason Code" flags.
Definition at line 300 of file dtn_types.h.
bool_t xdr_dtn_bundle_delivery_opts_t | ( | ) |
Referenced by _wrap_xdr_dtn_bundle_delivery_opts_t(), and XS().
bool_t xdr_dtn_bundle_id_t | ( | ) |
bool_t xdr_dtn_bundle_payload_location_t | ( | ) |
bool_t xdr_dtn_bundle_payload_t | ( | ) |
bool_t xdr_dtn_bundle_priority_t | ( | ) |
Referenced by _wrap_xdr_dtn_bundle_priority_t(), xdr_dtn_bundle_spec_t(), and XS().
bool_t xdr_dtn_bundle_spec_t | ( | ) |
Referenced by _wrap_xdr_dtn_bundle_spec_t(), dtn_recv(), dtn_send(), dtn::APIClient::handle_recv(), dtn::APIClient::handle_send(), and XS().
bool_t xdr_dtn_bundle_status_report_t | ( | ) |
Referenced by _wrap_xdr_dtn_bundle_status_report_t(), xdr_dtn_bundle_payload_t(), and XS().
bool_t xdr_dtn_endpoint_id_t | ( | ) |
Referenced by _wrap_xdr_dtn_endpoint_id_t(), dtn_build_local_eid(), dtn_find_registration(), dtn_session_update(), dtn::APIClient::handle_find_registration(), dtn::APIClient::handle_local_eid(), dtn::APIClient::handle_session_update(), xdr_dtn_bundle_id_t(), xdr_dtn_bundle_spec_t(), xdr_dtn_reg_info_t(), and XS().
bool_t xdr_dtn_extension_block_flags_t | ( | ) |
Referenced by _wrap_xdr_dtn_extension_block_flags_t(), and XS().
bool_t xdr_dtn_extension_block_t | ( | ) |
Referenced by _wrap_xdr_dtn_extension_block_t(), xdr_dtn_bundle_spec_t(), and XS().
bool_t xdr_dtn_reg_flags_t | ( | ) |
Referenced by _wrap_xdr_dtn_reg_flags_t(), and XS().
bool_t xdr_dtn_reg_id_t | ( | ) |
Referenced by _wrap_xdr_dtn_reg_id_t(), dtn_bind(), dtn_find_registration(), dtn_register(), dtn_send(), dtn_unbind(), dtn_unregister(), dtn::APIClient::handle_bind(), dtn::APIClient::handle_find_registration(), dtn::APIClient::handle_register(), dtn::APIClient::handle_send(), dtn::APIClient::handle_unbind(), dtn::APIClient::handle_unregister(), xdr_dtn_bundle_spec_t(), xdr_dtn_reg_info_t(), and XS().
bool_t xdr_dtn_reg_info_t | ( | ) |
Referenced by _wrap_xdr_dtn_reg_info_t(), dtn_register(), dtn::APIClient::handle_register(), and XS().
bool_t xdr_dtn_sequence_id_t | ( | ) |
Referenced by _wrap_xdr_dtn_sequence_id_t(), xdr_dtn_bundle_spec_t(), and XS().
bool_t xdr_dtn_service_tag_t | ( | ) |
Referenced by _wrap_xdr_dtn_service_tag_t(), dtn_build_local_eid(), dtn::APIClient::handle_local_eid(), and XS().
bool_t xdr_dtn_status_report_flags_t | ( | ) |
Referenced by _wrap_xdr_dtn_status_report_flags_t(), xdr_dtn_bundle_status_report_t(), and XS().
bool_t xdr_dtn_status_report_reason_t | ( | ) |
Referenced by _wrap_xdr_dtn_status_report_reason_t(), xdr_dtn_bundle_status_report_t(), and XS().
bool_t xdr_dtn_timestamp_t | ( | ) |
Referenced by _wrap_xdr_dtn_timestamp_t(), xdr_dtn_bundle_id_t(), xdr_dtn_bundle_spec_t(), xdr_dtn_bundle_status_report_t(), and XS().
bool_t xdr_dtn_timeval_t | ( | ) |