martians: overhaul
- Use the XML files instead of the CSV - Separate output in inbound and outbound tables - Add script for producing all the outputs
This commit is contained in:
parent
56b12b3023
commit
5db09725a3
6 changed files with 793 additions and 79 deletions
17
utils/openbsd/pf-martians/generate-tables.sh
Normal file
17
utils/openbsd/pf-martians/generate-tables.sh
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
script=iana-ip-special-registry-parser.py
|
||||
|
||||
process_xml()
|
||||
{
|
||||
v=$1
|
||||
dir=$2
|
||||
in=iana-ip$v-special-registry.xml
|
||||
out=martians-$v-${dir%bound}.txt
|
||||
|
||||
python3 "$script" "$dir" <"$in" >"$out"
|
||||
}
|
||||
|
||||
process_xml v4 inbound
|
||||
process_xml v4 outbound
|
||||
process_xml v6 inbound
|
||||
process_xml v6 outbound
|
Loading…
Add table
Add a link
Reference in a new issue