DragonFly BSD
DragonFly bugs List (threaded) for 2011-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [issue1969] pf-related network problem


From: Joe Talbott <josepht@xxxxxxxxxx>
Date: Thu, 27 Jan 2011 21:08:34 -0500

On Thu, Jan 27, 2011 at 11:17:35PM +0100, Jan Lentfer wrote:
> Jan Lentfer schrieb:
> 
> >That was a wrong trace :(.. too tired I guess. The part that actually 
> >returns NULL in radix.c is in rn_delete():
> >
> >        /*
> >         * Delete our route from mask lists.
> >         */
> >        if (netmask != NULL) {
> >                if ((x = rn_addmask(netmask, TRUE, head_off)) == NULL)
> >                        return (NULL);
> >                netmask = x->rn_key;
> >                while (tt->rn_mask != netmask)
> >                        if ((tt = tt->rn_dupedkey) == NULL)
> >                                return (NULL);
> >        }
> >
> >Jan
> >
> 
> 
> I put some kprintfs in radix.c's rn_addroute() and rn_delete(), to maybe 
> better figure out where it goes wrong. The table loaded in pf is made up 
> of the 1st 100 lines of Peter's p2p file. The ouput is rather long, so I 
> am just linkin to a pastie here:
> 
> http://pastie.org/1504070

Jan,

You'll need to print netmask as *((uint32_t *)netmask).

Cheers,
Joe
> 
> Maybe someone can make any sense from that??
> 
> TIA
> 
> Jan



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]