#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <strings.h>
#include <string.h>
#include <stdlib.h>
#include <sys/time.h>
#include "dtn_api.h"
Go to the source code of this file.
Classes | |
struct | ping_payload_t |
Defines | |
#define | MAX_PINGS_IN_FLIGHT 1024 |
#define | TIMEVAL_DIFF_MSEC(t1, t2) |
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 | 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] = "" |
#define TIMEVAL_DIFF_MSEC | ( | t1, | |||
t2 | ) |
Value:
((unsigned long int)(((t1).tv_sec - (t2).tv_sec) * 1000) + \ (((t1).tv_usec - (t2).tv_usec) / 1000))
Definition at line 49 of file dtnping.c.
Referenced by dtn::StreamConvergenceLayer::Connection::check_keepalive(), dtn::CustodyTimer::CustodyTimer(), oasys::ProgressPrinter::done(), dtn::StreamConvergenceLayer::Connection::handle_poll_timeout(), dtn::Registration::init_expiration_timer(), dtn::Announce::interval_remaining(), main(), oasys::TimerSystem::pop_timer(), oasys::TimerSystem::run_expired_timers(), and oasys::TimerSystem::schedule_at().
void doOptions | ( | int | argc, | |
const char ** | argv | |||
) |
Definition at line 313 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 61 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_reg_info_t::failure_action, dtn_bundle_status_report_t::flags, dtnsim::gettimeofday(), handle, interval, ping_payload_t::nonce, ping_payload_t::ping, dtn_bundle_status_report_t::reason, dtn_reg_info_t::regid, regid, reply_payload, reply_spec, dtn_bundle_spec_t::replyto, dtn_timestamp_t::secs, dtn_timestamp_t::seqno, ping_payload_t::seqno, snprintf(), 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 41 of file dtnping.c.
Referenced by dtn::Link::create_link(), dtn::DTND::daemonize(), doOptions(), dtn::LinkCommand::exec(), dtn::TcaRouter::fwd_to_all(), dtn::TableBasedRouter::fwd_to_matching(), dtn::TcaRouter::fwd_to_matching_r(), dtn::RouteTable::get_matching(), dtn::RegistrationTable::get_matching(), main(), dtn::TCPConvergenceLayer::parse_link_params(), dtn::StreamConvergenceLayer::parse_link_params(), dtn::BluetoothConvergenceLayer::parse_link_params(), parse_options(), oasys::StackTrace::print_current_trace(), dtn::FragmentManager::proactively_fragment(), read_and_process(), dtn::LinkScheduleEstimator::refine_period(), dtn::TableBasedRouter::should_fwd(), and oasys::FileSystemTable::size().
char dest_eid_str[DTN_MAX_ENDPOINT_ID] = "" |
int expiration = 30 |
int interval = 1 |
Definition at line 40 of file dtnping.c.
Referenced by doOptions(), main(), and dtn::BluetoothDiscovery::run().
char replyto_eid_str[DTN_MAX_ENDPOINT_ID] = "" |
char source_eid_str[DTN_MAX_ENDPOINT_ID] = "" |