Your message dated Sun, 07 Mar 2010 11:02:09 +0000
with message-id <[email protected]>
and subject line Bug#569236: fixed in ipv6calc 0.73.0-3
has caused the Debian Bug report #569236,
regarding Typo in printing of Teredo server address
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
569236: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=569236
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ipv6calc
Version: 0.73.0-2

Hi,

the ipv6calc program has a typo in the source code relating to the
printing of a Teredo type IPv6 address.  Patch included, see below:

antici...@hsa:~$ ipv6calc -i 2001:0:5ef5:73bc:3838:17a2:a0af:fea4
No input type specified, try autodetection...found type: ipv6addr
No output type specified, try autodetection...found type: ipv6addr
Address type: unicast, global-unicast, teredo
IPv4 address: 95.80.1.91
IPv4 registry[95.80.1.91]: RIPENCC
IPv4 address: 94.245.115.188
IPv4 registry[94.245.115.188]: RIPENCC
Address type is Teredo and included IPv4 server address is: 95.80.1.91
and client port: 59485
IPv4 registry for Teredo server address: RIPENCC
Registry for address: IANA

http://en.wikipedia.org/wiki/Teredo_tunneling#Teredo_IPv6_addressing

bits   content
0-31   Prefix
32-63  Primary IPv4 of server
64-79  Flags
80-95  Obfuscated client UDP port (value xor 0xffff)
96-127 Obfuscated client IPv4 (value xor 0xffffffff)

antici...@hsa:/usr/local/src/ipv6calc$ python
Python 2.5.4 (r254:67916, Jan 24 2010, 16:02:42) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ipaddr
>>> ipaddr.IPv4Address((0x5ef5<<16)+0x73bc)
IPv4Address('94.245.115.188')
>>> 0x17a2 ^ 0xffff
59485
>>> ipaddr.IPv4Address(((0xa0af<<16)+0xfea4) ^ 0xffffffff)
IPv4Address('95.80.1.91')

Obviously, the addresses are mixed up in the output of ipv6calc.


Attached is a patch that fixes this.

antici...@hsa:/usr/local/src/ipv6calc$
ipv6calc-0.73.0-modified/ipv6calc/ipv6calc -i
2001:0:5ef5:73bc:3838:17a2:a0af:fea4 2>&1 | grep 'is Teredo'
Address type is Teredo and included IPv4 server address is:
94.245.115.188 and client port: 59485

Regards,
-- 
Martin Millnert <[email protected]>
diff -ruN ipv6calc-0.73.0/ipv6calc/showinfo.c ipv6calc-0.73.0-modified/ipv6calc/showinfo.c
--- ipv6calc-0.73.0/ipv6calc/showinfo.c	2007-07-05 22:58:23.000000000 +0200
+++ ipv6calc-0.73.0-modified/ipv6calc/showinfo.c	2010-02-10 22:41:03.000000000 +0100
@@ -714,7 +714,7 @@
 		print_ipv4addr(&ipv4addr, formatoptions | FORMATOPTION_printembedded, "TEREDO-CLIENT");
 		print_ipv4addr(&ipv4addr2, formatoptions | FORMATOPTION_printembedded, "TEREDO-SERVER");
 
-		retval = libipv4addr_ipv4addrstruct_to_string(&ipv4addr, helpstring, 0);
+		retval = libipv4addr_ipv4addrstruct_to_string(&ipv4addr2, helpstring, 0);
 		if ( retval != 0 ) {
 			fprintf(stderr, "Error converting IPv4 address to string\n");
 			retval = 1;

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
--- Begin Message ---
Source: ipv6calc
Source-Version: 0.73.0-3

We believe that the bug you reported is fixed in the latest version of
ipv6calc, which is due to be installed in the Debian FTP archive:

ipv6calc_0.73.0-3.diff.gz
  to main/i/ipv6calc/ipv6calc_0.73.0-3.diff.gz
ipv6calc_0.73.0-3.dsc
  to main/i/ipv6calc/ipv6calc_0.73.0-3.dsc
ipv6calc_0.73.0-3_amd64.deb
  to main/i/ipv6calc/ipv6calc_0.73.0-3_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Luca Bruno <[email protected]> (supplier of updated ipv6calc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 07 Mar 2010 11:11:18 +0100
Source: ipv6calc
Binary: ipv6calc
Architecture: source amd64
Version: 0.73.0-3
Distribution: unstable
Urgency: low
Maintainer: Luca Bruno <[email protected]>
Changed-By: Luca Bruno <[email protected]>
Description: 
 ipv6calc   - small utility for manipulating IPv6 addresses
Closes: 569236
Changes: 
 ipv6calc (0.73.0-3) unstable; urgency=low
 .
   * Fix typo in printing of Teredo server address, thanks Martin Millnert
     (Closes: #569236)
   * Bumped Standards-Version to 3.8.4
Checksums-Sha1: 
 6dd4dcb2717f25763affd2609f4aa58e8aa17c57 1142 ipv6calc_0.73.0-3.dsc
 b630e5e2a601848f48a5f5b49fb7d2f05ddfdf2e 5850 ipv6calc_0.73.0-3.diff.gz
 fba19c6189f44d22f36bd3f3c927b569d0692b5e 914926 ipv6calc_0.73.0-3_amd64.deb
Checksums-Sha256: 
 775276f151088e02cfeebe9408dd5c4fbf8b31bf07601e506da94a5751be34cf 1142 
ipv6calc_0.73.0-3.dsc
 8e47efc9e2bcaa4628a61f453822286b8aee49d3600f9793444f367ce8556d20 5850 
ipv6calc_0.73.0-3.diff.gz
 e9052efe8f71d653941fe79bff94901ae48fbc15e6c703eccd1a1952fbe49161 914926 
ipv6calc_0.73.0-3_amd64.deb
Files: 
 d95b2d356a2fc12ade0010477663877d 1142 net optional ipv6calc_0.73.0-3.dsc
 dbd33dba5426711fe5da84afd68ee392 5850 net optional ipv6calc_0.73.0-3.diff.gz
 5c139c477e69f09aba2490003419dff8 914926 net optional 
ipv6calc_0.73.0-3_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkuTg1YACgkQRqobajv7n7M61ACdFwaFouIi4wXHjHvJJrqqb1Wp
RD0An2GOe4vKNHh1mqOWbC+sCJr4lY6A
=pVoI
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to