loc_database_get_as(3)

loc_database_get_as3

Fetch an as from the database

Usage

#include <libloc/database.h>

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

Overview

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. Otherwise non-zero is being returned and errno is set accordingly.

Releases

3 releases since Debian 12 (Bookworm); the text changed 2 times.

  1. 12
  2. 13
  3. Arch

Authors

Michael Tremer

From libloc 0.9.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.