]> granicus.if.org Git - postgresql/commit
From: Tom I Helbekkmo <tih@Hamartun.Priv.NO>
authorMarc G. Fournier <scrappy@hub.org>
Sun, 25 Jan 1998 07:11:07 +0000 (07:11 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Sun, 25 Jan 1998 07:11:07 +0000 (07:11 +0000)
commit674b22a2a43318f14cc6d6af2b4893bcce530a6a
treecfd7df672924550784af39459093525c1e3a4db6
parent9f8d3b668bf7c4781644b7d0476120d4676bc9c4
From: Tom I Helbekkmo <tih@Hamartun.Priv.NO>

PostgreSQL type extensions for IP and MAC addresses.

I needed to record IP and MAC level ethernet addresses in a data
base, and I really didn't want to store them as plain strings, with
no enforced error checking, so I put together the accompanying code
as my first experiment with adding a data type to PostgreSQL.  I
then thought that this might be useful to others, both directly and
as a very simple example of how to do this sort of thing, so here
it is, in the hope that it will be useful.
contrib/ip_and_mac/Makefile [new file with mode: 0644]
contrib/ip_and_mac/README [new file with mode: 0644]
contrib/ip_and_mac/ip.c [new file with mode: 0644]
contrib/ip_and_mac/ip.sql [new file with mode: 0644]
contrib/ip_and_mac/mac.c [new file with mode: 0644]
contrib/ip_and_mac/mac.h [new file with mode: 0644]
contrib/ip_and_mac/mac.sql [new file with mode: 0644]