我想设置“以太类型”的过滤器,它的值等于0xe188。如何编写此过滤器?
我的过滤器是"ether type 0xe188",但它编译时出现错误:
if(pcap_compile(fp, &fcode,"ether proto 0xe188", 1, NetMask) >= 0)
pcap_setfilter(fp, &fcode);发布于 2013-06-30 18:55:30
其语法为ether proto。
https://stackoverflow.com/questions/17389401
复制相似问题