address_families(7)
๐ address_families(7) ๐
okay bestie, so this is the Miscellaneous Information Manual page for address_families โ socket address families, a.k.a. domains โ and it's literally the master list of every communication domain your kernel might vibe with. ๐
โจ NAME โจ
address_families โ socket address families (domains) ๐ฆ
โจ SYNOPSIS โจ
#include <sys/types.h> /* See NOTES */
#include <sys/socket.h>
int socket(int domain, int type, int protocol);
โจ DESCRIPTION โจ
so the domain argument of socket(2)? that's the thing that picks your communication domain, and it decides which protocol family gets used for the chatting. ๐ธ these families live in <sys/socket.h>. the formats the Linux kernel currently understands include, in this exact order:
AF_UNIX,AF_LOCALโ local communication. more deets, go readunix(7). ๐AF_INETโ IPv4 internet protocols. for further information, seeip(7).AF_AX25โ Amateur radio AX.25 protocol. for further information, seeax25(4).AF_IPXโ IPX - Novell protocols.AF_APPLETALKโ AppleTalk. for further information, seeddp(7).AF_NETROMโ AX.25 packet layer protocol. for further information, seenetrom(4), The Packet Radio Protocols and Linux and the AX.25, NET/ROM, and ROSE network programming chapters of the Linux Amateur Radio AX.25 HOWTO. ๐ปAF_BRIDGEโ literally can't be used for creating sockets; mostly used for bridge links inrtnetlink(7)protocol commands. so like, look but don't touch. ๐AF_ATMPVCโ access to raw ATM Permanent Virtual Circuits (PVCs). for further information, see the ATM on Linux HOWTO.AF_X25โ ITU-T X.25 / ISO/IEC 8208 protocol. for further information, seex25(7).AF_INET6โ IPv6 internet protocols. for further information, seeipv6(7).AF_ROSEโ RATS (Radio Amateur Telecommunications Society). Open Systems environment (ROSE) AX.25 packet layer protocol. for further information, see the resources listed forAF_NETROM.AF_DECnetโ support was removed in Linux 6.1. it's gone bestie, rest in peace. ๐AF_NETBEUIโ reserved for "802.2LLC project"; never used. not once. not ever.AF_SECURITYโ this was a short-lived (between Linux 2.1.30 and 2.1.99pre2) protocol family for firewall upcalls. blink and you missed it.AF_KEYโ key management protocol, originally developed for usage with IPsec (since Linux 2.1.38). this has no relation tokeyctl(2)and the in-kernel key storage facility. see RFC 2367 PF_KEY Key Management API, Version 2 for details. ๐AF_NETLINKโ kernel user interface device. for further information, seenetlink(7).AF_PACKETโ low-level packet interface. for further information, seepacket(7).AF_ECONETโ Acorn Econet protocol (removed in Linux 3.5). see the Econet documentation for details.AF_ATMSVCโ access to ATM Switched Virtual Circuits (SVCs). see the ATM on Linux HOWTO for details.AF_RDSโ Reliable Datagram Sockets (RDS) protocol (since Linux 2.6.30). RDS over RDMA has no relation toAF_SMCorAF_XDP. for further information, seerds(7),rds-rdma(7), andDocumentation/networking/rds.rstin the Linux kernel source tree.AF_IRDAโ socket interface over IrDA (moved to staging in Linux 4.14, removed in Linux 4.17). for further information, seeirda(7).AF_PPPOXโ generic PPP transport layer, for setting up L2 tunnels (L2TP and PPPoE). seeDocumentation/networking/l2tp.rstin the Linux kernel source tree for details.AF_WANPIPEโ legacy protocol for wide area network (WAN) connectivity that was used by Sangoma WAN cards (called "WANPIPE"); removed in Linux 2.6.21. ๐AF_LLCโ Logical link control (IEEE 802.2 LLC) protocol, upper part of data link layer of ISO/OSI networking protocol stack (since Linux 2.4); has no relation toAF_PACKET. see chapter 13.5.3. Logical Link Control in Understanding Linux Kernel Internals (O'Reilly Media, 2006) and IEEE Standards for Local Area Networks: Logical Link Control (The Institute of Electronics and Electronics Engineers, Inc., New York, New York, 1985) for details. see also some historical notes regarding its development.AF_IBโ InfiniBand native addressing (since Linux 3.11).AF_MPLSโ Multiprotocol Label Switching (since Linux 4.1); mostly used for configuring MPLS routing vianetlink(7), as it doesn't expose ability to create sockets to user space.AF_CANโ Controller Area Network automotive bus protocol (since Linux 2.6.25). seeDocumentation/networking/can.rstin the Linux kernel source tree for details. ๐AF_TIPCโ TIPC, "cluster domain sockets" protocol (since Linux 2.6.16). see TIPC Programmer's Guide and the protocol description for details.AF_BLUETOOTHโ Bluetooth low-level socket protocol (since Linux 3.11). see Bluetooth Management API overview and An Introduction to Bluetooth Programming by Albert Huang for details. ๐ฆโจAF_IUCVโ IUCV (inter-user communication vehicle) z/VM protocol for hypervisor-guest interaction (since Linux 2.6.21); has no relation toAF_VSOCKand/orAF_SMC. see IUCV protocol overview for details.AF_RXRPCโ Rx, Andrew File System remote procedure call protocol (since Linux 2.6.22). seeDocumentation/networking/rxrpc.rstin the Linux kernel source tree for details.AF_ISDNโ new "modular ISDN" driver interface protocol (since Linux 2.6.27). see the mISDN wiki for details.AF_PHONETโ Nokia cellular modem IPC/RPC interface (since Linux 2.6.31). seeDocumentation/networking/phonet.rstin the Linux kernel source tree for details.AF_IEEE802154โ IEEE 802.15.4 WPAN (wireless personal area network) raw packet protocol (since Linux 2.6.31). seeDocumentation/networking/ieee802154.rstin the Linux kernel source tree for details.AF_CAIFโ Ericsson's Communication CPU to Application CPU interface (CAIF) protocol (since Linux 2.6.36). seeDocumentation/networking/caif/linux_caif.rstin the Linux kernel source tree for details.AF_ALGโ interface to kernel crypto API (since Linux 2.6.38). seeDocumentation/crypto/userspace-if.rstin the Linux kernel source tree for details.AF_VSOCKโ VMWare VSockets protocol for hypervisor-guest interaction (since Linux 3.9); has no relation toAF_IUCVandAF_SMC. for further information, seevsock(7).AF_KCMโ KCM (kernel connection multiplexer) interface (since Linux 4.6). seeDocumentation/networking/kcm.rstin the Linux kernel source tree for details.AF_QIPCRTRโ Qualcomm IPC router interface protocol (since Linux 4.7).AF_SMCโ SMC-R (shared memory communications over RDMA) protocol (since Linux 4.11), and SMC-D (shared memory communications, direct memory access) protocol for intra-node z/VM quest interaction (since Linux 4.19); has no relation toAF_RDS,AF_IUCVorAF_VSOCK. see RFC 7609 IBM's Shared Memory Communications over RDMA (SMC-R) Protocol for details regarding SMC-R. see SMC-D Reference Information for details regarding SMC-D.AF_XDPโ XDP (express data path) interface (since Linux 4.18). seeDocumentation/networking/af_xdp.rstin the Linux kernel source tree for details.AF_MCTPโ MCTP (Management Component Transport Protocol) interface (since Linux 5.15), as defined by the DMTF specification DSP0236. for further information, seemctp(7).
โจ SEE ALSO โจ
and that's the whole vibe check, bestie โ go pick a domain and slay ๐ this was Linux man-pages 6.20, dated 2026-02-08, from your girl address_families(7). periodt. ๐
๐โญ
๐ฆ where this page comes from
- arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- ๐ the page's license: Linux-man-pages-copyleft
- Copyright 2018, Eugene Syromyatnikov <evgsyr@gmail.com>
- Copyright 2018, Michael Kerrisk <mtk.manpages@gmail.com>
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms