title: go-ping library for unprivileged ICMP ping in golang
body: <p>I have been using go-ping library for the unprivileged ping and calculate various statistics of network in golang.
  code snippet is as-></p>
  
  <pre><code>func (p *Ping) doPing() (latency, jitter, packetLoss float64, err error) {
  
      timeout := time.Second*1000
      interval := time.Second
      count := 5
      host := p.ipAddr
      pinger, cmdErr := ping.NewPinger(host)
      if cmdErr != nil {
              glog.Error("Failed to ping " + p.ipAddr)
              err = cmdErr
              return
      }
  
  
      pinger.Count = count
      pinger.Interval = interval
      pinger.Timeout = timeout
      pinger.SetPrivileged(false)
      pinger.Run()
      stats := pinger.Statistics()
      latency = float64(stats.AvgRtt)   
      jitter = float64(stats.StdDevRtt) 
      packetLoss = stats.PacketLoss
      return
  }
  </code></pre>
  
  <p>It was working fine but now it has started throwing :-
  "Error listening for ICMP packets: socket: permission denied" error.
  Anyone knows the reason behind this? Go version I am using is go1.7.4.</p>