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
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


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

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


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}