]> git.ipfire.org Git - people/ms/libloc.git/commit
Implement an additional flag for hostile networks safe to drop
authorPeter Müller <peter.mueller@ipfire.org>
Fri, 4 Jun 2021 15:57:30 +0000 (17:57 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 7 Jun 2021 17:03:28 +0000 (17:03 +0000)
commite17e804ed79cf5572d945771acccbc5b4d0657d2
tree5e2f93695e091fd929bed80ae42147857faa40d0
parent7434e5e0ca5e6e9ad08d2ab07aa5d45a03bff5b4
Implement an additional flag for hostile networks safe to drop

This patch implements an additional flag intended for networks and
Autonomous Systems being considered hostile. While libloc does not and
should not be an opinionated database, reality shows it is being used
this way.

Hereby, we assign "XD" (drop) as a custom country code for networks
being flagged this way. According to ISO, "XA" to "XZ" are reserved for
"user-assgined codes" (https://www.iso.org/glossary-for-iso-3166.html),
so this is a safe thing to do.

This patch does not interfere with "A1" to "A3", which we currently
assign outside standardised country code ranges for historical reasons.

Neither does it specify any policy or source for tagging networks with a
"drop" flag. Doing so is beyond the scope of this - technical -
approach.

To avoid confusions with the SQL "DROP" command, "is_drop" will be used
as a column name for database operations.

Thanks to Michael for his remarks and ideas during the run-up.

Cc: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
man/location.txt
po/de.po
src/loc/network.h
src/perl/Location.xs
src/python/export.py
src/python/location-importer.in
src/python/location.in
src/python/locationmodule.c