Skip to content
This repository was archived by the owner on Aug 28, 2021. It is now read-only.

Commit 49fab65

Browse files
authored
Merge pull request #15 from coxley/notify_saddr
Notify saddr
2 parents 1f4cbfd + 8a8faf0 commit 49fab65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ func main() {
600600
fmt.Fprintf(os.Stderr, "Could not identify a source address to trace from\n")
601601
return
602602
}
603+
fmt.Fprintf(os.Stderr, "Using as source address: %s\n", source.String())
603604

604605
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)
605606
if flag.Lookup("logtostderr").Value.String() != "true" {
@@ -612,7 +613,7 @@ func main() {
612613
senderDone[ttl-1] = make(chan struct{})
613614
c, err := Sender(senderDone[ttl-1], source, *addrFamily, target, *targetPort, *baseSrcPort, *maxSrcPorts, numIters, ttl, *probeRate, *tosValue)
614615
if err != nil {
615-
glog.Errorf("Failed to start sender for ttl %d, %s", ttl, err);
616+
glog.Errorf("Failed to start sender for ttl %d, %s", ttl, err)
616617
if err.Error() == "operation not permitted" {
617618
glog.Error(" -- are you running with the correct privileges?")
618619
}

0 commit comments

Comments
 (0)