Ignore:
Timestamp:
Mar 10, 2014 10:16:01 AM (10 years ago)
Author:
Ted Faber <faber@…>
Branches:
master
Children:
51d3aa0
Parents:
ea0e8cb
Message:

Ping hosts on tap establishment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedkit/gateway_lib.pm

    rea0e8cb r2c16731  
    434434}
    435435
     436# Fling a few ping packets at the peer in the hopes that it opens doors through
     437# NATs and other filters.  Practically speaking this can make a big difference.
     438sub ping_peer {
     439    my($peer) = @_;
     440    system("ping -c 5 $peer");
     441}
     442
    436443sub testcmd_repeat {
    437444    my($cmd, $timeout, $sleep) = @_;
Note: See TracChangeset for help on using the changeset viewer.