#include "config.h"
Go to the source code of this file.
Defines | |
#define | TP_OUTPUT_H 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) |
The report_* functions implement the various possible output formats that can be specified by the -o flag. The first parameter is one of the output_items enumerated in traceproto.h These must match the *_packet_id array provided by each of the report functions. Thus it should be easy to add new report formats. The third parameter similarly should match one of the packet_numbers from traceproto.h.
Definition in file tp_output.h.
#define TP_OUTPUT_H 1 |
Definition at line 34 of file tp_output.h.
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().