1nl-pktloc-lookup(8)         System Manager's Manual        nl-pktloc-lookup(8)
2
3
4

NAME

6       nl-pktloc-lookup - Lookup packet location definitions
7

SYNOPSIS

9       nl-pktloc-lookup name
10       nl-pktloc-lookup --list
11
12

DESCRIPTION

14       nl-pktloc-lookup  searches  the packet location database for a matching
15       entry. It is used to resolve packet location aliases to  their  defini‐
16       tion, i.e. alignment, layer, offset, and mask.
17
18

OPTIONS

20       -h or --help
21              Print help text to console and exit.
22
23       -v or --version
24              Print versioning information to console and exit.
25
26       -l or --list
27              List all packet location definitions.
28
29       --u32=VALUE
30              Prints  the  packet location definition in a special format that
31              is understood by iproute2's u32 selector parser. It will  output
32              a  u32  selector  which will compare the provided value with the
33              value specified by the packet location.
34
35              Please note that due to the limitation of u32, it is not  possi‐
36              ble  to use packet locations based on the link layer. nl-pktloc-
37              lookup will print an error message in this case.
38
39              Example:
40                selector=$(nl-pktloc-lookup --u32 22 tcp.sport)
41                tc filter add [...] u32 match $(selector) flowid 1:2
42
43

FILES

45       /etc/libnl/pktloc
46
47

AUTHOR

49       Thomas Graf is the original author and current maintainer of libnl  and
50       libnl tools. Many people have contributed to it since.
51
52
53
54libnl                           27 October 2010            nl-pktloc-lookup(8)
Impressum