Restore corefiles handling via kvm(3).
Found by: John-Mark Gurney <jmg at funkthat.com> MFC after: 4 weeks
This commit is contained in:
parent
47e52731cc
commit
11188df260
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259566
@ -319,6 +319,7 @@ int gflag; /* show group (multicast) routing or stats */
|
||||
int hflag; /* show counters in human readable format */
|
||||
int iflag; /* show interfaces */
|
||||
int Lflag; /* show size of listen queues */
|
||||
int Mflag; /* read statistics from core */
|
||||
int mflag; /* show memory stats */
|
||||
int noutputs = 0; /* how much outputs before we exit */
|
||||
int numeric_addr; /* show addresses numerically */
|
||||
@ -424,6 +425,7 @@ main(int argc, char *argv[])
|
||||
Lflag = 1;
|
||||
break;
|
||||
case 'M':
|
||||
Mflag = 1;
|
||||
memf = optarg;
|
||||
break;
|
||||
case 'm':
|
||||
|
@ -40,6 +40,7 @@ extern int gflag; /* show group (multicast) routing or stats */
|
||||
extern int hflag; /* show counters in human readable format */
|
||||
extern int iflag; /* show interfaces */
|
||||
extern int Lflag; /* show size of listen queues */
|
||||
extern int Mflag; /* read statistics from core */
|
||||
extern int mflag; /* show memory stats */
|
||||
extern int noutputs; /* how much outputs before we exit */
|
||||
extern int numeric_addr; /* show addresses numerically */
|
||||
|
@ -182,7 +182,7 @@ routepr(u_long rtree, int fibnum)
|
||||
printf(" (fib: %d)", fibnum);
|
||||
printf("\n");
|
||||
|
||||
if (Aflag == 0 && NewTree)
|
||||
if (Aflag == 0 && Mflag == 0 && NewTree)
|
||||
ntreestuff(fibnum, af);
|
||||
else {
|
||||
if (rtree == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user