lib/ipaddress_2/ipv6.rb
#
# Returns the broadcast address for the given IP.
# As this is IPv6 it is just the last IP
#
#   ip = IPAddress("2001:db8:8:800::/64")
#
#   ip.broadcast.to_s
#     #=> "2001:db8:8:800::"
#
Returns the broadcast address for the given IP.
As this is IPv6 it is just the last IP




Returns the broadcast address for the given IP . As this is IPv6 it is just the last IP
def broadcast
      if prefix == 128
        return self
      else
        IPAddress::IPv6::parse_u128(broadcast_u128)
      end
    end
def broadcast if prefix == 128 return self else IPAddress :: IPv6 :: parse_u128 ( broadcast_u128 ) end end
Returns the broadcast address for the given IP.
Returns the broadcast address for the given IP .