{
start();
return 0;
}
toIP=ntohl(inet_addr(argv[2]));
oIP=ntohl(inet_addr(argv[4]));
if (argv[5]!=NULL)
{
if (strcmp(argv[5],"-m")==0)
{
noMACstr=argv[6];
j=0;
for(i=0;i<6;i++)
{
memset(noMAC[i],0,sizeof(noMAC[i]));
memcpy(noMAC[i],noMACstr,2);
noMACstr=noMACstr+3;
}
param6=TRUE;
}
}
printf("\nLibarary Version: %s",PacketGetVersion());
adapterlength=sizeof(adaptername);
if(PacketGetAdapterNames((char *)adaptername,&adapterlength)==FALSE) //得到网卡列表
{
printf("PacketGetAdapterNames Error: %d\n",GetLastError());
return -1;
}
name1=adaptername;
name2=adaptername;
i=0;
while((*name1!='\0') (北联网教程,专业提供视频软件下载)
……