cvs commit: src/sys/net if.c route.c rtsock.c

Luigi Rizzo luigi at
Fri Apr 16 04:05:39 PDT 2004

On Fri, Apr 16, 2004 at 12:54:11PM +0200, Dag-Erling Smørgrav wrote:
> Luigi Rizzo <luigi at> writes:
> > On Fri, Apr 16, 2004 at 09:05:20AM +0000, Eivind Eklund wrote:
> > > #define ifp2ifaddr(p) ifaddr_byindex((p)->if_index)
> > ifaddr_byindex() is already a macro, so i'd rather not have the
> > double indirection.
> What difference does it make?

it is two different ways of getting the same info, which is
precisely what i was trying to remove in the first place.

But the most important thing is that we have to decide whether
the search key is the ifp or the ifindex, and use one consistently.


More information about the cvs-src mailing list