#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <strings.h>
#include <string.h>
#include <stdlib.h>
#include "sdnv-c.h"
Go to the source code of this file.
Defines | |
#define | ENCODE 1 |
#define | DECODE 2 |
#define | HEXTONUM(x) ((x) < 'a' ? (x) - '0' : x - 'a' + 10) |
Functions | |
int | main (int argc, char *argv[]) |
Variables | |
char * | progname |
char * | numstr |
char * | end |
int | len |
u_char | buf [1024] |
u_int64_t | val |
int | mode = 0 |
char | hex [] = "0123456789abcdef" |
#define DECODE 2 |
#define ENCODE 1 |
#define HEXTONUM | ( | x | ) | ((x) < 'a' ? (x) - '0' : x - 'a' + 10) |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 45 of file num2sdnv.c.
References buf, DECODE, ENCODE, end, hex, HEXTONUM, len, mode, numstr, progname, sdnv_decode(), sdnv_encode(), and val.
u_char buf[1024] |
Definition at line 35 of file num2sdnv.c.
Referenced by dtn::IPDiscovery::configure(), dtn::IPAnnounce::configure(), dtn::LoggingRegistration::deliver_bundle(), dtn_strerror(), encoding_len(), dtnsim::SimCommand::exec(), dtn::RouteCommand::exec(), dtn::RegistrationCommand::exec(), dtnsim::NodeCommand::exec(), dtn::LinkCommand::exec(), dtn::InterfaceCommand::exec(), dtn::DiscoveryCommand::exec(), dtn::BundleCommand::exec(), fill_payload(), dtn::Session::flag_str(), dtn::DTLSR::format_lsa_bundle(), dtn::MetadataBlockProcessor::generate(), dtn::PrimaryBlockProcessor::generate_primary(), dtn::BundleProtocol::get_admin_type(), dtn::FragmentManager::get_hash_key(), dtn::BundleDaemon::handle_bundle_received(), dtn::BundleDaemon::handle_bundle_transmitted(), dtn::APIClient::handle_recv(), main(), dtn::PayloadBlockProcessor::mutate(), dtn::BlockProcessor::mutate(), dtn::IPDiscovery::parse_advertisement(), dtn::DTLSR::parse_lsa_bundle(), dtn::MetadataBlockProcessor::parse_metadata(), dtn::BundleStatusReport::parse_status_report(), dtn::PayloadBlockProcessor::process(), dtn::BlockProcessor::process(), process_packet(), PyString_FromFormat(), read_packet_file(), dtn::CustodySignal::reason_to_str(), dtn::UDPConvergenceLayer::Receiver::run(), dtn::IPDiscovery::run(), dtn::APIEndpointIDOpt::set(), SWIG_AsPtr_std_string(), SWIG_TCL_DECL_ARGS_2(), SWIG_Tcl_SetModule(), dtn::SequenceID::to_str(), dtn::BundlePayload::write_data(), xdr_dtn_bundle_delivery_opts_t(), xdr_dtn_bundle_id_t(), xdr_dtn_bundle_payload_location_t(), xdr_dtn_bundle_payload_t(), xdr_dtn_bundle_priority_t(), xdr_dtn_bundle_spec_t(), xdr_dtn_bundle_status_report_t(), xdr_dtn_endpoint_id_t(), xdr_dtn_extension_block_flags_t(), xdr_dtn_extension_block_t(), xdr_dtn_reg_flags_t(), xdr_dtn_reg_id_t(), xdr_dtn_reg_info_t(), xdr_dtn_sequence_id_t(), xdr_dtn_service_tag_t(), xdr_dtn_status_report_flags_t(), xdr_dtn_status_report_reason_t(), xdr_dtn_timestamp_t(), and xdr_dtn_timeval_t().
char* end |
Definition at line 33 of file num2sdnv.c.
char hex[] = "0123456789abcdef" |
Definition at line 42 of file num2sdnv.c.
Referenced by dtn::LoggingRegistration::deliver_bundle(), main(), PySwigObject_repr(), dtn::TCPConvergenceLayer::Connection::recv_data(), dtn::SerialConvergenceLayer::Connection::recv_data(), dtn::TCPConvergenceLayer::Connection::send_data(), dtn::SerialConvergenceLayer::Connection::send_data(), and SWIG_PackData().
int len |
Definition at line 34 of file num2sdnv.c.
Referenced by dtn::UDPConvergenceLayer::bundle_queued(), dtn::CustodySignal::create_custody_signal(), dtn::BundleStatusReport::create_status_report(), decode(), dtn::LoggingRegistration::deliver_bundle(), dtn_build_local_eid(), dtn_parse_eid_string(), dtn_recv(), dtnipc_recv(), dtnipc_send(), dtn::MultiGraph< _NodeInfo, _EdgeInfo >::EdgeVector::dump(), dtn::MultiGraph< _NodeInfo, _EdgeInfo >::NodeVector::dump(), dtn::MultiGraph< dtn::DTLSRRouter::NodeInfo, dtn::DTLSRRouter::EdgeInfo >::dump(), encode(), prophet::Repository::evict(), dtn::LinkCommand::exec(), dtn::BundleCommand::exec(), dtn::DTLSR::format_lsa_bundle(), dtn::SequenceIDBlockProcessor::generate(), dtn::MetadataBlockProcessor::generate(), dtn::BlockProcessor::generate_preamble(), dtn::PrimaryBlockProcessor::generate_primary(), dtn::Dictionary::get_offset(), dtn::get_payload_str(), dtn::APIClient::handle_begin_poll(), dtntunnel::UDPTunnel::handle_bundle(), dtntunnel::DTNTunnel::handle_bundle(), prophet::Heap< prophet::Node *, std::vector< prophet::Node * >, struct prophet::heap_compare, struct prophet::heap_pos >::is_heap(), main(), prophet::Repository::make_heap(), dtn::BlockProcessor::mutate(), dtn::BundleCommand::parse_inject_options(), dtn::DTLSR::parse_lsa_bundle(), dtn::MetadataBlockProcessor::parse_metadata(), dtn::BlockProcessor::process(), dtn::BlockProcessor::produce(), dtntunnel::UDPTunnel::Listener::run(), dtntunnel::TCPTunnel::Connection::run(), dtn::IPDiscovery::run(), dtn::APIClient::run(), dtn::StreamConvergenceLayer::Connection::send_pending_acks(), dtn::APIClient::send_response(), dtnsim::SimLink::start_next_bundle(), SWIG_AsCharPtrAndSize(), SWIG_PERL_DECL_ARGS_1(), and SWIG_TCL_DECL_ARGS_2().
int mode = 0 |
char* numstr |
char* progname |
Definition at line 31 of file num2sdnv.c.
u_int64_t val |
Definition at line 36 of file num2sdnv.c.
Referenced by decode(), encode(), encoding_len(), dtn::ContactManager::handle_link_unavailable(), main(), PySwigObject_own(), and Swig_var_HandleID_set().