Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
Fix build of pcap import test code
Browse files Browse the repository at this point in the history
  • Loading branch information
pstavirs committed Jun 26, 2016
1 parent e3b75d5 commit c548706
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,26 @@ QString kDiffPathDefaultValue;
QString kAwkPathDefaultValue;
#endif

/*
* Dummy Stuff for successful linking
*/
char *version = "";
char *revision = "";
quint64 getDeviceMacAddress(
int /*portId*/,
int /*streamId*/,
int /*frameIndex*/)
{
return 0;
}

quint64 getNeighborMacAddress(
int /*portId*/,
int /*streamId*/,
int /*frameIndex*/)
{
return 0;
}
int usage(int /*argc*/, char* argv[])
{
printf("usage:\n");
Expand All @@ -29,6 +49,7 @@ int usage(int /*argc*/, char* argv[])

return 255;
}
/* End of dummy stuff */

int testImportPcap(int argc, char* argv[])
{
Expand All @@ -45,7 +66,7 @@ int testImportPcap(int argc, char* argv[])
OstProto::StreamConfigList streams;
QString inFile(argv[2]);

isOk = pcapFileFormat.openStreams(inFile, streams, error);
isOk = pcapFileFormat.open(inFile, streams, error);
if (!error.isEmpty())
{
printf("%s: %s\n",
Expand Down

0 comments on commit c548706

Please sign in to comment.