SHNCPD(8)
π SHNCPD(8) β the manual page, bestie edition π
okay so first things first: this is shncpd, and it lives in section 8 of the System Manager's Manual. buckle up, she's a whole vibe β¨
πΈ NAME πΈ
shncpd β the simple, stupid and slow HNCP daemon π’π
like yes bestie she said it herself: simple, stupid, slow. that's the brand. own it. π
β¨ SYNOPSIS β¨
shncpd option... [ -- ] interface...
so you feed her options, then optionally a --, then your interfaces. that's it. that's the whole entrance exam. π
π DESCRIPTION π
shncpd is a standalone implementation of a useful subset of the Homenet protocol stack. not the whole thing, just the good parts. and honestly? the good parts are giving. π¦
here's what she actually implements, no cap:
- DNCP flooding π
- prefix and address assignment π¬
- prefix delegation (manually configured) π
- a router advertisement server π’
- a DHCPv4 server π§Ύ
big important thing: shncpd does not do routing itself. she outsources. she relies on babeld. teamwork makes the dream work π«Ά
so before you run shncpd, you should start up an instance of babeld with redistribution of protocol 43 enabled. do that first. like, before. β οΈ
π OPTIONS π
-mmulticast-address β pick which link-local multicast address she should use. the default isff02::11. π‘-pport β set the UDP port number. default is8231. π-dlevel β how much debugging info gets dumped to standard error. the useful values are0(which is the default) and2. choose your chaos level, babe. π-Eprefix β announce an externally delegated prefix over both HNCP and the routing protocol. and yes you can repeat this option multiple times, stack 'em up. π-Nprefix β announce a name server over HNCP. also repeatable, multiple times, go off. π-Rβ disable the router advertisement (RA) server. by default, RAs get sent if we're a router. so this is the "actually, no thanks" button. π ββοΈ-Dβ disable the DHCPv4 server. by default the DHCPv4 server is enabled if we win the election, even if we're not acting as a router. election era fr π³οΈ-sscript β run this given script when we learn new DHCP data. she calls it multiple times with the argument"up", then a single time with the argument"down". up up up down, like a little heartbeat π-Linterface β add a leaf interface. π-Ainterface β add an ad-hoc interface. this assigns a/64prefix (/24for IPv4), and runs an RA and DHCPv4 server. this is not likely to be useful, but it's in the spec. rules are rules π-Minterface β add an ad-hoc interface. this one doesn't assign any prefixes, only addresses, and it doesn't run a DHCPv4 server. this is not in the spec, but it's likely to actually be useful. icon behaviour, honestly π
π₯ SIGNALS π₯
SIGUSR1β dump the current state to standard output. a little peek behind the curtain, iykyk π
π SEE ALSO π
babeld(8). your other bestie, the router one. π§
π AUTHOR π
Juliusz Chroboczek. legend. π
ngl bestie, the whole game here is: startbabeldfirst with protocol43redistribution, then letshncpddo her little prefix-and-address thing. she's not routing for you. she's just built different. periodt. π β¨
signing off from page 8 of the System Manager's Manual β that's SHNCPD(8), and there's no date on this one, so we're just out here timeless ππ¦
π¦ where this page comes from
- nixos 26.05: shncpd 2016-06-22
- nixpkgs unstable: shncpd 2016-06-22
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms