diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2013-03-11 19:48:41 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2013-03-11 19:48:41 +0000 |
commit | 17a23178ab9f04a755a3ec567893161ecaaa579b (patch) | |
tree | be10d626216e1ee005fd6ef1d9b012a12a573180 /sys/net/pfvar.h | |
parent | e4613e3495c86fe4be3934e98723b962b11dff99 (diff) |
Add a separate "translation" counter and use this rather than "memory"
when address translation fails due to no free ports in the configured range.
ok mikeb@
Diffstat (limited to 'sys/net/pfvar.h')
-rw-r--r-- | sys/net/pfvar.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index 38dddee4a6a..67eb9a7fce4 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pfvar.h,v 1.376 2013/01/17 00:48:04 henning Exp $ */ +/* $OpenBSD: pfvar.h,v 1.377 2013/03/11 19:48:40 sthen Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1293,7 +1293,8 @@ struct pf_pdesc { #define PFRES_MAXSTATES 12 /* State limit */ #define PFRES_SRCLIMIT 13 /* Source node/conn limit */ #define PFRES_SYNPROXY 14 /* SYN proxy */ -#define PFRES_MAX 15 /* total+1 */ +#define PFRES_TRANSLATE 15 /* No translation address available */ +#define PFRES_MAX 16 /* total+1 */ #define PFRES_NAMES { \ "match", \ @@ -1311,6 +1312,7 @@ struct pf_pdesc { "state-limit", \ "src-limit", \ "synproxy", \ + "translate", \ NULL \ } |