Brian Dunning's FileMaker Custom Functions

IP6numericAddress ( Input )

This function will convert a properly abbreviated IP6 into its full decimal address.

  Average rating: 4.7 (23 votes) Log in to vote

Tim Griffith   Tim Griffith

Share on Facebook Share on Twitter

  Sample input:
IP6numericAddress ( 2001::FF:A00:0 )
  Sample output:
8193:0:0:0:0:255:2560:0

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This function will convert a properly abbreviated IP6 into its full decimal address. Properly abbreviated IP6 allows for only 1 grouping of zero sets (no matter how many sets in a row) to be represented by '::'. All other zero sets (separate from the grouping identified with '::') must either be :0: or :0000:. More than one occurance of '::' will produce an error. DEPENDANT FUNCTION : HexToDec ( hexString ) by Theo Ros, http://www.briandunning.com/cf/253 which has been comment included [with credit to Theo Ros] at the end of this function, for your convenience.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.