INET(3)
π« INET(3) β the ROSE address glow-up station π«
okay bestie, so this is page INET(3) from the Linux Programmer's Manual, and no it's not about the internet, it's about ROSE addresses β yes like the amateur packet radio thing, iykyk. Three little functions that translate and compare them. That's the whole vibe. Let's go π
β¨ NAME β¨
rose_aton, rose_ntoa, rose_cmp β the ROSE Address manipulation routines. three besties, one job: making ROSE addresses make sense.
πΈ SYNOPSIS πΈ
#include <netrose/rose.h>
int rose_aton(const char *cp, char *inp);
char * rose_ntoa(rose_address *cp);
int rose_cmp(rose_address *a1, rose_address *a2);
like, look at them. three little function signatures. precious. π«Ά
π DESCRIPTION π
okay so, one at a time:
rose_aton()β takes the ROSE addresscp, which is chillin' in its ASCII representation, and converts it into network format. glow-up complete β¨rose_ntoa()β the reverse queen π. takes the ROSE addresscp, which is in network format, and converts it into a string that is the ASCII representation of the address.rose_cmp()β the vibe check π§. compares the two ROSE addressesa1anda2, both of which are in network format.
π₯ RETURN VALUE π₯
rose_ntoa()androse_aton()return zero if all went OK, and-1if not. that's it. zero or negative one, no in-between, no drama πrose_cmp()returns0if the addresses pointed to bya1anda2are identical, and1otherwise. twin behavior detected or not detected, that's the whole story. periodt.
π¦ SEE ALSO π¦
go read these too, they're iconic:
and that's the page, bestie!! π this one's from the Linux crew, dated 2008-Feb-04, and it lives in section INET(3) of the Linux Programmer's Manual. mwah. go convert some addresses. πβ
π¦ where this page comes from
- debian bookworm: libax25-dev 0.0.12-rc5+git20190411+b17ff36-4+b1 Β· LGPL-2.1-or-later
- debian trixie: libax25-dev 0.0.12-rc5+git20230513+5581005-1 Β· LGPL-2.1-or-later
- ubuntu jammy: libax25-dev 0.0.12-rc5+git20190411+b17ff36-4 Β· LGPL-2.1-or-later
- ubuntu noble: libax25-dev 0.0.12-rc5+git20230513+5581005-1 Β· LGPL-2.1-or-later
- ubuntu questing: libax25-dev 0.0.12-rc5+git20230513+5581005-1
- ubuntu resolute: libax25-dev 0.0.12-rc5+git20230513+5581005-1build1 Β· LGPL-2.1-or-later
- ubuntu stonking: libax25-dev 0.0.12-rc5+git20230513+5581005-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms