doc.go 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. // Package netlink provides low-level access to Linux netlink sockets
  2. // (AF_NETLINK).
  3. //
  4. // If you have any questions or you'd like some guidance, please join us on
  5. // Gophers Slack (https://invite.slack.golangbridge.org) in the #networking
  6. // channel!
  7. //
  8. // # Network namespaces
  9. //
  10. // This package is aware of Linux network namespaces, and can enter different
  11. // network namespaces either implicitly or explicitly, depending on
  12. // configuration. The Config structure passed to Dial to create a Conn controls
  13. // these behaviors. See the documentation of Config.NetNS for details.
  14. //
  15. // # Debugging
  16. //
  17. // This package supports rudimentary netlink connection debugging support. To
  18. // enable this, run your binary with the NLDEBUG environment variable set.
  19. // Debugging information will be output to stderr with a prefix of "nl:".
  20. //
  21. // To use the debugging defaults, use:
  22. //
  23. // $ NLDEBUG=1 ./nlctl
  24. //
  25. // To configure individual aspects of the debugger, pass key/value options such
  26. // as:
  27. //
  28. // $ NLDEBUG=level=1 ./nlctl
  29. //
  30. // Available key/value debugger options include:
  31. //
  32. // level=N: specify the debugging level (only "1" is currently supported)
  33. package netlink