Go to the source code of this file.
Defines | |
#define | TP_AS_H 1 |
Functions | |
int | setup_as (void) |
int | find_as (const char *dotted_quad) |
Variables | |
char | as_string [1024] |
These routines implement the lookup of the Autonomous System (AS) to which an IP address belongs. Oversimplified, an AS is a network of IP addresses that are under a single administration as far as routing is concerned. For more information, see RFC 1930 (BCP-6), J. Hawkinson [BBN Planet], T. Bates [MCI], "Guidelines for creation, selection, and registration of an Autonomous System (AS)", March 1996, http://zvon.org/tmRFC/RFC1930/Output/index.html
Definition in file tp_as.h.
int find_as | ( | const char * | dotted_quad | ) |
Try to look up the AS for an IPv4 (dotted quad) address; put it in as_string if found. Returns 0 iff succesful.
Definition at line 112 of file tp_as.c.
References as_string, recv_buf, and send_buf.
Referenced by report_classic(), and report_std().
int setup_as | ( | void | ) |
char as_string[1024] |
Definition at line 36 of file tp_as.h.
Referenced by find_as(), main(), report_classic(), report_std(), and setup_as().