First attempt on writing one value on cap.

This commit is contained in:
Eugene Wang
2021-04-25 20:54:25 -04:00
parent f91620cdf5
commit cc58a6e093
5 changed files with 166 additions and 22 deletions

View File

@@ -83,7 +83,18 @@ namespace Net5Console
}
Console.WriteLine();
var sts = session.StartCapture(false);
var sts = caps.CAP_XFERCOUNT.SetOrConstraint(MSG.SET, 2);
if (sts == STS.SUCCESS)
{
Console.WriteLine("Successfully set xfercount to 2.");
}
else
{
Console.WriteLine($"Failed set xfercount: {sts}.");
}
Console.WriteLine();
sts = session.StartCapture(false);
if (sts == STS.SUCCESS)
{
Console.Error.WriteLine("Waiting for capture to complete.");