|
version 1.1.1.1, 2012/02/21 23:32:47
|
version 1.1.1.2, 2013/07/22 08:44:29
|
|
Line 12
|
Line 12
|
| |
|
| #ifdef NG_NAT_DESC_LENGTH |
#ifdef NG_NAT_DESC_LENGTH |
| /* max. number of red-port rules */ |
/* max. number of red-port rules */ |
| #define NM_PORT 16 | #define NM_PORT 32 |
| /* max. number of red-addr rules */ |
/* max. number of red-addr rules */ |
| #define NM_ADDR 8 |
#define NM_ADDR 8 |
| /* max. number of red-proto rules */ |
/* max. number of red-proto rules */ |
|
Line 48
|
Line 48
|
| */ |
*/ |
| |
|
| extern const struct cmdtab NatSetCmds[]; |
extern const struct cmdtab NatSetCmds[]; |
| |
#ifdef NG_NAT_DESC_LENGTH |
| |
extern const struct cmdtab NatUnSetCmds[]; |
| |
#endif |
| |
|
| extern void NatInit(Bund b); |
extern void NatInit(Bund b); |
| extern int NatStat(Context ctx, int ac, char *av[], void *arg); |
extern int NatStat(Context ctx, int ac, char *av[], void *arg); |