num2sdnv.c File Reference

#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 Documentation

#define DECODE   2

Definition at line 40 of file num2sdnv.c.

Referenced by main().

#define ENCODE   1

Definition at line 39 of file num2sdnv.c.

Referenced by main().

#define HEXTONUM (  )     ((x) < 'a' ? (x) - '0' : x - 'a' + 10)

Definition at line 43 of file num2sdnv.c.

Referenced by main().


Function Documentation

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.


Variable Documentation

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::UDPConvergenceLayer::Receiver::run(), dtn::IPDiscovery::run(), dtn::APIEndpointIDOpt::set(), SWIG_AsPtr_std_string(), SWIG_PERL_DECL_ARGS_2(), 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"

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 >::MultiGraph::EdgeVector::dump(), dtn::MultiGraph< _NodeInfo, _EdgeInfo >::MultiGraph::NodeVector::dump(), dtn::MultiGraph< NodeInfo, 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< Node *, std::vector< Node * >, struct heap_compare, struct 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::UDPTunnel::Listener::run(), dtntunnel::TCPTunnel::TCPTunnel::Connection::run(), dtn::IPDiscovery::run(), dtn::APIClient::run(), dtn::StreamConvergenceLayer::StreamConvergenceLayer::Connection::send_pending_acks(), dtn::APIClient::send_response(), dtnsim::SimLink::start_next_bundle(), SWIG_AsCharPtrAndSize(), and SWIG_TCL_DECL_ARGS_2().

int mode = 0

Definition at line 38 of file num2sdnv.c.

Referenced by main().

char* numstr

Definition at line 32 of file num2sdnv.c.

Referenced by main().

char* progname

Definition at line 31 of file num2sdnv.c.

u_int64_t val


Generated on Fri Jan 30 09:43:11 2009 for DTN Reference Implementation by  doxygen 1.5.8