Name

loc_database_get_as - Fetch an AS from the database

Synopsis

#include <libloc/database.h>

int loc_database_get_as(struct loc_database* db, struct loc_as** as,
        uint32_t number);

Description

This function retrieves an Autonomous System with the matching number from the database and stores it in as.

Return Value

On success, zero is returned. If the Autonomous System is not in the database, 1 is returned and as is set to NULL. On error, a negative error number (see errno(3)) is returned. errno itself is not being set.

See Also

Authors

Michael Tremer