I am trying to calculate n/w interface speed in Golang .

I am using CGO to Calculate But In some device it is failing.

My source code Link
https://play.golang.org/p/3wvLzfPrIV  

It is falling 

rc = ioctl(sock, SIOCETHTOOL, &ifr);

In above line it is falling. I don't have any clue 

I tried using Python Code Also 
tried to execute exec.Command("python",filename,interfacename)
But still It is also falling at same place 

Python code link is https://play.golang.org/p/bQrUMTHwBg


Please help

Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to