mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-03 05:19:34 -05:00
fix iana update check for gzipped file.
git-svn-id: file:///svn/unbound/trunk@2526 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
11f5e16932
commit
9b47af529e
2 changed files with 3 additions and 2 deletions
|
|
@ -477,8 +477,8 @@ endif
|
|||
|
||||
iana_update:
|
||||
curl -o port-numbers.tmp http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml
|
||||
awk '/<record>/ {p=0;} /<protocol>udp/ {p=1;} /<protocol>[^u]/ {p=0;} /Decomissioned|Decommissioned|Removed|De-registered|unassigned|Unassigned|Reserved/ {u=1;} /<number>/ { if(u==1) {u=0;} else { if(p==1) { match($$0,/[0-9]+/); print substr($$0, RSTART, RLENGTH) ","}}}' port-numbers.tmp | sort -nu > util/iana_ports.inc
|
||||
rm -f port-numbers.tmp portslist.tmp
|
||||
zcat port-numbers.tmp | awk '/<record>/ {p=0;} /<protocol>udp/ {p=1;} /<protocol>[^u]/ {p=0;} /Decomissioned|Decommissioned|Removed|De-registered|unassigned|Unassigned|Reserved/ {u=1;} /<number>/ { if(u==1) {u=0;} else { if(p==1) { match($$0,/[0-9]+/); print substr($$0, RSTART, RLENGTH) ","}}}' | sort -nu > util/iana_ports.inc
|
||||
rm -f port-numbers.tmp
|
||||
|
||||
# Automatic dependencies.
|
||||
$(BUILD)%.d: $(srcdir)/%.c
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
26 October 2011: Wouter
|
||||
- iana portlist updated.
|
||||
- Infra cache stores information about ping and lameness per IP, zone.
|
||||
- fix iana_update target for gzipped file on iana site.
|
||||
|
||||
24 October 2011: Wouter
|
||||
- Fix resolve of partners.extranet.microsoft.com with a fix for the
|
||||
|
|
|
|||
Loading…
Reference in a new issue