ipv4_mapped()
  public
  
    
    
Returns a new ipaddr built by
converting the native IPv4 address into
an IPv4-mapped IPv6 address.
   
  
    Show source    
    
      
  def ipv4_mapped
    if !ipv4?
      raise ArgumentError, "not an IPv4 address"
    end
    return self.clone.set(@addr | 0xffff00000000, Socket::AF_INET6)
  end