diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-04-14 10:36:07 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-04-14 10:36:07 +0200 |
commit | a1586cea00b32b401c76f17aab4121967051d883 (patch) | |
tree | 8d5e64845459b35636a9f04c3bf74ccd6f4292cd /include/internal/extern.h | |
parent | 7533cca286edee99db29eb1238653a2040738d3e (diff) |
snprintf: remove duplicated protocol string definitions
This patch merges duplicated protocol string definitions in the
snprintf infrastructure. I have also fixed the size of the string
array. This patch is a cleanup.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/internal/extern.h')
-rw-r--r-- | include/internal/extern.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/internal/extern.h b/include/internal/extern.h index d0b079f..e1bbc13 100644 --- a/include/internal/extern.h +++ b/include/internal/extern.h @@ -13,4 +13,11 @@ extern get_exp_attr get_exp_attr_array[]; extern uint32_t attr_grp_bitmask[ATTR_GRP_MAX][__NFCT_BITSET]; +/* for the snprintf infrastructure */ +extern const char *l3proto2str[AF_MAX]; +extern const char *proto2str[IPPROTO_MAX]; +extern const char *states[TCP_CONNTRACK_MAX]; +extern const char *sctp_states[SCTP_CONNTRACK_MAX]; +extern const char *dccp_states[DCCP_CONNTRACK_MAX]; + #endif |