NG_ETHER_ECHO(4)
π¦ ng_ether_echo β the manual page, but make it make sense
okay so real talk: this is NG_ETHER_ECHO(4), a Kernel Interfaces Manual page, and it's literally about the netgraph ether_echo node type. buckle up bestie, it's a short one and it's kinda iconic π
β¨ NAME β¨
ng_ether_echo β the netgraph ether_echo node type π
πΈ SYNOPSIS πΈ
#include <netgraph/ng_ether_echo.h>
that's it. that's the whole include. slay π
π₯ DESCRIPTION π₯
so the ether_echo node type does exactly one thing and does it gorgeously: it reflects all data and control messages back to the sender. boomerang energy, honestly πͺ
here's the tea though β it assumes the packet is an ethernet frame, and it does not check. not even a little. no vibe check, no validation, nothing. π and before it echoes anything back, it swaps the source and destination addresses. icon behavior.
it's used for testing and debugging. that's its whole job. main character of the test lab, no cap β¨
π«Ά HOOKS π«Ά
an ether_echo node accepts any request to connect, regardless of the hook name β like, it does not care at all β as long as the name is unique. that's the one and only condition. unique name or gtfo π
π CONTROL MESSAGES π
okay so this node type supports only the generic control messages. any other control messages? they get reflected back to the sender. it's giving "return to sender" and honestly, respect π
π SHUTDOWN π
this node shuts down when either of these happens:
- it receives an
NGM_SHUTDOWNcontrol message π - all hooks have been disconnected π
that's the whole shutdown criteria. no notes. periodt.
π SEE ALSO π
go read them, iykyk π
β HISTORY β
the ng_ether_echo node type was implemented in FreeBSD 8.0. vintage. retro. lowkey a classic π°οΈ
π AUTHORS π
Julian Elischer <julian@FreeBSD.org> β thank you for your service, king π
ok that's the whole page!! every single detail is in there, fr fr β nothing dropped, nothing invented π§ββοΈ
and for the record: this one came from the Debian edition of the manual, dated December 24, 2008 β so yeah, it's been out here being iconic since before some of us could read π bye bestie, go echo some packets π¦
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 1996-1999 Whistle Communications, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms