title: Convert IPv6 to hex notation
body: <p>My interface is setup:</p>
  
  <pre><code>iface eth1 inet6 static
      address 0:0:0:0:0:ffff:6464:640a
      netmask 64
  </code></pre>
  
  <p>but when running <code>ifconfig eth1</code> you see the following configuration:</p>
  
  <pre><code>eth1  inet6 addr: 100.100.100.10/64 Scope:Global
  </code></pre>
  
  <p>This is because <code>0:0:0:0:0:ffff:6464:640a</code> translates into <code>100.100.100.10/64</code>.</p>
  
  <p>I have a code in python that retreives the IP Addresses from each interface:</p>
  
  <pre><code>import netifaces
  interface_info = netifaces.ifaddresses('eth1')
  
  if netifaces.AF_INET6 in interface_info:
     return interface_info[netifaces.AF_INET][0]['addr']
  </code></pre>
  
  <p>The above code returns the IPv6 of eth1 as <code>::ffff:100.100.100.10</code>.<br>
  For my code, I need that the IPv6 will be the original hex notation, i.e., <code>::ffff:6464:640a</code> and not <code>::ffff:100.100.100.10</code>.<br><br>
  Any idea how to achieve this?</p>