The Netsukuku Project  0.0.9
An Alternative routing method
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
ntkresolv.c File Reference
#include <netinet/in.h>
#include "includes.h"
#include "ntkresolv.h"
#include "andns_net.h"
#include "snsd_cache.h"
#include "crypto.h"
#include "common.h"
Include dependency graph for ntkresolv.c:

Functions

void version (void)
 
void usage (void)
 
void qt_usage (char *arg)
 
void realm_usage (char *arg)
 
void proto_usage (char *arg)
 
void service_and_proto_usage (char *arg)
 
double diff_time (struct timeval a, struct timeval b)
 
void opts_init (void)
 
void opts_set_silent (void)
 
void opts_set_port (char *arg)
 
void opts_set_ns (char *arg)
 
void opts_set_qt (char *arg)
 
void opts_set_realm (char *arg)
 
void opts_set_service_and_proto (char *arg)
 
void opts_set_proto (char *arg)
 
void opts_set_recursion (void)
 
void opts_set_hash (void)
 
void opts_set_compute_hash (void)
 
void opts_set_parsable_output (void)
 
void opts_set_question (char *arg)
 
void opts_finish (char *arg)
 
void print_headers ()
 
void print_question ()
 
void ip_bin_to_str (void *data, char *dst)
 
void answer_data_to_str (andns_pkt_data *apd, char *dst)
 
void print_answers ()
 
void print_parsable_answers (void)
 
void print_results (void)
 
void do_command (void)
 
void ntkresolv_exit (int i)
 
void ntkresolv_safe_exit (int i)
 
int main (int argc, char **argv)
 

Variables

static ntkresolv_opts globopts
 
static struct timeval time_start time_stop
 
uint8_t mode_compute_hash =0
 
uint8_t mode_parsable_output =0
 

Function Documentation

void answer_data_to_str ( andns_pkt_data apd,
char *  dst 
)

Here is the call graph for this function:

Here is the caller graph for this function:

double diff_time ( struct timeval  a,
struct timeval  b 
)
void do_command ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

void ip_bin_to_str ( void *  data,
char *  dst 
)

Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)

Here is the call graph for this function:

void ntkresolv_exit ( int  i)

Here is the caller graph for this function:

void ntkresolv_safe_exit ( int  i)

Here is the call graph for this function:

Here is the caller graph for this function:

void opts_finish ( char *  arg)

Here is the call graph for this function:

Here is the caller graph for this function:

void opts_init ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

void opts_set_compute_hash ( void  )

Here is the caller graph for this function:

void opts_set_hash ( void  )

Here is the caller graph for this function:

void opts_set_ns ( char *  arg)

Here is the call graph for this function:

Here is the caller graph for this function:

void opts_set_parsable_output ( void  )

Here is the caller graph for this function:

void opts_set_port ( char *  arg)

Here is the call graph for this function:

Here is the caller graph for this function:

void opts_set_proto ( char *  arg)

Here is the call graph for this function:

Here is the caller graph for this function:

void opts_set_qt ( char *  arg)

Here is the call graph for this function:

Here is the caller graph for this function:

void opts_set_question ( char *  arg)

Here is the call graph for this function:

Here is the caller graph for this function:

void opts_set_realm ( char *  arg)

Here is the call graph for this function:

Here is the caller graph for this function:

void opts_set_recursion ( void  )

Here is the caller graph for this function:

void opts_set_service_and_proto ( char *  arg)

Here is the call graph for this function:

Here is the caller graph for this function:

void opts_set_silent ( void  )

Here is the caller graph for this function:

void print_answers ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void print_headers ( )

Here is the caller graph for this function:

void print_parsable_answers ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

void print_question ( )

Here is the caller graph for this function:

void print_results ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

void proto_usage ( char *  arg)

Here is the call graph for this function:

Here is the caller graph for this function:

void qt_usage ( char *  arg)

Here is the call graph for this function:

Here is the caller graph for this function:

void realm_usage ( char *  arg)

Here is the call graph for this function:

Here is the caller graph for this function:

void service_and_proto_usage ( char *  arg)

Here is the call graph for this function:

Here is the caller graph for this function:

void usage ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

void version ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

ntkresolv_opts globopts
static
uint8_t mode_compute_hash =0
uint8_t mode_parsable_output =0
struct timeval time_start time_stop
static