1
.TH nl\-pktloc-lookup 8 "27 October 2010" "libnl"
4
nl\-pktloc\-lookup - Lookup packet location definitions
9
.B nl\-pktloc\-lookup \-\-list
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.
19
.BR \-\^h " or " \-\-help
20
Print help text to console and exit.
22
.BR \-\^v " or " \-\-version
23
Print versioning information to console and exit.
25
.BR \-\^l " or " \-\-list
26
List all packet location definitions.
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.
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.
39
selector=$(nl-pktloc-lookup --u32 22 tcp.sport)
40
tc filter add [...] u32 match $(selector) flowid 1:2
48
Thomas Graf is the original author and current maintainer of libnl and
49
libnl tools. Many people have contributed to it since.