~ubuntu-branches/ubuntu/trusty/libnl3/trusty

« back to all changes in this revision

Viewing changes to man/nl-pktloc-lookup.8

  • Committer: Bazaar Package Importer
  • Author(s): Heiko Stuebner
  • Date: 2011-05-21 19:25:13 UTC
  • Revision ID: james.westby@ubuntu.com-20110521192513-1ieyu9w9kym4bt16
Tags: upstream-3.0
ImportĀ upstreamĀ versionĀ 3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH nl\-pktloc-lookup 8 "27 October 2010" "libnl"
 
2
.LO 1
 
3
.SH NAME
 
4
nl\-pktloc\-lookup - Lookup packet location definitions
 
5
.SH SYNOPSIS
 
6
.B nl\-pktloc\-lookup
 
7
.I name
 
8
.br
 
9
.B nl\-pktloc\-lookup \-\-list
 
10
 
 
11
.SH DESCRIPTION
 
12
.PP
 
13
nl\-pktloc\-lookup searches the packet location database for a matching
 
14
entry. It is used to resolve packet location aliases to their definition,
 
15
i.e. alignment, layer, offset, and mask.
 
16
 
 
17
.SH OPTIONS
 
18
.TP
 
19
.BR \-\^h " or " \-\-help
 
20
Print help text to console and exit.
 
21
.TP
 
22
.BR \-\^v " or " \-\-version
 
23
Print versioning information to console and exit.
 
24
.TP
 
25
.BR \-\^l " or " \-\-list
 
26
List all packet location definitions.
 
27
.TP
 
28
.BR \-\-u32=VALUE
 
29
Prints the packet location definition in a special format that is
 
30
understood by iproute2's u32 selector parser. It will output a
 
31
u32 selector which will compare the provided value with the value
 
32
specified by the packet location.
 
33
 
 
34
Please note that due to the limitation of u32, it is not possible
 
35
to use packet locations based on the link layer. nl-pktloc-lookup
 
36
will print an error message in this case.
 
37
 
 
38
Example:
 
39
  selector=$(nl-pktloc-lookup --u32 22 tcp.sport)
 
40
  tc filter add [...] u32 match $(selector) flowid 1:2
 
41
 
 
42
.SH FILES
 
43
.PP
 
44
/etc/libnl/pktloc
 
45
 
 
46
.SH AUTHOR
 
47
.PP
 
48
Thomas Graf is the original author and current maintainer of libnl and
 
49
libnl tools. Many people have contributed to it since.