diff --git a/sys/nfsclient/bootp_subr.c b/sys/nfsclient/bootp_subr.c index 05702f604ddc..be6a588725fd 100644 --- a/sys/nfsclient/bootp_subr.c +++ b/sys/nfsclient/bootp_subr.c @@ -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(""); - 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