| From: | Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu> |
|---|---|
| To: | Larry Rosenman <ler(at)lerctr(dot)org> |
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Update: mac.c update, patch now on ftp |
| Date: | 2000-07-18 02:54:51 |
| Message-ID: | 3973C6FB.B7619211@alumni.caltech.edu |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> The code in mac.c does a LINEAR search, and the list is only going to
> grow. It's at 4110+ OUI's that are PUBLIC.).
Yuck. Let's put it into a (user loadable) table. And rather than having
macaddr_manuf(), we should just have a "sametype()" (or whatever) which
can compare an arbitrary mac address with another one. Then
select brand from mactypes where '03:04:...' = macmask;
or at least
select brand from mactypes where sametype('03:04:...',macmask);
would get you the right thing.
I can help with these internals, if that is the right way to head.
- Thomas
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2000-07-18 04:21:42 | Warnings triggered by recent includefile cleanups |
| Previous Message | Larry Rosenman | 2000-07-18 01:55:40 | Re: Update: mac.c update, patch now on ftp |