Blame view

RIOT/sys/include/net/af.h 1.71 KB
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
  /*
   * 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 NET_AF_H
  #define NET_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_PACKET,                  /**< packet family */
  #define AF_PACKET   AF_PACKET   /**< packet 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 /* NET_AF_H */
  /** @} */