Re: mac.c - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Re: mac.c
Date
Msg-id 3987C89A.5617C496@alumni.caltech.edu
Whole thread Raw
In response to mac.c  (Larry Rosenman <ler@lerctr.org>)
Responses Re: mac.c
List pgsql-hackers
> Any comments at all from anyone on my mail from Sunday Nite on
> making the macaddr_manuf function just return a
> masked MACADDR (I.E. set the low 3 bytes to 0x00) and how we
> do this in the code?

So macaddr_manuf() will be changed to return a mac address with the low
bytes set to zero? There is certainly a use for a function like this,
along with another function, say ismanuf() or same() or similar() or ??,
which takes two mac addresses and compares just the manufacturer's
fields. Why not call the "manufacturer's mask" function something like
manuf() or brand() or ?? rather than reusing macaddr_manuf() which would
become obsolete?

> Any comments on the ouiparse.awk script?

The awk script looks OK (and if anyone objected enough they could
rewrite in perl or whatever). Where does one get the IEEE list it uses?
                 - Thomas


pgsql-hackers by date:

Previous
From: Nico D
Date:
Subject: set-of-pointer valued attributes - help!
Next
From: Larry Rosenman
Date:
Subject: Re: mac.c