4 * Copyright (C) 2004-2005 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
8 * Id: printfraginfo.c,v 1.1.2.5 2006/12/25 15:10:37 darrenr Exp
13 void printfraginfo(prefix
, ifr
)
19 fr
.fr_flags
= 0xffffffff;
21 printf("%s%s -> ", prefix
, hostname(4, &ifr
->ipfr_src
));
23 if (kmemcpy((char *)&fr, (u_long)ifr->ipfr_rule,
27 printf("%s id %d ttl %ld pr %d seen0 %d ref %d tos %#02x\n",
28 hostname(4, &ifr
->ipfr_dst
), ifr
->ipfr_id
, ifr
->ipfr_ttl
,
29 ifr
->ipfr_p
, ifr
->ipfr_seen0
, ifr
->ipfr_ref
, ifr
->ipfr_tos
);