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