Deleted Added
full compact
bootp_subr.c (193066) bootp_subr.c (193232)
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>
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 193066 2009-05-29 21:27:12Z jamie $");
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);
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;
364
365 printf("Routing table:\n");
365
366 printf("Routing table:\n");
366 RADIX_NODE_HEAD_RLOCK(V_rt_tables[0][AF_INET]); /* could sleep XXX */
367 bootpboot_p_tree(V_rt_tables[0][AF_INET]->rnh_treetop);
368 RADIX_NODE_HEAD_RUNLOCK(V_rt_tables[0][AF_INET]);
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);
369}
370
371void
372bootpboot_p_if(struct ifnet *ifp, struct ifaddr *ifa)
373{
374
375 printf("%s flags %x, addr ",
376 ifp->if_xname, ifp->if_flags);

--- 1484 unchanged lines hidden ---
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 ---