4 * Copyright (C) 2002-2004 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
8 * Added redirect stuff and a variety of bug fixes. (mcn@EnGarde.com)
14 static const char rcsid[] = "@(#)$Id: getnattype.c,v 1.3.2.2 2006/07/14 06:12:24 darrenr Exp $";
19 * Get a nat filter type given its kernel address.
21 char *getnattype(nat, alive)
25 static char unknownbuf[20];
33 type = nat->nat_redir;
36 if (kmemcpy((char *)&ipnat, (long)ipn, sizeof(ipnat)))
38 type = ipnat.in_redir;
56 sprintf(unknownbuf, "unknown(%04x)", type & 0xffffffff);