Capture ethernet packet with libpcap

Hi. I’m using jetson tx1 for a while but I can’t get the raw ethernet packets using libpcap. in fact data of some packets are lost but with wireshark it seemed that jetson tx1 takes all of packets. does anyone have experience on this issue.