/[pxelator]/lib/PXElator/wireshark.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /lib/PXElator/wireshark.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 225 - (show annotations)
Sun Aug 16 00:03:30 2009 UTC (14 years, 8 months ago) by dpavlin
File size: 246 byte(s)
split out wireshark as separate process from kvm

implemented fork_if_active (for sub-processes) and fork_actions
which can be run without dependencies

1 package wireshark;
2
3 use warnings;
4 use strict;
5
6 sub fork_actions { qw/tap0 eth0/ }
7
8 our $AUTOLOAD;
9
10 sub AUTOLOAD {
11 my $name = $AUTOLOAD;
12 $name =~ s/.*://; # strip fully-qualified portion
13
14 warn "# $name";
15
16 exec "wireshark -k -i $name";
17 }
18
19 1;

  ViewVC Help
Powered by ViewVC 1.1.26