Add ULOGD_DTYPE_RAW to GPRINT to make it work. Update example ulogd.conf.in file since BASE provides a more complete packet dissection. Fixes: 59a71256945d ("src: add example use of GPRINT to ulogd.conf.in configuration file") Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> --- output/ulogd_output_GPRINT.c | 2 +- ulogd.conf.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/output/ulogd_output_GPRINT.c b/output/ulogd_output_GPRINT.c index bc7aa3419ed8..aedd08e980f7 100644 --- a/output/ulogd_output_GPRINT.c +++ b/output/ulogd_output_GPRINT.c @@ -249,7 +249,7 @@ static int gprint_fini(struct ulogd_pluginstance *pi) static struct ulogd_plugin gprint_plugin = { .name = "GPRINT", .input = { - .type = ULOGD_DTYPE_PACKET | ULOGD_DTYPE_FLOW | ULOGD_DTYPE_SUM, + .type = ULOGD_DTYPE_RAW | ULOGD_DTYPE_PACKET | ULOGD_DTYPE_FLOW | ULOGD_DTYPE_SUM, }, .output = { .type = ULOGD_DTYPE_SINK, diff --git a/ulogd.conf.in b/ulogd.conf.in index 99cfc244d2b7..9a04bf7c442a 100644 --- a/ulogd.conf.in +++ b/ulogd.conf.in @@ -65,7 +65,7 @@ logfile="/var/log/ulogd.log" #stack=log2:NFLOG,base1:BASE,mark1:MARK,ifi1:IFINDEX,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU # this is a stack for packet-based logging via GPRINT -#stack=log1:NFLOG,gp1:GPRINT +#stack=log1:NFLOG,base1:BASE,gp1:GPRINT # this is a stack for flow-based logging via LOGEMU #stack=ct1:NFCT,ip2str1:IP2STR,print1:PRINTFLOW,emu1:LOGEMU -- 2.30.2