lens);  uh->len = htons(lens);  eh->len = uh->len;  //printf("\n总大小:%d\n,待发送:%d\n", sizeof(packet), sizeof(ether_header)+sizeof(x000_header)+lens);  //只发送packet构造出来的那部分,多余部分不能发送  if (pcap_sendpacket(adhandle, packet, sizeof(ether_header)+sizeof(x000_header)+lens) != 0){//不加上-0   fprintf(stderr, "\nError sending the packet: %s\n", pcap_geterr(adhandle));   return;  } } void SendResponseMD0(pcap_t *adhandle, const  u_char *pkt_data)