]> git.ipfire.org Git - location/libloc.git/commit
perl: Add lookup_network_has_flag() function.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 30 Aug 2020 10:36:00 +0000 (12:36 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 31 Aug 2020 10:02:10 +0000 (10:02 +0000)
commitc8e6ee4e303631a34737d8775e33e1e304774426
treecc29f93c53f963188ac49c7ede249adcb8569ad7
parent30c8e5289adce18327d6d41a27d7fc6eadd74705
perl: Add lookup_network_has_flag() function.

This function can be used to check if a given address or network has one
of the following network flags.

* LOC_NETWORK_FLAG_ANONYMOUS_PROXY
* LOC_NETWORK_FLAG_SATELLITE_PROVIDER
* LOC_NETWORK_FLAG_ANYCAST

It will return true if the given flag is set.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/perl/Location.xs