File: Filter.html

package info (click to toggle)
python-libtrace 1.6%2Bgit20161027-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,124 kB
  • ctags: 1,357
  • sloc: ansic: 6,890; python: 3,228; makefile: 70; sh: 49
file content (33 lines) | stat: -rw-r--r-- 1,548 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html><head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>BPF Filters</title>

<meta name="generator" content="KompoZer" />
<link rel="stylesheet" type="text/css" href="plt-doc.css" /></head><body>
<h2>BPF Filters</h2>
<h3>Class Filter</h3><span style="font-weight: bold;">Allow you to
create BPF filters. &nbsp;These may be applied to a trace (so as to select a subset of that trace's packets) using <span style="font-style: italic;">trace.conf_filter(),</span> or to an individual packet using <span style="font-style: italic;">packet.apply_filter().</span><br style="font-style: italic;" /><br /></span>

<table class="indent1"><tbody><tr><td class="heading" colspan="2">Class Methods</td>
</tr><tr>
<td class="name methodwidth"><strong>filter()</strong><br />
</td>
<td class="name descriptionwidth"><em>filter(filterString) -&gt; aFilter</em></td>
</tr>
<tr>
<td><br />
</td>
<td class="description">Creates a BPF filter that wil select packets
  using the&nbsp; <span style="font-style: italic;">tcpdump-style</span> 
  filter experssion given in <span style="font-style: italic;">
  filterString</span>. &nbsp;For example, &nbsp;'udp port 53' selects DNS
  packets. &nbsp;See the <span style="font-style: italic;">tcpdump</span>
  man page for the filter expression syntax.
  <span style="font-style: italic;" /> 
</td>
</tr></tbody>
</table>

<br />Nevil Brownlee<br />Mon, 27 Jan 14 (NZDT)
</body></html>