aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/socket.h')
-rw-r--r--net/tipc/socket.h39
1 files changed, 38 insertions, 1 deletions
diff --git a/net/tipc/socket.h b/net/tipc/socket.h
index 5d515be604a9..b98725e27b94 100644
--- a/net/tipc/socket.h
+++ b/net/tipc/socket.h
@@ -35,11 +35,48 @@
35#ifndef _TIPC_SOCK_H 35#ifndef _TIPC_SOCK_H
36#define _TIPC_SOCK_H 36#define _TIPC_SOCK_H
37 37
38#include "port.h"
39#include <net/sock.h> 38#include <net/sock.h>
39#include "msg.h"
40 40
41#define TIPC_CONN_OK 0 41#define TIPC_CONN_OK 0
42#define TIPC_CONN_PROBING 1 42#define TIPC_CONN_PROBING 1
43#define TIPC_CONNACK_INTV 256
44#define TIPC_FLOWCTRL_WIN (TIPC_CONNACK_INTV * 2)
45#define TIPC_CONN_OVERLOAD_LIMIT ((TIPC_FLOWCTRL_WIN * 2 + 1) * \
46 SKB_TRUESIZE(TIPC_MAX_USER_MSG_SIZE))
47
48/**
49 * struct tipc_port - TIPC port structure
50 * @lock: pointer to spinlock for controlling access to port
51 * @connected: non-zero if port is currently connected to a peer port
52 * @conn_type: TIPC type used when connection was established
53 * @conn_instance: TIPC instance used when connection was established
54 * @published: non-zero if port has one or more associated names
55 * @max_pkt: maximum packet size "hint" used when building messages sent by port
56 * @ref: unique reference to port in TIPC object registry
57 * @phdr: preformatted message header used when sending messages
58 * @port_list: adjacent ports in TIPC's global list of ports
59 * @publications: list of publications for port
60 * @pub_count: total # of publications port has made during its lifetime
61 * @probing_state:
62 * @probing_interval:
63 * @timer_ref:
64 */
65struct tipc_port {
66 int connected;
67 u32 conn_type;
68 u32 conn_instance;
69 int published;
70 u32 max_pkt;
71 u32 ref;
72 struct tipc_msg phdr;
73 struct list_head port_list;
74 struct list_head publications;
75 u32 pub_count;
76 u32 probing_state;
77 u32 probing_interval;
78 struct timer_list timer;
79};
43 80
44/** 81/**
45 * struct tipc_sock - TIPC socket structure 82 * struct tipc_sock - TIPC socket structure