blob: a3b8246f360c85b9c0cb30aafd68b0c57192b794 [file] [log] [blame] [raw]
/*
* Copyright (C) 2004-2007 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* $Id$
*/
#include "ipf.h"
#include "kmem.h"
void
printfraginfo(prefix, ifr)
char *prefix;
struct ipfr *ifr;
{
frentry_t fr;
fr.fr_flags = 0xffffffff;
PRINTF("%s%s -> ", prefix, hostname(AF_INET, &ifr->ipfr_src));
/*
if (kmemcpy((char *)&fr, (u_long)ifr->ipfr_rule,
sizeof(fr)) == -1)
return;
*/
PRINTF("%s id %u ttl %lu pr %d seen0 %d ref %d\n",
hostname(AF_INET, &ifr->ipfr_dst), ifr->ipfr_id,
ifr->ipfr_ttl, ifr->ipfr_p, ifr->ipfr_seen0, ifr->ipfr_ref);
}