Add full IPV6 support

This commit is contained in:
2016-02-06 14:24:26 +01:00
parent 401a2e98af
commit 4b791be9f6
3 changed files with 146 additions and 87 deletions

View File

@@ -1,6 +1,6 @@
IP_DATA = ../src/ip_data.c
PROVIDERS = afrinic arin apnic lacnic ripencc
DEST = prefix_res_ipv4
DEST = prefix_res
MD5 = $(addsuffix .md5,$(PROVIDERS))
all: clean_md5 $(MD5) $(IP_DATA)
@@ -21,7 +21,7 @@ $(PROVIDERS):
@md5sum -c $@ || wget "ftp://ftp.ripe.net/pub/stats/$(basename $@)/delegated-$(basename $@)-extended-latest" -O $(basename $@) ; true
$(DEST): $(PROVIDERS)
@cat $(PROVIDERS) | grep -v asn | grep -v summary | grep -v '#' | grep ipv4 | sort -n -k 4 -t '|' > $(DEST)
@cat $(PROVIDERS) | grep -v asn | grep -v summary | grep -v '#' | grep ipv[46] | sort -n -k 4 -t '|' > $(DEST)
$(IP_DATA): $(DEST)
@echo "Rebuild ip_data.c"