diff options
author | Christophe Fish <christophe.fish@free.fr> | 2010-04-02 14:16:54 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-04-02 14:16:54 +0200 |
commit | 3fff7feb1428e8de1903817127995efd4c60d5ef (patch) | |
tree | de94bfb1a982d945b6612c2a78127483708e177f /filter | |
parent | ead3e460478c9b085227a4380f38d6bf1d39836d (diff) |
IP2BIN: fix missing protocol key
ulogd2 from git won't start using filter IP2BIN. It gives the following error
message in the log:
<1> ulogd.c:670 traversing plugin `IP2BIN'
<1> ulogd.c:627 log4(NFLOG)
<1> ulogd.c:733 assigning `oob.family(?)' as source for IP2BIN(oob.family)
<7> ulogd.c:727 cannot find key `' in stack
<1> ulogd.c:863 destroying stack
Filling up ip2bin_inp[] declaration with missing section in
filter/ulogd_filter_IP2BIN.c solves the problem:
Signed-off-by: Christophe Fish <christophe.fish@free.fr>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/ulogd_filter_IP2BIN.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/filter/ulogd_filter_IP2BIN.c b/filter/ulogd_filter_IP2BIN.c index 0a71972..a8688fe 100644 --- a/filter/ulogd_filter_IP2BIN.c +++ b/filter/ulogd_filter_IP2BIN.c @@ -50,6 +50,11 @@ static struct ulogd_key ip2bin_inp[] = { .flags = ULOGD_RETF_NONE, .name = "oob.family", }, + [KEY_OOB_PROTOCOL] = { + .type = ULOGD_RET_UINT16, + .flags = ULOGD_RETF_NONE, + .name = "oob.protocol", + }, [KEY_IP_SADDR] = { .type = ULOGD_RET_IPADDR, .flags = ULOGD_RETF_NONE|ULOGD_KEYF_OPTIONAL, |