diff options
author | laforge <laforge> | 2005-11-20 14:16:30 +0000 |
---|---|---|
committer | laforge <laforge> | 2005-11-20 14:16:30 +0000 |
commit | b25637a58e9ab853ac410fcd823546256ab3002b (patch) | |
tree | 5fcee055efd0b8109f0fcb2e3e3fe33bb5765b05 /filter/ulogd_filter_PWSNIFF.c | |
parent | e6459a06dbc4057ec1680c76075bc12c1774d385 (diff) |
make 'num_keys' an attribute of pluginstance instead of plugin
Diffstat (limited to 'filter/ulogd_filter_PWSNIFF.c')
-rw-r--r-- | filter/ulogd_filter_PWSNIFF.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |