It seems this file was ignored by MRT, rnh locking changes and new-arpv2.

So let the V_irtualization people finally make the disabled debugging code
compile again.

MFC after:	2 weeks
X-MFC:		MRT and adapt rnh locking
This commit is contained in:
Bjoern A. Zeeb 2009-05-23 00:07:55 +00:00
parent b66124f314
commit a43c797788
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192615

View File

@ -242,7 +242,6 @@ static void bootpc_tag_helper(struct bootpc_tagcontext *tctx,
#ifdef BOOTP_DEBUG
void bootpboot_p_sa(struct sockaddr *sa, struct sockaddr *ma);
void bootpboot_p_ma(struct sockaddr *ma);
void bootpboot_p_rtentry(struct rtentry *rt);
void bootpboot_p_tree(struct radix_node *rn);
void bootpboot_p_rtlist(void);
@ -325,25 +324,12 @@ bootpboot_p_sa(struct sockaddr *sa, struct sockaddr *ma)
}
}
void
bootpboot_p_ma(struct sockaddr *ma)
{
if (ma == NULL) {
printf("<null>");
return;
}
printf("%x", *(int *)ma);
}
void
bootpboot_p_rtentry(struct rtentry *rt)
{
bootpboot_p_sa(rt_key(rt), rt_mask(rt));
printf(" ");
bootpboot_p_ma(rt->rt_genmask);
printf(" ");
bootpboot_p_sa(rt->rt_gateway, NULL);
printf(" ");
printf("flags %x", (unsigned short) rt->rt_flags);
@ -375,9 +361,9 @@ bootpboot_p_rtlist(void)
{
printf("Routing table:\n");
RADIX_NODE_LOCK(V_rt_tables[AF_INET]); /* could sleep XXX */
bootpboot_p_tree(V_rt_tables[AF_INET]->rnh_treetop);
RADIX_NODE_UNLOCK(V_rt_tables[AF_INET]);
RADIX_NODE_HEAD_RLOCK(V_rt_tables[0][AF_INET]); /* could sleep XXX */
bootpboot_p_tree(V_rt_tables[0][AF_INET]->rnh_treetop);
RADIX_NODE_HEAD_RUNLOCK(V_rt_tables[0][AF_INET]);
}
void