I wrote a C program that sniffs a network interface (using libpcap) and compiled it using the SDK.
When I transferred the .ipk to the OpenWrt router, I noticed I was not able to run the program without root (which I was expecting).
So, I tried to execute sudo setcap cap_net_raw,cap_net_admin=eip /bin/pcap_retrans in the router (pcap_retrans is my C program).
However, it returned setcap: command not found. So I installed libcap, which I thought would also install the setcap command. It didn't.
I executed make package/libcap/compile CONFIG_PACKAGE=libcap-bin -j1 V=s as you said, and a libcap_2.25-2_x86_64.ipk was created in the SDK. I thought a libcap-bin would be created, which was not the case.
However, when I transfer libcap_2.25 ipk to the router and install it, the setcap command is still not recognized .
Am I transferring the right file?