.. | .. |
---|
119 | 119 | char *raw); |
---|
120 | 120 | u32 priority; |
---|
121 | 121 | u32 tolerance; |
---|
122 | | - u32 window; |
---|
| 122 | + u32 min_win; |
---|
| 123 | + u32 max_win; |
---|
123 | 124 | u32 mtu; |
---|
124 | 125 | u32 type_id; |
---|
125 | 126 | u32 hwaddr_len; |
---|
.. | .. |
---|
158 | 159 | struct packet_type pt; |
---|
159 | 160 | struct rcu_head rcu; |
---|
160 | 161 | u32 priority; |
---|
161 | | - u32 window; |
---|
| 162 | + u32 min_win; |
---|
| 163 | + u32 max_win; |
---|
162 | 164 | u32 tolerance; |
---|
163 | 165 | u32 domain; |
---|
164 | 166 | u32 identity; |
---|
165 | 167 | struct tipc_discoverer *disc; |
---|
166 | 168 | char net_plane; |
---|
167 | 169 | unsigned long up; |
---|
| 170 | + refcount_t refcnt; |
---|
168 | 171 | }; |
---|
169 | 172 | |
---|
170 | 173 | struct tipc_bearer_names { |
---|
.. | .. |
---|
207 | 210 | |
---|
208 | 211 | int tipc_media_set_priority(const char *name, u32 new_value); |
---|
209 | 212 | int tipc_media_set_window(const char *name, u32 new_value); |
---|
210 | | -void tipc_media_addr_printf(char *buf, int len, struct tipc_media_addr *a); |
---|
| 213 | +int tipc_media_addr_printf(char *buf, int len, struct tipc_media_addr *a); |
---|
211 | 214 | int tipc_enable_l2_media(struct net *net, struct tipc_bearer *b, |
---|
212 | 215 | struct nlattr *attrs[]); |
---|
| 216 | +bool tipc_bearer_hold(struct tipc_bearer *b); |
---|
| 217 | +void tipc_bearer_put(struct tipc_bearer *b); |
---|
213 | 218 | void tipc_disable_l2_media(struct tipc_bearer *b); |
---|
214 | 219 | int tipc_l2_send_msg(struct net *net, struct sk_buff *buf, |
---|
215 | 220 | struct tipc_bearer *b, struct tipc_media_addr *dest); |
---|
.. | .. |
---|
229 | 234 | struct tipc_media_addr *dest); |
---|
230 | 235 | void tipc_bearer_xmit(struct net *net, u32 bearer_id, |
---|
231 | 236 | struct sk_buff_head *xmitq, |
---|
232 | | - struct tipc_media_addr *dst); |
---|
| 237 | + struct tipc_media_addr *dst, |
---|
| 238 | + struct tipc_node *__dnode); |
---|
233 | 239 | void tipc_bearer_bc_xmit(struct net *net, u32 bearer_id, |
---|
234 | 240 | struct sk_buff_head *xmitq); |
---|
| 241 | +void tipc_clone_to_loopback(struct net *net, struct sk_buff_head *pkts); |
---|
| 242 | +int tipc_attach_loopback(struct net *net); |
---|
| 243 | +void tipc_detach_loopback(struct net *net); |
---|
| 244 | + |
---|
| 245 | +static inline void tipc_loopback_trace(struct net *net, |
---|
| 246 | + struct sk_buff_head *pkts) |
---|
| 247 | +{ |
---|
| 248 | + if (unlikely(dev_nit_active(net->loopback_dev))) |
---|
| 249 | + tipc_clone_to_loopback(net, pkts); |
---|
| 250 | +} |
---|
235 | 251 | |
---|
236 | 252 | /* check if device MTU is too low for tipc headers */ |
---|
237 | 253 | static inline bool tipc_mtu_bad(struct net_device *dev, unsigned int reserve) |
---|