printstate.c revision ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4
/*
* Copyright (C) 2002 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*/
#include "ipf.h"
#include "kmem.h"
int opts;
{
#ifdef IPFILTER_SYNC
#endif
return NULL;
PRINTF("%s pass %#x pr %d state %d/%d bkt %d\n",
PRINTF("\n\t%hu -> %hu %x:%x %hu<<%d:%hu<<%d\n",
PRINTF("\tcmsk %04x smsk %04x isc %p s0 %08x/%08x\n",
PRINTF("\tFWD:ISN inc %x sumd %x\n",
PRINTF("\tREV:ISN inc %x sumd %x\n",
#ifdef IPFILTER_SCAN
PRINTF("\tsbuf[0] [");
PRINTF("] sbuf[1] [");
PRINTF("]\n");
#endif
#ifdef USE_INET6
#endif
)
#ifdef USE_QUAD_T
PRINTF("\tforward: pkts in %qd bytes in %qd pkts out %qd bytes out %qd\n\tbackward: pkts in %qd bytes in %qd pkts out %qd bytes out %qd\n",
#else
PRINTF("\tforward: pkts in %ld bytes in %ld pkts out %ld bytes out %ld\n\tbackward: pkts in %ld bytes in %ld pkts out %ld bytes out %ld\n",
#endif
PRINTF("\t");
/*
* Print out bits set in the result code for the state being
* kept as they would for a rule.
*/
PRINTF("pass");
PRINTF("block");
{
case FR_RETICMP :
PRINTF(" return-icmp");
break;
case FR_FAKEICMP :
PRINTF(" return-icmp-as-dest");
break;
case FR_RETRST :
PRINTF(" return-rst");
break;
default :
break;
}
PRINTF("log");
PRINTF(" body");
PRINTF(" first");
PRINTF("count");
PRINTF("preauth");
PRINTF("auth");
PRINTF(" out");
else
PRINTF(" in");
PRINTF(" log");
PRINTF(" body");
PRINTF(" first");
PRINTF(" or-block");
}
PRINTF(" quick");
PRINTF(" keep frags");
/* a given; no? */
PRINTF(" keep state");
PRINTF(" ( sync )");
}
PRINTF("\n");
PRINTF("\tpkt_flags & %x(%x) = %x,\t",
PRINTF("\tpkt_security & %x = %x, pkt_auth & %x = %x\n",
putchar(']');
putchar(']');
putchar(']');
PRINTF("]\n");
#ifdef IPFILTER_SYNC
PRINTF("\tSync status: status could not be retrieved\n");
return NULL;
}
PRINTF("\tSync status: idx %d num %d v %d pr %d rev %d\n",
} else {
PRINTF("\tSync status: not synchronized\n");
}
#endif
}