关于error: ‘htons’ was not declared in this scope
环境:ubuntu10.10程序目的:利用原始套接字PF_PACKET和SOCK_RAW,获取IP等数据socket(PF_PACKET,SOCK_RAW,htons(ETH_P_IP))问题:在编译时出现 error: ‘htons’ was not declared in this scope的错误查了下有人说 htons包含在netinet/in.h文件中,1 加#i
原创
2012-12-11 10:45:12 ·
5318 阅读 ·
0 评论