Skip to content

Instantly share code, notes, and snippets.

@jimsynz
Created December 22, 2009 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimsynz/262012 to your computer and use it in GitHub Desktop.
Save jimsynz/262012 to your computer and use it in GitHub Desktop.
# Prefix scoping:
>> IPAddr.new("2001:db8::/32").scope
=> "DOCUMENTATION"
>> IPAddr.new("2000::/3").scope
=> "GLOBAL UNICAST"
>> IPAddr.new("fe80::/64").scope
=> "LINK LOCAL UNICAST"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment