Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想设置过滤器,“以太类型”的值等于0xe188。这个过滤器怎么写?
0xe188
我的过滤器是"ether type 0xe188",但它编译时出现错误:
"ether type 0xe188"
if(pcap_compile(fp, &fcode,"ether proto 0xe188", 1, NetMask) >= 0) pcap_setfilter(fp, &fcode);
其语法是ether proto.
ether proto