chiark / gitweb /
ipif: service-wrap: implementation, get args to service right
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 17 Apr 2017 23:23:23 +0000 (00:23 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 17 Apr 2017 23:23:23 +0000 (00:23 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
ipif/service-wrap

index 2916750..7f6dad4 100755 (executable)
@@ -103,7 +103,8 @@ our @rnets = ($rnets eq '-' ? () : split /\,/, $rnets);
 sub execreal ($) {
     my ($use_v0config) = @_;
     exec $realservice, $use_v0config, '--',
-       "$local_addr,$peer_addr,$mtu,$protocol",
+       (join ',', $local_addr->addr, $peer_addr->addr,
+                  $mtu, $protocol, $ifname),
        @rnets ? (join ",", map { "$_" } @rnets) : "-"
        or die "exec $realservice: $!\n";
 }