From eebef90592ac66db420e663dd425ceffe88e734f Mon Sep 17 00:00:00 2001 From: Sean McArdle Date: Fri, 19 Jun 2020 21:48:58 -0700 Subject: [PATCH] Set capture duration explicitly. --- MyLLDP/Properties/Resources.Designer.cs | 2 +- MyLLDP/Properties/Resources.resx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MyLLDP/Properties/Resources.Designer.cs b/MyLLDP/Properties/Resources.Designer.cs index f509b8d..caff8d9 100644 --- a/MyLLDP/Properties/Resources.Designer.cs +++ b/MyLLDP/Properties/Resources.Designer.cs @@ -97,7 +97,7 @@ namespace MyLLDP.Properties { } /// - /// Looks up a localized string similar to $Packet = Invoke-DiscoveryProtocolCapture -Type LLDP; + /// Looks up a localized string similar to $Packet = Invoke-DiscoveryProtocolCapture -Type LLDP -Duration 62; ///if ($Packet) { ((Get-DiscoveryProtocolData -Packet $Packet | Out-String) -split "`n" | sort) -join "`n" }. /// internal static string script2 { diff --git a/MyLLDP/Properties/Resources.resx b/MyLLDP/Properties/Resources.resx index 696b27c..d14a491 100644 --- a/MyLLDP/Properties/Resources.resx +++ b/MyLLDP/Properties/Resources.resx @@ -899,7 +899,7 @@ function Export-Pcap { "Starting capture for 60 seconds" - $Packet = Invoke-DiscoveryProtocolCapture -Type LLDP; + $Packet = Invoke-DiscoveryProtocolCapture -Type LLDP -Duration 62; if ($Packet) { ((Get-DiscoveryProtocolData -Packet $Packet | Out-String) -split "`n" | sort) -join "`n" } \ No newline at end of file