summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAijay Adams <aijayadams@users.noreply.github.com>2016-11-07 17:51:26 -0800
committerGitHub <noreply@github.com>2016-11-07 17:51:26 -0800
commit49fab65822e7c1746e8ddd56a90666fc945775a8 (patch)
tree78b94716ca149538663614e060a7b7ad755b954b
parent1f4cbfd567ea77e30316089125c6c83c341f88de (diff)
parent8a8faf0ba439ede5b8b78cbe34e4e0b26522bd8d (diff)
downloadfbtracert-49fab65822e7c1746e8ddd56a90666fc945775a8.zip
fbtracert-49fab65822e7c1746e8ddd56a90666fc945775a8.tar.gz
fbtracert-49fab65822e7c1746e8ddd56a90666fc945775a8.tar.bz2
Merge pull request #15 from coxley/notify_saddr
Notify saddr
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index 2cd69d5..e293f73 100644
--- a/main.go
+++ b/main.go
@@ -600,6 +600,7 @@ func main() {
fmt.Fprintf(os.Stderr, "Could not identify a source address to trace from\n")
return
}
+ fmt.Fprintf(os.Stderr, "Using as source address: %s\n", source.String())
fmt.Fprintf(os.Stderr, "Starting fbtracert with %d probes per second/ttl, base src port %d and with the port span of %d\n", *probeRate, *baseSrcPort, *maxSrcPorts)
if flag.Lookup("logtostderr").Value.String() != "true" {
@@ -612,7 +613,7 @@ func main() {
senderDone[ttl-1] = make(chan struct{})
c, err := Sender(senderDone[ttl-1], source, *addrFamily, target, *targetPort, *baseSrcPort, *maxSrcPorts, numIters, ttl, *probeRate, *tosValue)
if err != nil {
- glog.Errorf("Failed to start sender for ttl %d, %s", ttl, err);
+ glog.Errorf("Failed to start sender for ttl %d, %s", ttl, err)
if err.Error() == "operation not permitted" {
glog.Error(" -- are you running with the correct privileges?")
}