]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
iana portlist updated.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 17 Aug 2011 15:12:39 +0000 (15:12 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 17 Aug 2011 15:12:39 +0000 (15:12 +0000)
new xml format at iana.

git-svn-id: file:///svn/unbound/trunk@2475 be551aaa-1e26-0410-a405-d3ace91eadb9

Makefile.in
doc/Changelog
util/iana_ports.inc

index 28377bbed7bf1edb7f2e4e79d80ccd544133f6d8..c0042b3504b45ccba6052a6d19e676c1f5b5e16f 100644 (file)
@@ -476,9 +476,8 @@ endif
        @echo "You still need to remove "`dirname $(DESTDIR)$(configfile)`" , $(DESTDIR)$(configfile) by hand"
 
 iana_update:
-       curl -o port-numbers.tmp http://www.iana.org/assignments/port-numbers
-       awk '/Unassigned|Reserved/ {next;} { match($$0, "[0-9]+/udp"); if (RLENGTH > 0) print substr($$0, RSTART, RLENGTH - 4) ","}' port-numbers.tmp | sort -nu > portslist.tmp
-       cat portslist.tmp > util/iana_ports.inc
+       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
 
 # Automatic dependencies.
index 27d32d4f14791cce8217c796d23bfd1bbf0cc4d7..0a61362fa10752005895d9126802c287d05af7de 100644 (file)
@@ -1,5 +1,7 @@
 17 August 2011: Wouter
        - Fix validation of . DS query.
+       - new xml format at IANA, new awk for iana_update.
+       - iana portlist updated.
 
 10 August 2011: Wouter
        - Fix python site-packages path to /usr/lib64.
index 94e259932b671d79a71983b3dfc6acba1d8f3797..7a1e6f69e444f25de6e2bd04ae9b0b8fa59a712a 100644 (file)
 991,
 992,
 993,
-994,
 995,
 996,
 997,
 2690,
 2691,
 2692,
-2693,
 2694,
 2695,
 2696,
 2902,
 2903,
 2904,
-2905,
 2906,
 2907,
 2908,
 5991,
 5992,
 5999,
-6063,
+6000,
 6064,
 6065,
 6066,
 6627,
 6628,
 6657,
-6669,
 6670,
 6671,
 6672,
 6678,
 6679,
 6689,
-6697,
+6696,
 6701,
 6702,
 6703,
 7570,
 7588,
 7624,
-7626,
 7627,
 7628,
 7629,