#include <rpc/rpc.h>
#include <limits.h>
Go to the source code of this file.
#define ARG_MAX _POSIX_ARG_MAX |
Definition at line 40 of file dtn_types.h.
#define DTN_MAX_AUTHDATA 1024 |
Definition at line 53 of file dtn_types.h.
#define DTN_MAX_BLOCK_LEN 64 |
#define DTN_MAX_BLOCKS 256 |
#define DTN_MAX_BUNDLE_MEM 50000 |
Definition at line 55 of file dtn_types.h.
Referenced by dtn_set_payload(), and xdr_dtn_bundle_payload_t().
#define DTN_MAX_ENDPOINT_ID 256 |
Definition at line 50 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 |
#define DTN_MAX_PATH_LEN PATH_MAX |
#define DTN_MAX_REGION_LEN 64 |
Definition at line 54 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 114 of file dtn_types.h.
Referenced by TcaController::dtn_reg(), main(), parse_options(), and reader_thread().
#define DTN_TIMEOUT_INF ((dtn_timeval_t)-1) |
An infinite wait is a timeout of -1.
Definition at line 88 of file dtn_types.h.
Referenced by dtntunnel::DTNTunnel::main().
typedef enum dtn_bundle_delivery_opts_t dtn_bundle_delivery_opts_t |
Definition at line 185 of file dtn_types.h.
typedef struct dtn_bundle_id_t dtn_bundle_id_t |
Definition at line 257 of file dtn_types.h.
Definition at line 334 of file dtn_types.h.
typedef struct dtn_bundle_payload_t dtn_bundle_payload_t |
Definition at line 348 of file dtn_types.h.
typedef enum dtn_bundle_priority_t dtn_bundle_priority_t |
Definition at line 161 of file dtn_types.h.
typedef struct dtn_bundle_spec_t dtn_bundle_spec_t |
Definition at line 241 of file dtn_types.h.
typedef struct dtn_bundle_status_report_t dtn_bundle_status_report_t |
Definition at line 304 of file dtn_types.h.
typedef struct dtn_endpoint_id_t dtn_endpoint_id_t |
Definition at line 71 of file dtn_types.h.
typedef enum dtn_extension_block_flags_t dtn_extension_block_flags_t |
Definition at line 209 of file dtn_types.h.
typedef struct dtn_extension_block_t dtn_extension_block_t |
Definition at line 223 of file dtn_types.h.
typedef enum dtn_reg_failure_action_t dtn_reg_failure_action_t |
Definition at line 128 of file dtn_types.h.
typedef u_int dtn_reg_id_t |
typedef struct dtn_reg_info_t dtn_reg_info_t |
Definition at line 145 of file dtn_types.h.
typedef struct dtn_service_tag_t dtn_service_tag_t |
Definition at line 108 of file dtn_types.h.
typedef enum dtn_status_report_flags_t dtn_status_report_flags_t |
Definition at line 287 of file dtn_types.h.
typedef enum dtn_status_report_reason_t dtn_status_report_reason_t |
Definition at line 273 of file dtn_types.h.
typedef struct dtn_timestamp_t dtn_timestamp_t |
Definition at line 94 of file dtn_types.h.
typedef u_int dtn_timeval_t |
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_NONE | |
DOPTS_CUSTODY | |
DOPTS_DELIVERY_RCPT | |
DOPTS_RECEIVE_RCPT | |
DOPTS_FORWARD_RCPT | |
DOPTS_CUSTODY_RCPT | |
DOPTS_DELETE_RCPT |
Definition at line 176 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.
Note that there is a limit (DTN_MAX_BUNDLE_MEM) on the maximum size bundle payload that can be sent or received in memory.
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 - copy contents from memory DTN_PAYLOAD_FILE - file copy the contents of the file DTN_PAYLOAD_TEMP_FILE - assume ownership of the file
Definition at line 329 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 155 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 200 of file dtn_types.h.
Registration delivery failure actions 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.
Definition at line 123 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 279 of file dtn_types.h.
Bundle Status Report "Reason Code" flags.
Definition at line 262 of file dtn_types.h.
bool_t xdr_dtn_bundle_delivery_opts_t | ( | ) |
bool_t xdr_dtn_bundle_id_t | ( | ) |
Referenced by dtn_send(), dtn::APIClient::handle_send(), and xdr_dtn_bundle_status_report_t().
bool_t xdr_dtn_bundle_payload_location_t | ( | ) |
Referenced by dtn_recv(), dtn::APIClient::handle_recv(), and xdr_dtn_bundle_payload_t().
bool_t xdr_dtn_bundle_payload_t | ( | ) |
Referenced by dtn_free_payload(), dtn_recv(), dtn_send(), dtn::APIClient::handle_recv(), and dtn::APIClient::handle_send().
bool_t xdr_dtn_bundle_priority_t | ( | ) |
Referenced by xdr_dtn_bundle_spec_t().
bool_t xdr_dtn_bundle_spec_t | ( | ) |
Referenced by dtn_recv(), dtn_send(), dtn::APIClient::handle_recv(), and dtn::APIClient::handle_send().
bool_t xdr_dtn_bundle_status_report_t | ( | ) |
Referenced by xdr_dtn_bundle_payload_t().
bool_t xdr_dtn_endpoint_id_t | ( | ) |
bool_t xdr_dtn_extension_block_flags_t | ( | ) |
bool_t xdr_dtn_extension_block_t | ( | ) |
Referenced by xdr_dtn_bundle_spec_t().
bool_t xdr_dtn_reg_failure_action_t | ( | ) |
Referenced by xdr_dtn_reg_info_t().
bool_t xdr_dtn_reg_id_t | ( | ) |
Referenced by dtn_bind(), dtn_find_registration(), dtn_register(), dtn_unbind(), dtn_unregister(), dtn::APIClient::handle_bind(), dtn::APIClient::handle_find_registration(), dtn::APIClient::handle_register(), dtn::APIClient::handle_unbind(), dtn::APIClient::handle_unregister(), and xdr_dtn_reg_info_t().
bool_t xdr_dtn_reg_info_t | ( | ) |
Referenced by dtn_register(), and dtn::APIClient::handle_register().
bool_t xdr_dtn_service_tag_t | ( | ) |
Referenced by dtn_build_local_eid(), and dtn::APIClient::handle_local_eid().
bool_t xdr_dtn_status_report_flags_t | ( | ) |
Referenced by xdr_dtn_bundle_status_report_t().
bool_t xdr_dtn_status_report_reason_t | ( | ) |
Referenced by xdr_dtn_bundle_status_report_t().
bool_t xdr_dtn_timestamp_t | ( | ) |
Referenced by xdr_dtn_bundle_id_t(), and xdr_dtn_bundle_status_report_t().
bool_t xdr_dtn_timeval_t | ( | ) |