/*
* 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 (c) 2001 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <at.h>
#include <snoop.h>
static void show_rtmp_tuples(uint8_t *, int);
static char *
{
switch (fun) {
case RTMP_REQ:
return ("Request");
case RTMP_RDR_SH:
return ("Route Data Request, split horizon");
case RTMP_RDR_NSH:
return ("Route Data Request, no split horizon");
default:
return ("unknown");
}
}
static char *
{
switch (fun) {
case RTMP_REQ:
return ("Req");
case RTMP_RDR_SH:
return ("RDR, sh");
case RTMP_RDR_NSH:
return ("RDR, no sh");
default:
return ("unknown");
}
}
void
{
int tuples;
int runt;
char extended;
len -= DDPHDR_SIZE;
if (len < 0)
goto out;
case DDP_TYPE_RTMPRQ: /* simple rtmp */
if (len < 1)
goto out;
"RTMP F=%s",
rtmp_func_short(data[0]));
}
show_space();
"Func = %d (%s)",
}
break;
case DDP_TYPE_RTMPRESP: /* RTMP data */
if (len < 3)
goto out;
return;
"RTMP Data Snet=%d, Snode=%d%s",
}
show_space();
"RTMP Data, Length = %d%s",
"Senders Net = %d, Sender Node %d",
if (extended)
else
}
break;
}
return;
out:
"RTMP (short packet)");
}
show_space();
"(short packet)");
}
}
static void
{
while (tuples > 0) {
"Network = %d-%d, Distance = %d",
p += 6;
tuples -= 2;
} else {
"Network = %d, Distance = %d",
get_short(p), p[2]);
p += 3;
tuples--;
}
}
}