#include <libnet.h>
#include <pcap.h>
#include <unistd.h>
#include <errno.h>
#include <sys/time.h>
#include <stdio.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <signal.h>
#include <string.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <ctype.h>
#include <time.h>
#include "traceproto.h"
#include "tp_miscfunc.h"
#include "tp_output.h"
#include "config.h"
#include "tp_as.h"
#include <ncurses.h>
Go to the source code of this file.
Defines | |
#define | TP_USE_CURSES 1 |
Functions | |
void | report_none (int output_item, __attribute__((__unused__)) struct in_addr *from, __attribute__((__unused__)) int packet_type) |
void | report_minimum (int output_item, __attribute__((__unused__)) struct in_addr *from, int packet_type) |
void | report_scriptable (int output_item, struct in_addr *from, int packet_type) |
void | report_classic (int output_item, struct in_addr *from, int packet_type) |
void | report_std (int output_item, struct in_addr *from, int packet_type) |
void | report_graphic (int output_item, struct in_addr *from, int packet_type) |
void | report_curses (int output_item, struct in_addr *from, __attribute__((__unused__)) int packet_type) |
void | usage (void) |
#define TP_USE_CURSES 1 |
Definition at line 49 of file tp_output.c.
void report_classic | ( | int | output_item, | |
struct in_addr * | from, | |||
int | packet_type | |||
) |
Output format that is as close as possible to the original traceroute. This still needs a bit of work to make it match exactly.
Definition at line 182 of file tp_output.c.
References as_string, behavior, find_as(), hop_audit(), NO, state, TP_OUT_FOOTER, TP_OUT_HEADER, TP_OUT_HOP_INFO, TP_OUT_HOP_NUMBER, TP_TYPE_NR, and YES.
Referenced by main().
void report_curses | ( | int | output_item, | |
struct in_addr * | from, | |||
__attribute__((__unused__)) int | packet_type | |||
) |
void report_graphic | ( | int | output_item, | |
struct in_addr * | from, | |||
int | packet_type | |||
) |
An exececutive summary output format: each response on a separate line with an ASCII line showing the time.
Definition at line 354 of file tp_output.c.
Referenced by main().
void report_minimum | ( | int | output_item, | |
__attribute__((__unused__)) struct in_addr * | from, | |||
int | packet_type | |||
) |
Spit out a single char, all responses for each hop on the same line
Definition at line 80 of file tp_output.c.
Referenced by main().
void report_none | ( | int | output_item, | |
__attribute__((__unused__)) struct in_addr * | from, | |||
__attribute__((__unused__)) int | packet_type | |||
) |
Spit out the header and nothing else (accept whatever accounting)
Definition at line 57 of file tp_output.c.
References behavior, hop_audit(), NO, state, TP_OUT_FOOTER, TP_OUT_HEADER, and YES.
Referenced by main().
void report_scriptable | ( | int | output_item, | |
struct in_addr * | from, | |||
int | packet_type | |||
) |
Minimal output designed for scripting, not necessarily for human readability.
Definition at line 127 of file tp_output.c.
Referenced by main().
void report_std | ( | int | output_item, | |
struct in_addr * | from, | |||
int | packet_type | |||
) |
Traceproto's standard output format. It is somewhat more readable than the original traceroute format but still fairly space efficient.
Definition at line 271 of file tp_output.c.
References as_string, behavior, find_as(), hop_audit(), NO, packet, state, TP_OUT_FOOTER, TP_OUT_HEADER, TP_OUT_HOP_INFO, TP_OUT_HOP_NUMBER, TP_TYPE_NR, and YES.
Referenced by main().
void usage | ( | void | ) |
A terse summary of how to invoke Traceproto
Definition at line 576 of file tp_output.c.
Referenced by main().