/*
* Copyright (C) 2002-2005 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* Added redirect stuff and a variety of bug fixes. (mcn@EnGarde.com)
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "ipf.h"
#include "kmem.h"
#if !defined(lint)
#endif
/*
* Print out a NAT rule
*/
int opts;
{
void *ptr;
{
case NAT_REDIRECT :
printf("rdr");
break;
case NAT_MAP :
printf("map");
break;
case NAT_MAPBLK :
printf("map-block");
break;
case NAT_BIMAP :
printf("bimap");
break;
default :
break;
}
}
putchar(' ');
printf("! ");
printf("from ");
} else {
}
printf(" !");
printf(" to ");
} else {
}
}
else
af = 0;
}
}
printf(" -> ");
printf(",");
}
else
}
putchar(' ');
printf(" round-robin");
printf(" frag");
}
printf(" sticky");
if (np->in_mssclamp != 0)
printf("\n");
} else {
}
printf(" -> ");
printf("range ");
printf("-");
} else {
}
printf(" proxy port ");
char *s;
if (s != NULL)
else
}
printf(" ports auto");
else
printf(" icmpidmap ");
} else {
printf(" portmap ");
}
printf(" auto");
printf(" [%d:%d %d %d]",
} else {
}
putchar(' ');
}
printf(" frag");
}
if (np->in_mssclamp != 0)
printf(" sequential");
printf("\n");
printf("\tnextip %s pnext %d\n",
}
}
printf("\tspace %lu use %u hits %lu flags %#x proto %d hv %d\n",
printf("\tifp[0] %p ifp[1] %p apr %p\n",
printf("\ttqehead %p/%p comment %p\n",
}
}