Brian Dunning's FileMaker Custom Functions

IP6fullBinAddress ( Input )

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

  Average rating: 4.5 (25 votes) Log in to vote

Tim Griffith   Tim Griffith - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
IP6fullBinAddress ( 2001::FF:A00:0 )
  Sample output:
0010000000000001:0000000000000000:0000000000000000:0000000000000000:0000000000000000:0000000011111111:0000101000000000:0000000000000000

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

This function will convert a properly abbreviated IP6 into its full binary 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 : IP6Num2Bin ( decNumber ; binary ) which has been comment included 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.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth:

Under construction. Email me your wish list for improvements.