From: "Eric Vautier" <eric@richclients.org>
To: netfilter@lists.netfilter.org
Subject: [IPTables] Uninitialized bitwise operations
Date: Tue, 16 Nov 2004 16:47:44 +0100 [thread overview]
Message-ID: <042b01c4cbf3$aafe23d0$b6dc273e@ERICVAUTIER> (raw)
Hello everyone,
I'm positive this issue has been addressed earlier here or elsewhere, but I
haven't found a conclusive explanation for why this happens or how to remedy
it. I believe this is the right forum to discuss it.
Logwatch keeps issuing floods of failed bitwise lookup operations in
/etc/log.d/scripts/services/kernel:
Use of uninitialized value in bitwise or (|) at
/etc/log.d/scripts/services/kernel line 100, <STDIN> line 1516658.
Use of uninitialized value in left bitshift (<<) at
/etc/log.d/scripts/services/kernel line 102, <STDIN> line 1516658.
Argument "" isn't numeric in left bitshift (<<) at
/etc/log.d/scripts/services/kernel line 102, <STDIN> line 1516658.
These started happening after I tried to block break-in attempts from some
IPs, using IPTables DROP rules (although I'm unclear as to whether there's a
link between the two). The message appears to indicate that a malformed IP
is being sent to the compIP subroutine:
sub compIP {
....my ($a1,$a2,$a3,$a4,$aval,$bval);
....
....# get numeric values for a and b
....($a1,$a2,$a3,$a4) = split /\./,$a;
....$aval = ($a1 << 24) | ($a2 << 16) | ($a3 << 8) | $a4; # line 100
....($a1,$a2,$a3,$a4) = split /\./,$b;
....$bval = ($a1 << 24) | ($a2 << 16) | ($a3 << 8) | $a4; # line 102
....
....return $aval <=> $bval;
}
I've reset (flushed) the firewall rules (-F), but still the problem
persists. Is this due to a versioning issue, a configuration issue, a bug,
wrong settings? I'm a newbye who's been wrestling with this for a little
while and would appreciate any help.
Thanks,
Eric Vautier
reply other threads:[~2004-11-16 15:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='042b01c4cbf3$aafe23d0$b6dc273e@ERICVAUTIER' \
--to=eric@richclients.org \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).