You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PcapDotNet/src/PcapDotNet.Core/BerkeleyPacketFilter.cs
+1-1
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ public void Dispose()
72
72
73
73
/// <summary>
74
74
/// Returns if a given filter applies to an offline packet.
75
-
/// This method is used to apply a filter to a packet that is currently in memory.
75
+
/// This method is used to apply a filter to a packet that is currently in memory.
76
76
/// This process does not need to open an adapter; we need just to create the proper filter (by settings parameters like the snapshot length, or the link-layer type) by means of the Pcap.
77
77
/// The current API of libpcap does not allow to receive a packet and to filter the packet after it has been received. However, this can be useful in case you want to filter packets in the application, instead of into the receiving process. This function allows you to do the job.
/// pcap_activate() is used to activate a packet capture handle to look at packets on the network, with the options that were set on the handle being in effect.
702
+
/// pcap_activate() is used to activate a packet capture handle to look at packets on the network, with the options that were set on the handle being in effect.
703
703
/// </summary>
704
704
/// <returns>Returns 0 on success without warnings, a non-zero positive value on success with warnings, and a negative value on error. A non-zero return value indicates what warning or error condition occurred.</returns>
@@ -230,12 +230,12 @@ public void SetKernelMinimumBytesToCopy(int size)
230
230
231
231
/// <summary>
232
232
/// Define a sampling method for packet capture.
233
-
/// This function allows applying a sampling method to the packet capture process.
233
+
/// This function allows applying a sampling method to the packet capture process.
234
234
/// The method will be applied as soon as the capture starts.
235
235
/// </summary>
236
236
/// <remarks>
237
237
/// Warning: Sampling parameters cannot be changed when a capture is active. These parameters must be applied before starting the capture. If they are applied when the capture is in progress, the new settings are ignored.
238
-
/// Warning: Sampling works only when capturing data on Win32 or reading from a file. It has not been implemented on other platforms. Sampling works on remote machines provided that the probe (i.e. the capturing device) is a Win32 workstation.
238
+
/// Warning: Sampling works only when capturing data on Win32 or reading from a file. It has not been implemented on other platforms. Sampling works on remote machines provided that the probe (i.e. the capturing device) is a Win32 workstation.
239
239
/// </remarks>
240
240
/// <param name="method">The sampling method to be applied</param>
241
241
publicvoidSetSamplingMethod(SamplingMethodmethod)
@@ -290,7 +290,7 @@ public PacketCommunicatorReceiveResult ReceivePacket(out Packet packet)
Copy file name to clipboardExpand all lines: PcapDotNet/src/PcapDotNet.Core/PacketCommunicator/SamplingMethod.cs
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
usingSystem;
1
+
usingSystem;
2
2
3
3
namespacePcapDotNet.Core
4
4
{
@@ -31,7 +31,7 @@ public abstract class SamplingMethod
31
31
publicconstintPCAP_SAMP_FIRST_AFTER_N_MS=2;
32
32
33
33
internalabstractintMethod{get;}
34
-
34
+
35
35
internalabstractintValue{get;}
36
36
}
37
37
@@ -40,7 +40,7 @@ public abstract class SamplingMethod
40
40
/// In other words, if the interval is set to 10 milliseconds, the first packet is returned to the caller; the next returned one will be the first packet that arrives when 10ms have elapsed.
Copy file name to clipboardExpand all lines: PcapDotNet/src/PcapDotNet.Core/PacketDevice/OfflinePacketDevice.cs
+4-4
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ namespace PcapDotNet.Core
11
11
publicsealedclassOfflinePacketDevice:PacketDevice
12
12
{
13
13
privatereadonlystring_fileName;
14
-
14
+
15
15
/// <summary>
16
16
/// Creates a device object from a pcap file.
17
17
/// The device can opened to read packets from.
@@ -39,7 +39,7 @@ public override string Description
39
39
}
40
40
41
41
/// <summary>
42
-
/// Interface flags. Currently the only possible flag is Loopback, that is set if the interface is a loopback interface.
42
+
/// Interface flags. Currently the only possible flag is Loopback, that is set if the interface is a loopback interface.
43
43
/// </summary>
44
44
publicoverrideDeviceAttributesAttributes
45
45
{
@@ -55,7 +55,7 @@ public override ReadOnlyCollection<DeviceAddress> Addresses
55
55
}
56
56
57
57
/// <summary>
58
-
/// Open a generic source in order to capture / send (WinPcap only) traffic.
58
+
/// Open a generic source in order to capture / send (WinPcap only) traffic.
59
59
/// </summary>
60
60
/// <param name="snapshotLength">length of the packet that has to be retained. For each packet received by the filter, only the first 'snapshotLength' bytes are stored in the buffer and passed to the user application. For instance, snaplen equal to 100 means that only the first 100 bytes of each packet are stored.</param>
61
61
/// <param name="attributes">Keeps several flags that can be needed for capturing packets.</param>
@@ -65,5 +65,5 @@ public override PacketCommunicator Open(int snapshotLength, PacketDeviceOpenAttr
0 commit comments