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

Commit c548706

Browse files
committed
Fix build of pcap import test code
1 parent e3b75d5 commit c548706

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

test/main.cpp

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,26 @@ QString kDiffPathDefaultValue;
2020
QString kAwkPathDefaultValue;
2121
#endif
2222

23+
/*
24+
* Dummy Stuff for successful linking
25+
*/
26+
char *version = "";
27+
char *revision = "";
28+
quint64 getDeviceMacAddress(
29+
int /*portId*/,
30+
int /*streamId*/,
31+
int /*frameIndex*/)
32+
{
33+
return 0;
34+
}
35+
36+
quint64 getNeighborMacAddress(
37+
int /*portId*/,
38+
int /*streamId*/,
39+
int /*frameIndex*/)
40+
{
41+
return 0;
42+
}
2343
int usage(int /*argc*/, char* argv[])
2444
{
2545
printf("usage:\n");
@@ -29,6 +49,7 @@ int usage(int /*argc*/, char* argv[])
2949

3050
return 255;
3151
}
52+
/* End of dummy stuff */
3253

3354
int testImportPcap(int argc, char* argv[])
3455
{
@@ -45,7 +66,7 @@ int testImportPcap(int argc, char* argv[])
4566
OstProto::StreamConfigList streams;
4667
QString inFile(argv[2]);
4768

48-
isOk = pcapFileFormat.openStreams(inFile, streams, error);
69+
isOk = pcapFileFormat.open(inFile, streams, error);
4970
if (!error.isEmpty())
5071
{
5172
printf("%s: %s\n",

0 commit comments

Comments
 (0)