tp_as.h File Reference

Routines to look up Autonomous Systems. More...

This graph shows which files directly or indirectly include this file:

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]


Detailed Description

Routines to look up Autonomous Systems.

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.


Define Documentation

#define TP_AS_H   1

Definition at line 34 of file tp_as.h.


Function Documentation

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   ) 

Initialisation function for AS lookups; returns 0 iff successful.

Definition at line 54 of file tp_as.c.

References as_string.

Referenced by main().


Variable Documentation

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().


Generated on Wed Sep 16 11:08:43 2009 for traceproto by  doxygen 1.5.4