af.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
27 typedef enum {
28  AF_UNSPEC = 0,
29 #define AF_UNSPEC AF_UNSPEC
31 #define AF_UNIX AF_UNIX
33 #define AF_PACKET AF_PACKET
35 #define AF_INET AF_INET
37 #define AF_INET6 AF_INET6
40 #define AF_NUMOF AF_NUMOF
41 #define AF_MAX AF_NUMOF
42 } unix_af_t;
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
#define AF_UNIX
local to host (pipes, portals) address family.
Definition: af.h:31
#define AF_NUMOF
maximum number of address families on this system (as macro)
Definition: af.h:40
#define AF_INET
internetwork address family: UDP, TCP, etc.
Definition: af.h:35
#define AF_INET6
internetwork address family with IPv6: UDP, TCP, etc.
Definition: af.h:37
#define AF_PACKET
packet family (as macro)
Definition: af.h:33
#define AF_UNSPEC
unspecified address family (as macro)
Definition: af.h:29
unix_af_t
UNIX address family definitions.
Definition: af.h:27