On Thu, 10 Mar 2005, David Nolan wrote:

Interesting... I wonder what exactly recv is returning and why it's failing in this way. Lets add a bit more debugging.

ah, got it. it's simple--just a matter of variable scoping. "my $fromip = inet_ntoa..." makes $from lexically local to that "if (1) { }" block, yet the syslog calls are outside of that block. $from is already declared within the scope of "sub handle_trap { }", so this little change will fix it:

        my $fromip = inet_ntoa ($addr);

changes to

        $fromip = inet_ntoa ($addr);


:)

_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to