postgresql/src
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
..
backend Add support for EUI-64 MAC addresses as macaddr8 2017-03-15 11:16:25 -04:00
bin Add option to control snapshot export to CREATE_REPLICATION_SLOT 2017-03-14 17:34:22 -04:00
common A collection of small fixes for the SCRAM patch. 2017-03-07 19:00:22 +02:00
fe_utils Spelling fixes in code comments 2017-03-14 12:58:39 -04:00
include Add support for EUI-64 MAC addresses as macaddr8 2017-03-15 11:16:25 -04:00
interfaces ecpg: Improve some variable names 2017-03-14 12:58:39 -04:00
makefiles Try to fix non-MSVC Windows builds in the wake of logical replication. 2017-01-20 12:51:31 -05:00
pl Spelling fixes in code comments 2017-03-14 12:58:39 -04:00
port Put back #include <windows.h> in dirmod.c. 2017-02-25 18:34:09 -05:00
template Remove "sco" and "unixware" ports. 2016-10-11 11:26:04 -04:00
test Add support for EUI-64 MAC addresses as macaddr8 2017-03-15 11:16:25 -04:00
timezone Remove useless duplicate inclusions of system header files. 2017-02-25 16:12:55 -05:00
tools Fix hard-coded relkind constants in assorted other files. 2017-03-09 23:36:52 -05:00
tutorial Recommend wrappers of PG_DETOAST_DATUM_PACKED(). 2017-03-12 19:35:33 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Remove redundant coverage target 2017-02-17 08:56:57 -05:00
Makefile.global.in Improve isolation tests infrastructure. 2017-03-14 15:56:17 -07:00
Makefile.shlib Fix typos in comments. 2017-02-06 11:33:58 +02:00
nls-global.mk nls-global.mk: search build dir for source files, too 2016-06-07 18:55:18 -04:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00