Lines Matching +full:rx +full:- +full:tx
4 * Copyright (c) 2003-2006, Ericsson AB
5 * Copyright (c) 2005-2007, 2010-2011, Wind River Systems
53 * back. (In the future multi-message replies may be supported.)
73 #define TIPC_CMD_NOOP 0x0000 /* tx none, rx none */
74 #define TIPC_CMD_GET_NODES 0x0001 /* tx net_addr, rx node_info(s) */
75 #define TIPC_CMD_GET_MEDIA_NAMES 0x0002 /* tx none, rx media_name(s) */
76 #define TIPC_CMD_GET_BEARER_NAMES 0x0003 /* tx none, rx bearer_name(s) */
77 #define TIPC_CMD_GET_LINKS 0x0004 /* tx net_addr, rx link_info(s) */
78 #define TIPC_CMD_SHOW_NAME_TABLE 0x0005 /* tx name_tbl_query, rx ultra_string */
79 #define TIPC_CMD_SHOW_PORTS 0x0006 /* tx none, rx ultra_string */
80 #define TIPC_CMD_SHOW_LINK_STATS 0x000B /* tx link_name, rx ultra_string */
81 #define TIPC_CMD_SHOW_STATS 0x000F /* tx unsigned, rx ultra_string */
90 #define TIPC_CMD_GET_REMOTE_MNG 0x4003 /* tx none, rx unsigned */
91 #define TIPC_CMD_GET_MAX_PORTS 0x4004 /* tx none, rx unsigned */
92 #define TIPC_CMD_GET_MAX_PUBL 0x4005 /* tx none, rx unsigned */
93 #define TIPC_CMD_GET_MAX_SUBSCR 0x4006 /* tx none, rx unsigned */
98 #define TIPC_CMD_GET_NETID 0x400B /* tx none, rx unsigned */
100 #define TIPC_CMD_ENABLE_BEARER 0x4101 /* tx bearer_config, rx none */
101 #define TIPC_CMD_DISABLE_BEARER 0x4102 /* tx bearer_name, rx none */
102 #define TIPC_CMD_SET_LINK_TOL 0x4107 /* tx link_config, rx none */
103 #define TIPC_CMD_SET_LINK_PRI 0x4108 /* tx link_config, rx none */
104 #define TIPC_CMD_SET_LINK_WINDOW 0x4109 /* tx link_config, rx none */
105 #define TIPC_CMD_SET_LOG_SIZE 0x410A /* tx unsigned, rx none */
106 #define TIPC_CMD_DUMP_LOG 0x410B /* tx none, rx ultra_string */
107 #define TIPC_CMD_RESET_LINK_STATS 0x410C /* tx link_name, rx none */
115 #define TIPC_CMD_SET_NODE_ADDR 0x8001 /* tx net_addr, rx none */
116 #define TIPC_CMD_SET_REMOTE_MNG 0x8003 /* tx unsigned, rx none */
117 #define TIPC_CMD_SET_MAX_PORTS 0x8004 /* tx unsigned, rx none */
118 #define TIPC_CMD_SET_MAX_PUBL 0x8005 /* tx unsigned, rx none */
119 #define TIPC_CMD_SET_MAX_SUBSCR 0x8006 /* tx unsigned, rx none */
124 #define TIPC_CMD_SET_NETID 0x800B /* tx unsigned, rx none */
132 #define TIPC_CMD_NOT_NET_ADMIN 0xC001 /* tx none, rx none */
140 #define TIPC_TLV_UNSIGNED 2 /* 32-bit integer */
146 #define TIPC_TLV_NET_ADDR 17 /* 32-bit integer denoting <Z.C.N> */
155 #define TIPC_TLV_PORT_REF 26 /* 32-bit port reference */
158 * Maximum sizes of TIPC bearer-related names (including terminating NUL)
164 #define TIPC_MAX_LINK_NAME 60 /* format = Z.C.N:interface-Z.C.N:interface */
228 * The error string TLV is a null-terminated string describing the cause
231 * (lying by the range 0x80 to 0xFF) which represents a pre-defined reason.
257 #define TLV_ALIGN(datalen) (((datalen)+(TLV_ALIGNTO-1)) & ~(TLV_ALIGNTO-1))
267 * - Tried doing (!(tlv & (TLV_ALIGNTO-1))), but GCC compiler in TLV_OK()
269 * - Tried casting "tlv" to integer type, but causes warning about size in TLV_OK()
274 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK()
280 (ntohs(((struct tlv_desc *)tlv)->tlv_type) == exp_type); in TLV_CHECK()
290 tlv_ptr->tlv_type = htons(type); in TLV_SET()
291 tlv_ptr->tlv_len = htons(tlv_len); in TLV_SET()
310 list->tlv_ptr = (struct tlv_desc *)data; in TLV_LIST_INIT()
311 list->tlv_space = space; in TLV_LIST_INIT()
316 return (list->tlv_space == 0); in TLV_LIST_EMPTY()
321 return TLV_CHECK(list->tlv_ptr, list->tlv_space, exp_type); in TLV_LIST_CHECK()
326 return TLV_DATA(list->tlv_ptr); in TLV_LIST_DATA()
331 __u16 tlv_space = TLV_ALIGN(ntohs(list->tlv_ptr->tlv_len)); in TLV_LIST_STEP()
333 list->tlv_ptr = (struct tlv_desc *)((char *)list->tlv_ptr + tlv_space); in TLV_LIST_STEP()
334 list->tlv_space -= tlv_space; in TLV_LIST_STEP()
387 tcm_hdr->tcm_len = htonl(msg_len); in TCM_SET()
388 tcm_hdr->tcm_type = htons(cmd); in TCM_SET()
389 tcm_hdr->tcm_flags = htons(flags); in TCM_SET()