ng_UI(4)

ng_UI4

Hdlc ui header stripping/prepending netgraph node

Usage

#include <netgraph/ng_UI.h>

Overview

The UI node type has two hooks, upstream and downstream. Packets received on downstream must have 0x03 (indicating unnumbered information) as their first byte; if not the packet is dropped. This byte is then stripped and the remainder of the packet sent out on upstream.

Conversely, packets received on upstream will have a 0x03 byte prepended to them before being forwarded out on the downstream hook.

Hooks

This node type supports the following hooks:

downstream

Downstream connection. Packets on this side of the node have a 0x03 as their first byte.

upstream

Upstream connection. Packets on this side of the node have the initial 0x03 byte stripped off.

Control messages

This node type supports only the generic control messages.

Shutdown

This node shuts down upon receipt of a NGM_SHUTDOWN control message, or when both hooks have been disconnected.

Releases

71 releases since FreeBSD 3.5-RELEASE; the text changed 38 times.

  1. 3.5–3.5.1
  2. 4.1–4.1.1
  3. 4.2–4.4
  4. 4.5–4.11
  5. 5.0–5.2.1
  6. 5.3–6.3
  7. 6.4
  8. 7.0
  9. 7.1
  10. 7.2
  11. 7.3
  12. 7.4
  13. 8.0
  14. 8.1
  15. 8.2
  16. 8.3
  17. 8.4
  18. 9.0
  19. 9.1
  20. 9.2
  21. 9.3
  22. 10.0
  23. 10.1
  24. 10.2
  25. 10.3
  26. 10.4
  27. 11.0
  28. 11.1
  29. 11.2
  30. 11.3
  31. 11.4
  32. 12.0
  33. 12.1
  34. 12.2
  35. 12.3
  36. 12.4
  37. 13.0–13.2
  38. 13.3–15.1
  39. 16.0

History

The ng_UI node type was implemented in FreeBSD 4.0.

Authors

Julian Elischer ⟨[email protected]⟩

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.