Peter Memishian wrote: > > My concern here is simple: is there a hidden rule along the lines > > of MAXLINKNAMELEN must never be greater than LIFNAMSIZ? If there > > is, this should be stated somewhere. > > I thought that went without saying -- things wouldn't work otherwise. > The values of these constants and the relationships between them are > not part of the documented interface -- the consumer can simply trust > that we have given them reasonable values so that things will work.
With respect to the implementation/documentation of this constant, I'd like to see talk (in either header comments or documentation) about either one of the above refer to the other so that someone who downloads opensolaris and goes hunting in <sys/param.h> for things to "tweak" has a clear understanding of the implications of doing so from the get go, rather than when something doesn't work. It would be nice if both MAXLINKNAMELEN and LIFNAMSIZ could be in the same include file but I'm not sure that I like any of the outcomes from doing that ;-( It feels like there is a higher level architecture for networking here that both the link and IP layer are subscribing to but which we're not recognising. But that isn't this case. Darren
