port needs to be a short int

pull/5/head
Tom Early 8 years ago
parent a9563d108b
commit 16fc442401

@ -93,7 +93,7 @@ void calcPFCS(unsigned char rawbytes[58])
} }
bool dst_open(const char *ip, const int port) bool dst_open(const char *ip, const short port)
{ {
int reuse = 1; int reuse = 1;
@ -309,7 +309,8 @@ int main(int argc, char *argv[])
time(&tNow); time(&tNow);
CRandom Random; CRandom Random;
if (dst_open(IP_ADDRESS.c_str(), PORT)) short int sport = (short int)PORT;
if (dst_open(IP_ADDRESS.c_str(), sport))
return 1; return 1;
// Read and reformat and write packets // Read and reformat and write packets

Loading…
Cancel
Save

Powered by TurnKey Linux.