title: Converting ipv6 address representing prefix mask into integer format in C
body: <p>What would be the C code to translate an IPv6 address representing the prefix mask into an integer.</p>
  
  <p>For example, this IPv6 address prefix mask:
  FFFF:FFFF:FFFF:FFFF:0000:0000:0000:0000</p>
  
  <p>would be converted to
  64</p>
  
  <p>Thanks</p>
  
  <p>Need to change this from sockaddr_in6 into a int</p>