]> git.ipfire.org Git - people/ms/libloc.git/commit
network: Allow creating any valid networks
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 Mar 2022 15:08:47 +0000 (15:08 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 Mar 2022 15:09:36 +0000 (15:09 +0000)
commit5559e08681b0a78118d6ee1671213693625e4e0a
treebafbad655e9973a40d386b99ac43140d671e5972
parentd701dcfd0b1025d49d33bd630a67b1bdd47ab58e
network: Allow creating any valid networks

Formerly, we did not allow creating special networks like ::1/128, ::/0,
127.0.0.0/8, and so on.

In order to represent all bogons, we will have to allow this.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/network.c
src/test-network.c