Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Advice on script

by hbm (Hermit)
on Oct 21, 2011 at 14:11 UTC ( [id://932902]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       chaddr => 'XX:XX:XX:XX:XX:XX', # MAC Address of sending interface
    
  2. or download this
       sleep 5;  # allow capture process to establish
       sleep 10; # allow capture
    
  3. or download this
       #my @macaddr = split(/:/, $chaddr);
       my @chaddr = split(/:/, $chaddr);
    ...
    
       # or combined, using the clearer(?) @macaddr:
       @macaddr = map { hex } (split/:/,'10:FF:2B:40:8C:FE'), (0)x10;
    
  4. or download this
        for (my $i = 0; $i <= $#options; $i++) {
            my $option = hex($options[$i++]);
    ...
            }
             $i = $offset - 1;
         }
    
  5. or download this
         for my $key (keys %opts) {
             print $key, " ", dhcp_option($key),"\t";
    ...
                   )
                   "\n";
         }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://932902]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-03-29 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found