1. linux的mac地址怎么修改!希望详细一些
ifdown eth0 停止网卡抄
ifconfig eth0 hw ether aabbcc112233(mac地址袭)
ifup eth0 启动网卡
如果报错说mac地址不一致,检查配置文件中是否有mac地址设置,删除之
配置文件:/etc/sysconfig/network-scripts/ifcfg-eth0
2. htons和ETH_P_IP是在那个头文件里定义的
Linux/include/linux/byteorder/generic.h
Linux/include/uapi/linux/if_ether.h
在http://lxr.free-electrons.com/ident 里可以查到