ATALK_ATON(3)
π¦ atalk_aton β AppleTalk address parsing (that's the NAME bestie) π¦
okay so real quick, this page is from the Netatalk AFP Fileserver Manual, and it's literally all about turning cute little AppleTalk addresses into something the system calls can actually eat. buckle up π
β¨ SYNOPSIS β¨
like, here's the whole vibe, verbatim:
#include <sys/types.h>
#include <netatalk/at.h>
atalk_aton(cp, ata);
char *cp;
struct at_addr *ata;
she's not complicated, she's just iconic π
πΈ DESCRIPTION πΈ
so the way that atalk_aton() works is: you hand it an ASCII representation of an AppleTalk address, and it converts that into a format appropriate for system calls. glow-up complete β¨
acceptable ASCII representations include both hex and base 10, in triples or doubles. no cap.
for instance (and this is the part you gotta memorize for the vibe check), the address 0x1f6b.77 has a network part of 8043 and a node part of 119. π
and the same address could also be written as:
8043.11931.107.1190x1f.6b.77
any of those, all the same address, she contains multitudes fr fr π
oh and one more lil detail: if the address is in hex and the first digit is one of A-F, then a leading 0x is redundant. so you can just... skip it. lowkey freeing π«Ά
π SEE ALSO π
atalk(4)β go read her too, she's part of the lore
π AUTHOR π
Contributors to the Netatalk Project β the collective, the group chat, the main characters π
ok that's the whole page bestie, you're so smart, go parse some addresses π
Netatalk 4.4.3 β that's the version, from the lovely folks who brought you ATALK_ATON(3), mwah π π§
π¦ where this page comes from
- epel 10: netatalk-devel 5:4.4.3-1.el10_3 Β· GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+ AND LicenseRef-Callaway-BSD AND FSFUL AND LicenseRef-Callaway-MIT
- fedora 43: netatalk-devel 5:4.4.3-1.fc43 Β· GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+ AND LicenseRef-Callaway-BSD AND FSFUL AND LicenseRef-Callaway-MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms