#ifndef lint
static char rcsid[] =
- "@(#) $Id: print-rx.c,v 1.2 1999-11-17 20:28:50 assar Exp $";
+ "@(#) $Id: print-rx.c,v 1.3 1999-11-17 22:19:41 assar Exp $";
#endif
+#include <stdio.h>
+#include <string.h>
#include <sys/param.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
-#include <stdio.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
+#include <arpa/inet.h>
#include "interface.h"
#include "addrtoname.h"
break;
case 134: /* Store ACL */
{
- int a[AFSOPAQUEMAX];
+ char a[AFSOPAQUEMAX];
FIDOUT();
TRUNC(4);
i = ntohl(*((int *) bp));
switch (opcode) {
case 131: /* Fetch ACL */
{
- int a[AFSOPAQUEMAX];
+ char a[AFSOPAQUEMAX];
TRUNC(4);
i = ntohl(*((int *) bp));
bp += sizeof(int32_t);
tok2str(cb_types, "type %d", t);
}
}
+ case 214: {
+ printf(" afsuuid");
+ AFSUUIDOUT();
+ break;
+ }
default:
;
}
static void
cb_reply_print(register const u_char *bp, int length, int32_t opcode)
{
- unsigned long i;
- char s[AFSNAMEMAX];
struct rx_header *rxh;
if (length <= sizeof(struct rx_header))
*/
if (rxh->type == RX_PACKET_TYPE_DATA)
- /* Well, no, not really. Leave this for later */
+ switch (opcode) {
+ case 213: /* InitCallBackState3 */
+ AFSUUIDOUT();
+ break;
+ default:
;
+ }
else {
/*
* Otherwise, just print out the return code
static void
prot_print(register const u_char *bp, int length)
{
- int pt_op;
unsigned long i;
char s[AFSNAMEMAX];
+ int pt_op;
if (length <= sizeof(struct rx_header))
return;
TRUNC(sizeof(int32_t));
nservers = ntohl(*((int *) bp));
bp += sizeof(int32_t);
- printf(" %d", nservers);
+ printf(" %lu", nservers);
printf(" servers");
for (i = 0; i < 8; i++) {
TRUNC(sizeof(int32_t));
TRUNC(sizeof(int32_t));
j = ntohl(*((int *) bp));
if (i < nservers && j <= 26)
- printf(" %c", 'a' + j);
+ printf(" %c", 'a' + (int)j);
else if (i < nservers)
- printf(" %d", j);
+ printf(" %lu", j);
bp += sizeof(int32_t);
}
TRUNC(8 * sizeof(int32_t));
TRUNC(sizeof(int32_t));
nservers = ntohl(*((int *) bp));
bp += sizeof(int32_t);
- printf(" %d", nservers);
+ printf(" %lu", nservers);
printf(" servers");
for (i = 0; i < 13; i++) {
TRUNC(sizeof(int32_t));
TRUNC(sizeof(int32_t));
j = ntohl(*((int *) bp));
if (i < nservers && j <= 26)
- printf(" %c", 'a' + j);
+ printf(" %c", 'a' + (int)j);
else if (i < nservers)
- printf(" %d", j);
+ printf(" %lu", j);
bp += sizeof(int32_t);
}
TRUNC(13 * sizeof(int32_t));
TRUNC(sizeof(int32_t));
nservers = ntohl(*((int *) bp));
bp += sizeof(int32_t);
- printf(" %d", nservers);
+ printf(" %lu", nservers);
printf(" servers");
for (i = 0; i < 13; i++) {
if (i < nservers) {
TRUNC(sizeof(int32_t));
j = ntohl(*((int *) bp));
if (i < nservers && j <= 26)
- printf(" %c", 'a' + j);
+ printf(" %c", 'a' + (int)j);
else if (i < nservers)
- printf(" %d", j);
+ printf(" %lu", j);
bp += sizeof(int32_t);
}
TRUNC(13 * sizeof(int32_t));
static void
kauth_reply_print(register const u_char *bp, int length, int32_t opcode)
{
- unsigned long i;
- char s[AFSNAMEMAX];
struct rx_header *rxh;
if (length <= sizeof(struct rx_header))
static void
vol_reply_print(register const u_char *bp, int length, int32_t opcode)
{
- unsigned long i;
- char s[AFSNAMEMAX];
struct rx_header *rxh;
if (length <= sizeof(struct rx_header))
static void
bos_reply_print(register const u_char *bp, int length, int32_t opcode)
{
- unsigned long i;
- char s[AFSNAMEMAX];
struct rx_header *rxh;
if (length <= sizeof(struct rx_header))