*servip=',';
}
servip++;
}
//直接拷贝内存到所要到的区域上
memmove(ptr + 5, buff , strlen(buff));
memmove(ptr + 5 + strlen(buff) ,tempbuf,count);
ptr[5 + strlen(buff) + count] = 13;
ptr[5 + strlen(buff) + count+1] = 10;
ch->size() = cc + diff; //修改包长度,以及假包长度
ipheader->ip_len = ipheader->ip_len + diff;
}
b. 协议的修改过程
if (ipheader->ip_p == 6 && ntohs(tcpheader->dest) == 21){}