Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
tipc_config.h File Reference
#include <linux/types.h>
#include <linux/string.h>
#include <asm/byteorder.h>
#include <arpa/inet.h>

Go to the source code of this file.

Data Structures

struct  tipc_node_info
 
struct  tipc_link_info
 
struct  tipc_bearer_config
 
struct  tipc_link_config
 
struct  tipc_name_table_query
 
struct  tlv_desc
 
struct  tlv_list_desc
 
struct  tipc_genlmsghdr
 
struct  tipc_cfg_msg_hdr
 

Macros

#define TIPC_CMD_NOOP   0x0000 /* tx none, rx none */
 
#define TIPC_CMD_GET_NODES   0x0001 /* tx net_addr, rx node_info(s) */
 
#define TIPC_CMD_GET_MEDIA_NAMES   0x0002 /* tx none, rx media_name(s) */
 
#define TIPC_CMD_GET_BEARER_NAMES   0x0003 /* tx none, rx bearer_name(s) */
 
#define TIPC_CMD_GET_LINKS   0x0004 /* tx net_addr, rx link_info(s) */
 
#define TIPC_CMD_SHOW_NAME_TABLE   0x0005 /* tx name_tbl_query, rx ultra_string */
 
#define TIPC_CMD_SHOW_PORTS   0x0006 /* tx none, rx ultra_string */
 
#define TIPC_CMD_SHOW_LINK_STATS   0x000B /* tx link_name, rx ultra_string */
 
#define TIPC_CMD_SHOW_STATS   0x000F /* tx unsigned, rx ultra_string */
 
#define TIPC_CMD_GET_REMOTE_MNG   0x4003 /* tx none, rx unsigned */
 
#define TIPC_CMD_GET_MAX_PORTS   0x4004 /* tx none, rx unsigned */
 
#define TIPC_CMD_GET_MAX_PUBL   0x4005 /* obsoleted */
 
#define TIPC_CMD_GET_MAX_SUBSCR   0x4006 /* obsoleted */
 
#define TIPC_CMD_GET_MAX_ZONES   0x4007 /* obsoleted */
 
#define TIPC_CMD_GET_MAX_CLUSTERS   0x4008 /* obsoleted */
 
#define TIPC_CMD_GET_MAX_NODES   0x4009 /* obsoleted */
 
#define TIPC_CMD_GET_MAX_SLAVES   0x400A /* obsoleted */
 
#define TIPC_CMD_GET_NETID   0x400B /* tx none, rx unsigned */
 
#define TIPC_CMD_ENABLE_BEARER   0x4101 /* tx bearer_config, rx none */
 
#define TIPC_CMD_DISABLE_BEARER   0x4102 /* tx bearer_name, rx none */
 
#define TIPC_CMD_SET_LINK_TOL   0x4107 /* tx link_config, rx none */
 
#define TIPC_CMD_SET_LINK_PRI   0x4108 /* tx link_config, rx none */
 
#define TIPC_CMD_SET_LINK_WINDOW   0x4109 /* tx link_config, rx none */
 
#define TIPC_CMD_SET_LOG_SIZE   0x410A /* obsoleted */
 
#define TIPC_CMD_DUMP_LOG   0x410B /* obsoleted */
 
#define TIPC_CMD_RESET_LINK_STATS   0x410C /* tx link_name, rx none */
 
#define TIPC_CMD_SET_NODE_ADDR   0x8001 /* tx net_addr, rx none */
 
#define TIPC_CMD_SET_REMOTE_MNG   0x8003 /* tx unsigned, rx none */
 
#define TIPC_CMD_SET_MAX_PORTS   0x8004 /* tx unsigned, rx none */
 
#define TIPC_CMD_SET_MAX_PUBL   0x8005 /* obsoleted */
 
#define TIPC_CMD_SET_MAX_SUBSCR   0x8006 /* obsoleted */
 
#define TIPC_CMD_SET_MAX_ZONES   0x8007 /* obsoleted */
 
#define TIPC_CMD_SET_MAX_CLUSTERS   0x8008 /* obsoleted */
 
#define TIPC_CMD_SET_MAX_NODES   0x8009 /* obsoleted */
 
#define TIPC_CMD_SET_MAX_SLAVES   0x800A /* obsoleted */
 
#define TIPC_CMD_SET_NETID   0x800B /* tx unsigned, rx none */
 
#define TIPC_CMD_NOT_NET_ADMIN   0xC001 /* tx none, rx none */
 
#define TIPC_TLV_NONE   0 /* no TLV present */
 
#define TIPC_TLV_VOID   1 /* empty TLV (0 data bytes)*/
 
#define TIPC_TLV_UNSIGNED   2 /* 32-bit integer */
 
#define TIPC_TLV_STRING   3 /* char[128] (max) */
 
#define TIPC_TLV_LARGE_STRING   4 /* char[2048] (max) */
 
#define TIPC_TLV_ULTRA_STRING   5 /* char[32768] (max) */
 
#define TIPC_TLV_ERROR_STRING   16 /* char[128] containing "error code" */
 
#define TIPC_TLV_NET_ADDR   17 /* 32-bit integer denoting <Z.C.N> */
 
#define TIPC_TLV_MEDIA_NAME   18 /* char[TIPC_MAX_MEDIA_NAME] */
 
#define TIPC_TLV_BEARER_NAME   19 /* char[TIPC_MAX_BEARER_NAME] */
 
#define TIPC_TLV_LINK_NAME   20 /* char[TIPC_MAX_LINK_NAME] */
 
#define TIPC_TLV_NODE_INFO   21 /* struct tipc_node_info */
 
#define TIPC_TLV_LINK_INFO   22 /* struct tipc_link_info */
 
#define TIPC_TLV_BEARER_CONFIG   23 /* struct tipc_bearer_config */
 
#define TIPC_TLV_LINK_CONFIG   24 /* struct tipc_link_config */
 
#define TIPC_TLV_NAME_TBL_QUERY   25 /* struct tipc_name_table_query */
 
#define TIPC_TLV_PORT_REF   26 /* 32-bit port reference */
 
#define TIPC_MAX_MEDIA_NAME   16 /* format = media */
 
#define TIPC_MAX_IF_NAME   16 /* format = interface */
 
#define TIPC_MAX_BEARER_NAME   32 /* format = media:interface */
 
#define TIPC_MAX_LINK_NAME   60 /* format = Z.C.N:interface-Z.C.N:interface */
 
#define TIPC_MIN_LINK_PRI   0
 
#define TIPC_DEF_LINK_PRI   10
 
#define TIPC_MAX_LINK_PRI   31
 
#define TIPC_MEDIA_LINK_PRI   (TIPC_MAX_LINK_PRI + 1)
 
#define TIPC_MIN_LINK_TOL   50
 
#define TIPC_DEF_LINK_TOL   1500
 
#define TIPC_MAX_LINK_TOL   30000
 
#define TIPC_MIN_LINK_WIN   16
 
#define TIPC_DEF_LINK_WIN   50
 
#define TIPC_MAX_LINK_WIN   150
 
#define TIPC_NTQ_ALLTYPES   0x80000000
 
#define TIPC_CFG_TLV_ERROR   "\x80" /* request contains incorrect TLV(s) */
 
#define TIPC_CFG_NOT_NET_ADMIN   "\x81" /* must be network administrator */
 
#define TIPC_CFG_NOT_ZONE_MSTR   "\x82" /* must be zone master */
 
#define TIPC_CFG_NO_REMOTE   "\x83" /* remote management not enabled */
 
#define TIPC_CFG_NOT_SUPPORTED   "\x84" /* request is not supported by TIPC */
 
#define TIPC_CFG_INVALID_VALUE   "\x85" /* request has invalid argument value */
 
#define TLV_ALIGNTO   4
 
#define TLV_ALIGN(datalen)   (((datalen)+(TLV_ALIGNTO-1)) & ~(TLV_ALIGNTO-1))
 
#define TLV_LENGTH(datalen)   (sizeof(struct tlv_desc) + (datalen))
 
#define TLV_SPACE(datalen)   (TLV_ALIGN(TLV_LENGTH(datalen)))
 
#define TLV_DATA(tlv)   ((void *)((char *)(tlv) + TLV_LENGTH(0)))
 
#define TIPC_GENL_NAME   "TIPC"
 
#define TIPC_GENL_VERSION   0x1
 
#define TIPC_GENL_CMD   0x1
 
#define TIPC_GENL_HDRLEN   NLMSG_ALIGN(sizeof(struct tipc_genlmsghdr))
 
#define TCM_F_REQUEST   0x1 /* Flag: Request message */
 
#define TCM_F_MORE   0x2 /* Flag: Message to be continued */
 
#define TCM_ALIGN(datalen)   (((datalen)+3) & ~3)
 
#define TCM_LENGTH(datalen)   (sizeof(struct tipc_cfg_msg_hdr) + datalen)
 
#define TCM_SPACE(datalen)   (TCM_ALIGN(TCM_LENGTH(datalen)))
 
#define TCM_DATA(tcm_hdr)   ((void *)((char *)(tcm_hdr) + TCM_LENGTH(0)))
 

Macro Definition Documentation

#define TCM_ALIGN (   datalen)    (((datalen)+3) & ~3)

Definition at line 374 of file tipc_config.h.

#define TCM_DATA (   tcm_hdr)    ((void *)((char *)(tcm_hdr) + TCM_LENGTH(0)))

Definition at line 377 of file tipc_config.h.

#define TCM_F_MORE   0x2 /* Flag: Message to be continued */

Definition at line 372 of file tipc_config.h.

#define TCM_F_REQUEST   0x1 /* Flag: Request message */

Definition at line 371 of file tipc_config.h.

#define TCM_LENGTH (   datalen)    (sizeof(struct tipc_cfg_msg_hdr) + datalen)

Definition at line 375 of file tipc_config.h.

#define TCM_SPACE (   datalen)    (TCM_ALIGN(TCM_LENGTH(datalen)))

Definition at line 376 of file tipc_config.h.

#define TIPC_CFG_INVALID_VALUE   "\x85" /* request has invalid argument value */

Definition at line 239 of file tipc_config.h.

#define TIPC_CFG_NO_REMOTE   "\x83" /* remote management not enabled */

Definition at line 237 of file tipc_config.h.

#define TIPC_CFG_NOT_NET_ADMIN   "\x81" /* must be network administrator */

Definition at line 235 of file tipc_config.h.

#define TIPC_CFG_NOT_SUPPORTED   "\x84" /* request is not supported by TIPC */

Definition at line 238 of file tipc_config.h.

#define TIPC_CFG_NOT_ZONE_MSTR   "\x82" /* must be zone master */

Definition at line 236 of file tipc_config.h.

#define TIPC_CFG_TLV_ERROR   "\x80" /* request contains incorrect TLV(s) */

Definition at line 234 of file tipc_config.h.

#define TIPC_CMD_DISABLE_BEARER   0x4102 /* tx bearer_name, rx none */

Definition at line 101 of file tipc_config.h.

#define TIPC_CMD_DUMP_LOG   0x410B /* obsoleted */

Definition at line 106 of file tipc_config.h.

#define TIPC_CMD_ENABLE_BEARER   0x4101 /* tx bearer_config, rx none */

Definition at line 100 of file tipc_config.h.

#define TIPC_CMD_GET_BEARER_NAMES   0x0003 /* tx none, rx bearer_name(s) */

Definition at line 76 of file tipc_config.h.

#define TIPC_CMD_GET_LINKS   0x0004 /* tx net_addr, rx link_info(s) */

Definition at line 77 of file tipc_config.h.

#define TIPC_CMD_GET_MAX_CLUSTERS   0x4008 /* obsoleted */

Definition at line 95 of file tipc_config.h.

#define TIPC_CMD_GET_MAX_NODES   0x4009 /* obsoleted */

Definition at line 96 of file tipc_config.h.

#define TIPC_CMD_GET_MAX_PORTS   0x4004 /* tx none, rx unsigned */

Definition at line 91 of file tipc_config.h.

#define TIPC_CMD_GET_MAX_PUBL   0x4005 /* obsoleted */

Definition at line 92 of file tipc_config.h.

#define TIPC_CMD_GET_MAX_SLAVES   0x400A /* obsoleted */

Definition at line 97 of file tipc_config.h.

#define TIPC_CMD_GET_MAX_SUBSCR   0x4006 /* obsoleted */

Definition at line 93 of file tipc_config.h.

#define TIPC_CMD_GET_MAX_ZONES   0x4007 /* obsoleted */

Definition at line 94 of file tipc_config.h.

#define TIPC_CMD_GET_MEDIA_NAMES   0x0002 /* tx none, rx media_name(s) */

Definition at line 75 of file tipc_config.h.

#define TIPC_CMD_GET_NETID   0x400B /* tx none, rx unsigned */

Definition at line 98 of file tipc_config.h.

#define TIPC_CMD_GET_NODES   0x0001 /* tx net_addr, rx node_info(s) */

Definition at line 74 of file tipc_config.h.

#define TIPC_CMD_GET_REMOTE_MNG   0x4003 /* tx none, rx unsigned */

Definition at line 90 of file tipc_config.h.

#define TIPC_CMD_NOOP   0x0000 /* tx none, rx none */

Definition at line 73 of file tipc_config.h.

#define TIPC_CMD_NOT_NET_ADMIN   0xC001 /* tx none, rx none */

Definition at line 132 of file tipc_config.h.

#define TIPC_CMD_RESET_LINK_STATS   0x410C /* tx link_name, rx none */

Definition at line 107 of file tipc_config.h.

#define TIPC_CMD_SET_LINK_PRI   0x4108 /* tx link_config, rx none */

Definition at line 103 of file tipc_config.h.

#define TIPC_CMD_SET_LINK_TOL   0x4107 /* tx link_config, rx none */

Definition at line 102 of file tipc_config.h.

#define TIPC_CMD_SET_LINK_WINDOW   0x4109 /* tx link_config, rx none */

Definition at line 104 of file tipc_config.h.

#define TIPC_CMD_SET_LOG_SIZE   0x410A /* obsoleted */

Definition at line 105 of file tipc_config.h.

#define TIPC_CMD_SET_MAX_CLUSTERS   0x8008 /* obsoleted */

Definition at line 121 of file tipc_config.h.

#define TIPC_CMD_SET_MAX_NODES   0x8009 /* obsoleted */

Definition at line 122 of file tipc_config.h.

#define TIPC_CMD_SET_MAX_PORTS   0x8004 /* tx unsigned, rx none */

Definition at line 117 of file tipc_config.h.

#define TIPC_CMD_SET_MAX_PUBL   0x8005 /* obsoleted */

Definition at line 118 of file tipc_config.h.

#define TIPC_CMD_SET_MAX_SLAVES   0x800A /* obsoleted */

Definition at line 123 of file tipc_config.h.

#define TIPC_CMD_SET_MAX_SUBSCR   0x8006 /* obsoleted */

Definition at line 119 of file tipc_config.h.

#define TIPC_CMD_SET_MAX_ZONES   0x8007 /* obsoleted */

Definition at line 120 of file tipc_config.h.

#define TIPC_CMD_SET_NETID   0x800B /* tx unsigned, rx none */

Definition at line 124 of file tipc_config.h.

#define TIPC_CMD_SET_NODE_ADDR   0x8001 /* tx net_addr, rx none */

Definition at line 115 of file tipc_config.h.

#define TIPC_CMD_SET_REMOTE_MNG   0x8003 /* tx unsigned, rx none */

Definition at line 116 of file tipc_config.h.

#define TIPC_CMD_SHOW_LINK_STATS   0x000B /* tx link_name, rx ultra_string */

Definition at line 80 of file tipc_config.h.

#define TIPC_CMD_SHOW_NAME_TABLE   0x0005 /* tx name_tbl_query, rx ultra_string */

Definition at line 78 of file tipc_config.h.

#define TIPC_CMD_SHOW_PORTS   0x0006 /* tx none, rx ultra_string */

Definition at line 79 of file tipc_config.h.

#define TIPC_CMD_SHOW_STATS   0x000F /* tx unsigned, rx ultra_string */

Definition at line 81 of file tipc_config.h.

#define TIPC_DEF_LINK_PRI   10

Definition at line 171 of file tipc_config.h.

#define TIPC_DEF_LINK_TOL   1500

Definition at line 180 of file tipc_config.h.

#define TIPC_DEF_LINK_WIN   50

Definition at line 192 of file tipc_config.h.

#define TIPC_GENL_CMD   0x1

Definition at line 343 of file tipc_config.h.

#define TIPC_GENL_HDRLEN   NLMSG_ALIGN(sizeof(struct tipc_genlmsghdr))

Definition at line 354 of file tipc_config.h.

#define TIPC_GENL_NAME   "TIPC"

Definition at line 341 of file tipc_config.h.

#define TIPC_GENL_VERSION   0x1

Definition at line 342 of file tipc_config.h.

#define TIPC_MAX_BEARER_NAME   32 /* format = media:interface */

Definition at line 163 of file tipc_config.h.

#define TIPC_MAX_IF_NAME   16 /* format = interface */

Definition at line 162 of file tipc_config.h.

#define TIPC_MAX_LINK_NAME   60 /* format = Z.C.N:interface-Z.C.N:interface */

Definition at line 164 of file tipc_config.h.

#define TIPC_MAX_LINK_PRI   31

Definition at line 172 of file tipc_config.h.

#define TIPC_MAX_LINK_TOL   30000

Definition at line 181 of file tipc_config.h.

#define TIPC_MAX_LINK_WIN   150

Definition at line 193 of file tipc_config.h.

#define TIPC_MAX_MEDIA_NAME   16 /* format = media */

Definition at line 161 of file tipc_config.h.

#define TIPC_MEDIA_LINK_PRI   (TIPC_MAX_LINK_PRI + 1)

Definition at line 173 of file tipc_config.h.

#define TIPC_MIN_LINK_PRI   0

Definition at line 170 of file tipc_config.h.

#define TIPC_MIN_LINK_TOL   50

Definition at line 179 of file tipc_config.h.

#define TIPC_MIN_LINK_WIN   16

Definition at line 191 of file tipc_config.h.

#define TIPC_NTQ_ALLTYPES   0x80000000

Definition at line 218 of file tipc_config.h.

#define TIPC_TLV_BEARER_CONFIG   23 /* struct tipc_bearer_config */

Definition at line 152 of file tipc_config.h.

#define TIPC_TLV_BEARER_NAME   19 /* char[TIPC_MAX_BEARER_NAME] */

Definition at line 148 of file tipc_config.h.

#define TIPC_TLV_ERROR_STRING   16 /* char[128] containing "error code" */

Definition at line 145 of file tipc_config.h.

#define TIPC_TLV_LARGE_STRING   4 /* char[2048] (max) */

Definition at line 142 of file tipc_config.h.

#define TIPC_TLV_LINK_CONFIG   24 /* struct tipc_link_config */

Definition at line 153 of file tipc_config.h.

#define TIPC_TLV_LINK_INFO   22 /* struct tipc_link_info */

Definition at line 151 of file tipc_config.h.

#define TIPC_TLV_LINK_NAME   20 /* char[TIPC_MAX_LINK_NAME] */

Definition at line 149 of file tipc_config.h.

#define TIPC_TLV_MEDIA_NAME   18 /* char[TIPC_MAX_MEDIA_NAME] */

Definition at line 147 of file tipc_config.h.

#define TIPC_TLV_NAME_TBL_QUERY   25 /* struct tipc_name_table_query */

Definition at line 154 of file tipc_config.h.

#define TIPC_TLV_NET_ADDR   17 /* 32-bit integer denoting <Z.C.N> */

Definition at line 146 of file tipc_config.h.

#define TIPC_TLV_NODE_INFO   21 /* struct tipc_node_info */

Definition at line 150 of file tipc_config.h.

#define TIPC_TLV_NONE   0 /* no TLV present */

Definition at line 138 of file tipc_config.h.

#define TIPC_TLV_PORT_REF   26 /* 32-bit port reference */

Definition at line 155 of file tipc_config.h.

#define TIPC_TLV_STRING   3 /* char[128] (max) */

Definition at line 141 of file tipc_config.h.

#define TIPC_TLV_ULTRA_STRING   5 /* char[32768] (max) */

Definition at line 143 of file tipc_config.h.

#define TIPC_TLV_UNSIGNED   2 /* 32-bit integer */

Definition at line 140 of file tipc_config.h.

#define TIPC_TLV_VOID   1 /* empty TLV (0 data bytes)*/

Definition at line 139 of file tipc_config.h.

#define TLV_ALIGN (   datalen)    (((datalen)+(TLV_ALIGNTO-1)) & ~(TLV_ALIGNTO-1))

Definition at line 257 of file tipc_config.h.

#define TLV_ALIGNTO   4

Definition at line 255 of file tipc_config.h.

#define TLV_DATA (   tlv)    ((void *)((char *)(tlv) + TLV_LENGTH(0)))

Definition at line 260 of file tipc_config.h.

#define TLV_LENGTH (   datalen)    (sizeof(struct tlv_desc) + (datalen))

Definition at line 258 of file tipc_config.h.

#define TLV_SPACE (   datalen)    (TLV_ALIGN(TLV_LENGTH(datalen)))

Definition at line 259 of file tipc_config.h.