Commit 1399c0de authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add nexthop syntax to linkdelay stuff (since its on the image, might

as well commit it!). This is the new ipfw syntax that allows matching
on the nexthop destination chosen by ip_output.
parent 05266016
......@@ -382,6 +382,7 @@ sub LinkDelaySetup()
or die("Could not open " . TMLINKDELAY . ": $!");
print DEL "#!/bin/sh\n";
print DEL "ipfw -f flush\n";
foreach $delay (@delays) {
my $pat = q(LINKDELAY IFACE=([\d\w]+) TYPE=(simplex|duplex) );
......@@ -483,7 +484,7 @@ sub LinkDelaySetup()
print DEL "\n";
print DEL "ipfw add $ruleno pipe $pipeno ip from any to ".
"any out xmit $iface\n";
"any out xmit $iface nexthop $inet:$mask\n";
print DEL "ipfw pipe $pipeno config delay ${delay}ms ";
print DEL "bw ${bandw}Kbit/s plr $plr $queue $redparams\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment