nl-pktloc-lookup.8 1.3 KB

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