On Fri, Nov 01, 2002 at 12:07:05PM -0800, Nate Lawson wrote:
> Couple comments.
> 
> * You interchangeably use strlcpy and snprintf(... "%s", ...) and even
> strncpy/strcpy(!).  You probably want to go with just strlcpy.

I forgot to sweep for those again.  I'll do another pass shortly.

> * There may be some cases where a string compare is too slow and it needs
> a unit compare.  I'm not familiar with the code that does this but please
> comment.

The only case I recall where unit compare was really in the fast path
was in ipfw.  In my change, globing is now a bit more expensive since it
uses fnmatch instead of ignoring the unit, but the non-globing case should
be pretty much the same if not slightly faster (it no longer has to
check the unit and the median length of the compared string will only
rise by 1 for every one except tunnel servers).

> * Some places seem to still be using a unit number as a local loop
> counter.  Just curious if this has any side effects.

We've got a number of devices that really like to know thier unit
number.  In those cases, I've generally stuffed it into the softc if it
wasn't there already.

> * Do the ipfw glob changes break ABI?

Yes, but I don't think that's a hugh deal.  The bigger deal is breaking
the network interface API and ABI which in turn breaks a few user land
programs that use libkvm ("netstat -r" for exmaple).  That's why this is
a .0 feature.

Thanks,
Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

Attachment: msg37780/pgp00000.pgp
Description: PGP signature

Reply via email to