1/*- 2 * Copyright (c) 1995 Gordon Ross, Adam Glass 3 * Copyright (c) 1992 Regents of the University of California. 4 * All rights reserved. 5 * 6 * This software was developed by the Computer Systems Engineering group 7 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 8 * contributed to Berkeley. --- 27 unchanged lines hidden (view full) --- 36 * SUCH DAMAGE. 37 * 38 * based on: 39 * nfs/krpc_subr.c 40 * $NetBSD: krpc_subr.c,v 1.10 1995/08/08 20:43:43 gwr Exp $ 41 */ 42 43#include <sys/cdefs.h> |
44__FBSDID("$FreeBSD: head/sys/nfsclient/bootp_subr.c 193232 2009-06-01 15:49:42Z bz $"); |
45 46#include "opt_route.h" 47#include "opt_bootp.h" 48 49#include <sys/param.h> 50#include <sys/systm.h> 51#include <sys/jail.h> 52#include <sys/kernel.h> --- 303 unchanged lines hidden (view full) --- 356 } 357 } 358} 359 360void 361bootpboot_p_rtlist(void) 362{ 363 INIT_VNET_NET(curvnet); |
364 struct radix_node_head *rnh; |
365 366 printf("Routing table:\n"); |
367 rnh = rt_tables_get_rnh(0, AF_INET); 368 if (rnh == NULL) 369 return; 370 RADIX_NODE_HEAD_RLOCK(rnh); /* could sleep XXX */ 371 bootpboot_p_tree(rnh->rnh_treetop); 372 RADIX_NODE_HEAD_RUNLOCK(rnh); |
373} 374 375void 376bootpboot_p_if(struct ifnet *ifp, struct ifaddr *ifa) 377{ 378 379 printf("%s flags %x, addr ", 380 ifp->if_xname, ifp->if_flags); --- 1484 unchanged lines hidden --- |