1LOC_DATABASE_LOOKUP(3)                                  LOC_DATABASE_LOOKUP(3)
2
3
4

NAME

6       loc_database_lookup - Lookup a network from the database
7

SYNOPSIS

9       #include <libloc/database.h>
10
11       int loc_database_lookup(struct loc_database* db, const struct in6_addr*
12       address, struct loc_network** network);
13
14       int loc_database_lookup_from_string(struct loc_database* db, const
15       char* string, struct loc_network** network);
16

DESCRIPTION

18       The lookup functions try finding a network in the database.
19
20       loc_database_lookup takes the IP address as struct in6_addr format
21       which can either be a regular IPv6 address or a mapped IPv4 address.
22
23       loc_database_lookup_string takes the IP address as string and will
24       parse it automatically.
25

RETURN VALUE

27       On success, zero is returned. Otherwise non-zero is being returned and
28       errno is set accordingly.
29

SEE ALSO

31       libloc(3)
32

AUTHORS

34       Michael Tremer
35
36
37
38                                                        LOC_DATABASE_LOOKUP(3)
Impressum