Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl 
    # program which send data from eth0 to lo
    ...
        send(RAW,$ifaceid.$_[2],0,$flags) || die "Send :$!\n";    
    
    }
    
  2. or download this
    #!/usr/bin/perl 
    # This one sends packet from eth1 to lo
    ...
            #I add interface id to packe to identify source interface
        send(RAW,$ifaceid.$_[2],0,$flags) || die "Send :$!\n";    
    }
    
  3. or download this
    #!/usr/bin/perl 
    
    ...
        return;
    }