af: initial import of global AF_ definition header
This commit is contained in:
parent
85180ca2c9
commit
ecb2bb5c2b
49
sys/include/net/af.h
Normal file
49
sys/include/net/af.h
Normal file
@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU Lesser
|
||||
* General Public License v2.1. See the file LICENSE in the top level
|
||||
* directory for more details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup net_af UNIX address families
|
||||
* @ingroup net
|
||||
* @brief Global UNIX address family definitions
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Global UNIX address family definitions
|
||||
*
|
||||
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
|
||||
*/
|
||||
#ifndef AF_H_
|
||||
#define AF_H_
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
enum {
|
||||
AF_UNSPEC = 0, /**< unspecified address family */
|
||||
#define AF_UNSPEC AF_UNSPEC /**< unspecified address family (as macro) */
|
||||
AF_UNIX, /**< local to host (pipes, portals) address family. */
|
||||
#define AF_UNIX AF_UNIX /**< unspecified address family (as macro) */
|
||||
AF_INET, /**< internetwork address family: UDP, TCP, etc. */
|
||||
#define AF_INET AF_INET /**< internetwork address family: UDP, TCP, etc. (as macro) */
|
||||
AF_INET6, /**< internetwork address family with IPv6: UDP, TCP, etc. */
|
||||
#define AF_INET6 AF_INET6 /**< internetwork address family with IPv6: UDP, TCP, etc.
|
||||
* (as macro) */
|
||||
AF_NUMOF, /**< maximum number of address families on this system */
|
||||
#define AF_NUMOF AF_NUMOF /**< maximum number of address families on this system (as macro) */
|
||||
#define AF_MAX AF_NUMOF /**< alias for @ref AF_NUMOF */
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* AF_H_ */
|
||||
/** @} */
|
||||
Loading…
x
Reference in New Issue
Block a user