读书人

哪位大哥能告诉小弟我, 以太头(struct

发布时间: 2012-02-25 10:01:49 作者: rapoo

哪位大哥能告诉我, 以太头(struct ether_header)的内容??
struct ether_header 里面有哪些成员?
还有!
怎样取出它的MAC地址 与 程序中给的MAC地址 进行比较呢??
万分感谢!!!!

[解决办法]
u_char* mac_string;
u_short ether_type;
mac_string=psEtherHeader-> ether_shost;

if(pchGetMac == mac_string )
return 1;
else
return 0;

读书人网 >C++

热点推荐