#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <strings.h>
#include <string.h>
#include <stdlib.h>
#include <sys/time.h>
#include "dtnping.h"
#include "dtn_api.h"
Go to the source code of this file.
Defines | |
#define | MAX_PINGS_IN_FLIGHT 1024 |
Functions | |
void | usage () |
void | doOptions (int argc, const char **argv) |
int | main (int argc, const char **argv) |
Variables | |
const char * | progname |
int | interval = 1 |
int | count = 0 |
int | reply_count = 0 |
int | expiration = 30 |
char | dest_eid_str [DTN_MAX_ENDPOINT_ID] = "" |
char | source_eid_str [DTN_MAX_ENDPOINT_ID] = "" |
char | replyto_eid_str [DTN_MAX_ENDPOINT_ID] = "" |
void doOptions | ( | int | argc, | |
const char ** | argv | |||
) |
Definition at line 319 of file dtnping.c.
References count, dest_eid_str, expiration, interval, progname, source_eid_str, and usage().
Referenced by main().
int main | ( | int | argc, | |
const char ** | argv | |||
) |
Definition at line 55 of file dtnping.c.
References dtn_bundle_payload_t::buf, dtn_bundle_payload_t::buf_len, dtn_bundle_payload_t::buf_val, dtn_bundle_status_report_t::bundle_id, bundle_id, count, dtn_bundle_id_t::creation_ts, debug, dtn_bundle_spec_t::dest, dest_eid_str, doOptions(), dtn_bundle_spec_t::dopts, DOPTS_DELETE_RCPT, dtn_build_local_eid(), dtn_close(), dtn_copy_eid(), dtn_errno(), DTN_ETIMEOUT, dtn_free_payload(), dtn_open(), dtn_parse_eid_string(), DTN_PAYLOAD_MEM, dtn_recv(), DTN_REG_DEFER, DTN_REGID_NONE, dtn_register(), dtn_send(), dtn_set_payload(), dtn_status_report_reason_to_str(), dtn_strerror(), DTN_SUCCESS, dtn_reg_info_t::endpoint, expiration, dtn_bundle_spec_t::expiration, dtn_reg_info_t::expiration, dtn_bundle_status_report_t::flags, dtn_reg_info_t::flags, dtnsim::gettimeofday(), handle, interval, ping_payload_t::nonce, ping_payload_t::ping, PING_STR, dtn_bundle_status_report_t::reason, dtn_reg_info_t::regid, regid, reply_count, reply_payload, reply_spec, dtn_bundle_spec_t::replyto, dtn_timestamp_t::secs, dtn_timestamp_t::seqno, ping_payload_t::seqno, dtn_bundle_spec_t::source, source_eid_str, STATUS_DELETED, dtn_bundle_payload_t::status_report, ping_payload_t::time, TIMEVAL_DIFF_MSEC, and dtn_endpoint_id_t::uri.
int count = 0 |
Definition at line 45 of file dtnping.c.
Referenced by dtn::SequenceIDBlockProcessor::consume(), doOptions(), dtn::TcaRouter::fwd_to_all(), dtn::TcaRouter::fwd_to_matching_r(), dtn::RegistrationTable::get_matching(), dtn::RouteTable::get_matching_helper(), main(), dtn::TCPConvergenceLayer::parse_link_params(), dtn::StreamConvergenceLayer::parse_link_params(), dtn::SerialConvergenceLayer::parse_link_params(), parse_options(), dtn::FragmentManager::proactively_fragment(), read_and_process(), dtn::LinkScheduleEstimator::refine_period(), dtn::TableBasedRouter::route_bundle(), and dtn::APIServer::shutdown_hook().
char dest_eid_str[DTN_MAX_ENDPOINT_ID] = "" |
Definition at line 48 of file dtnping.c.
Referenced by doOptions(), and main().
int expiration = 30 |
int interval = 1 |
Definition at line 44 of file dtnping.c.
Referenced by doOptions(), and main().
int reply_count = 0 |
char replyto_eid_str[DTN_MAX_ENDPOINT_ID] = "" |
Definition at line 50 of file dtnping.c.
Referenced by doOptions(), and main().
char source_eid_str[DTN_MAX_ENDPOINT_ID] = "" |
Definition at line 49 of file dtnping.c.
Referenced by doOptions(), and main().