Allow format 0000-0000-0000 in postgresql MAC parser

From: Herwin Weststrate <herwin(at)quarantainenet(dot)nl>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Allow format 0000-0000-0000 in postgresql MAC parser
Date: 2014-09-29 09:30:35
Message-ID: 542926BB.4010402@quarantainenet.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello,

Some devices send the MAC address in RADIUS requests in the format
0000-0000-0000. I've seen this with a 3com switch, but there may be
others. Currently, postgresql doesn't understand this format.

This patch adds an extra line to the macaddr parsing in postgres to
support this format as well. A unit test has been added.

Kind regards,

--
Herwin Weststrate
Quarantainenet BV
www.quarantainenet.nl

Attachment Content-Type Size
postgres-mac-parsing.diff text/x-patch 4.8 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2014-09-29 09:31:11 Re: Turning off HOT/Cleanup sometimes
Previous Message Craig Ringer 2014-09-29 09:27:59 Re: INSERT ... ON CONFLICT {UPDATE | IGNORE}