54 int s = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP));55 if(s < 0)56 {57 perror("socket");58 return -1;59 }源码是这样的