Skip to content

PCAP.IsValidFilter

Andrew Lambert edited this page Nov 26, 2022 · 5 revisions

PCAP.IsValidFilter

Method signature

 Protected Function IsValidFilter(Expression As String, Optional ActiveCapture As PCAP.Capture) As Boolean

Parameters

Name Type Comment
Expression String A high-level filtering expression
ActiveCapture Capture Optional. The capture source. If not specified then a dummy capture using LinkType.NULL will be used.

Return value

Returns True if the Expression is a valid packet filter expression. If this method returns False you may check PCAP.Filter.LastCompileError for details.

Not all legal filter programs are valid for all possible capture sources.

See also

Clone this wiki locally