postgresql/src/backend
Stephen Frost c7a9fa399d Add support for EUI-64 MAC addresses as macaddr8
This adds in support for EUI-64 MAC addresses by adding a new data type
called 'macaddr8' (using our usual convention of indicating the number
of bytes stored).

This was largely a copy-and-paste from the macaddr data type, with
appropriate adjustments for having 8 bytes instead of 6 and adding
support for converting a provided EUI-48 (6 byte format) to the EUI-64
format.  Conversion from EUI-48 to EUI-64 inserts FFFE as the 4th and
5th bytes but does not perform the IPv6 modified EUI-64 action of
flipping the 7th bit, but we add a function to perform that specific
action for the user as it may be commonly done by users who wish to
calculate their IPv6 address based on their network prefix and 48-bit
MAC address.

Author: Haribabu Kommi, with a good bit of rework of macaddr8_in by me.
Reviewed by: Vitaly Burovoy, Kuntal Ghosh

Discussion: https://postgr.es/m/CAJrrPGcUi8ZH+KkK+=TctNQ+EfkeCEHtMU_yo1mvX8hsk_ghNQ@mail.gmail.com
2017-03-15 11:16:25 -04:00
..
access Cosmetic fixes for hash index write-ahead logging. 2017-03-15 07:22:49 -04:00
bootstrap Move atooid() definition to a central place 2017-03-01 11:55:28 -05:00
catalog Change the relkind for partitioned tables from 'P' to 'p'. 2017-03-10 13:15:47 -05:00
commands Add option to control snapshot export to CREATE_REPLICATION_SLOT 2017-03-14 17:34:22 -04:00
executor Spelling fixes 2017-03-14 12:58:39 -04:00
foreign Spelling fixes in code comments 2017-03-14 12:58:39 -04:00
lib Fix overflow check in StringInfo; add missing casts 2017-01-10 11:41:13 -03:00
libpq Include port number when logging successful binding to a TCP port. 2017-03-14 13:18:38 -04:00
main Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
nodes Allow referring to functions without arguments when unique 2017-03-14 23:55:19 -04:00
optimizer Some preliminary refactoring towards partitionwise join. 2017-03-14 19:25:47 -04:00
parser Allow referring to functions without arguments when unique 2017-03-14 23:55:19 -04:00
po Translation updates 2016-08-08 11:08:00 -04:00
port Spelling fixes 2017-03-14 12:58:39 -04:00
postmaster Reduce log verbosity of startup/shutdown for launcher subprocesses. 2017-03-10 15:18:38 -05:00
regex Spelling fixes in code comments 2017-03-14 12:58:39 -04:00
replication Improve grammar / fix typos in snapbuild.c. 2017-03-14 17:04:36 -07:00
rewrite Support XMLTABLE query expression 2017-03-08 12:40:26 -03:00
snowball Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
storage Spelling fixes in code comments 2017-03-14 12:58:39 -04:00
tcop Disallow CREATE/DROP SUBSCRIPTION in transaction block 2017-03-03 23:29:13 -05:00
tsearch Spelling fixes in code comments 2017-03-14 12:58:39 -04:00
utils Add support for EUI-64 MAC addresses as macaddr8 2017-03-15 11:16:25 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Fix parallel make issue with new fmgrprotos.h 2017-01-23 15:36:27 -05:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
nls.mk Remove trailing slashes from directories in find command 2015-09-18 22:06:54 -04:00