Closed richay03 closed 6 months ago
I am assuming you run this program as sudo
Then I am getting go command not found.
On Thu, 4 Apr, 2024, 2:56 pm tarunmangla, @.***> wrote:
I am assuming you run this program as sudo
— Reply to this email directly, view it on GitHub https://github.com/manshi137/COD891/issues/10#issuecomment-2036662364, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZBMQCHBA2N7CQLI4UOMCVTY3UMEXAVCNFSM6AAAAABFW2AKYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZWGY3DEMZWGQ . You are receiving this because you authored the thread.Message ID: @.***>
Thank you sir, it is resolved now.
Sir, I have tried running the code in linux on VM machine and on Lab computer but on both the computers I am getting the same error:
dell@dell-OptiPlex-3050:~/Documents/COD891/COD891$ CGO_ENABLED=1 go run ping_linux.go util.go speedtest start at: 2024-04-04 14:02:39.387164296 +0530 IST m=+0.004088007 Running ndt7-speedtest... Default network interface: Name: wlx00ad2449a6ea 2024/04/04 14:02:39 wlx00ad2449a6ea: You don't have permission to capture on that device (socket: Operation not permitted) exit status 1
this error is from the following statement using which we are tryping to capture the traffic handle, err := pcap.OpenLive(iface.Name, snaplen, false, pcap.BlockForever)
Kindly help as I have tried the following steps also but these are also not working
sudo groupadd pcap sudo usermod -a -G pcap $USER sudo chgrp pcap /usr/sbin/tcpdump sudo chmod 750 /usr/sbin/tcpdump sudo setcap cap_net_raw,cap_net_admin=eip /usr/sbin/tcpdump
@tarunmangla