/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI" /* SunOS */
#include <ctype.h>
#include <fcntl.h>
#include <netinet/in_systm.h>
#include "snoop.h"
extern char *dlc_header;
static char *show_cmd6();
0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0 } };
int
{
char *p;
struct netinfo6 *n;
int notdefault = 0;
case RIPCMD6_REQUEST: p = "C"; break;
case RIPCMD6_RESPONSE: p = "R"; break;
default: p = "?"; break;
}
case RIPCMD6_REQUEST:
case RIPCMD6_RESPONSE:
count = 0;
count++;
}
(void) sprintf(get_sum_line(),
break;
default:
break;
}
}
fraglen);
show_space();
case RIPCMD6_REQUEST:
case RIPCMD6_RESPONSE:
show_space();
" Prefix Metric");
n->rip6_metric = n->rip6_metric;
}
dst = &n->rip6_prefix;
sizeof (struct netinfo6)),
"%-30s %-10d %-5d %s",
notdefault ? dststr :
" (default)", n->rip6_prefix_length,
" (not reachable)":"");
}
break;
}
}
return (fraglen);
}
static char *
show_cmd6(c)
int c;
{
switch (c) {
case RIPCMD6_REQUEST: return ("route request");
case RIPCMD6_RESPONSE: return ("route response");
}
return ("?");
}