From b25637a58e9ab853ac410fcd823546256ab3002b Mon Sep 17 00:00:00 2001 From: laforge Date: Sun, 20 Nov 2005 14:16:30 +0000 Subject: make 'num_keys' an attribute of pluginstance instead of plugin --- filter/ulogd_filter_PWSNIFF.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'filter/ulogd_filter_PWSNIFF.c') diff --git a/filter/ulogd_filter_PWSNIFF.c b/filter/ulogd_filter_PWSNIFF.c index 2296929..7e417da 100644 --- a/filter/ulogd_filter_PWSNIFF.c +++ b/filter/ulogd_filter_PWSNIFF.c @@ -60,8 +60,8 @@ static unsigned char *_get_next_blank(unsigned char* begp, unsigned char *endp) static int interp_pwsniff(struct ulogd_pluginstance *pi) { - struct ulogd_key *inp = pi->input; - struct ulogd_key *ret = pi->output; + struct ulogd_key *inp = pi->input.keys; + struct ulogd_key *ret = pi->output.keys; struct iphdr *iph; void *protoh; struct tcphdr *tcph; @@ -69,10 +69,10 @@ static int interp_pwsniff(struct ulogd_pluginstance *pi) unsigned char *ptr, *begp, *pw_begp, *endp, *pw_endp; int len, pw_len, i, cont = 0; - if (!IS_VALID(pi->input[0])) + if (!IS_VALID(pi->input.keys[0])) return 0; - iph = (struct iphdr *) pi->input[0].u.value.ptr; + iph = (struct iphdr *) pi->input.keys[0].u.value.ptr; protoh = (u_int32_t *)iph + iph->ihl; tcph = protoh; tcplen = ntohs(iph->tot_len) - iph->ihl * 4; -- cgit v1.2.3