net.h (51a8e4dee7653698ba4c6e7de71053665f075273) | net.h (8f92df6ad49da958d97e171762d0a97a3dc738f1) |
---|---|
1/* 2 * net/tipc/net.h: Include file for TIPC network routing code 3 * 4 * Copyright (c) 1995-2006, Ericsson AB 5 * Copyright (c) 2005, Wind River Systems 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 23 unchanged lines hidden (view full) --- 32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 34 * POSSIBILITY OF SUCH DAMAGE. 35 */ 36 37#ifndef _TIPC_NET_H 38#define _TIPC_NET_H 39 | 1/* 2 * net/tipc/net.h: Include file for TIPC network routing code 3 * 4 * Copyright (c) 1995-2006, Ericsson AB 5 * Copyright (c) 2005, Wind River Systems 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 23 unchanged lines hidden (view full) --- 32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 34 * POSSIBILITY OF SUCH DAMAGE. 35 */ 36 37#ifndef _TIPC_NET_H 38#define _TIPC_NET_H 39 |
40struct cluster; | 40struct tipc_node; |
41 42/** 43 * struct network - TIPC network structure | 41 42/** 43 * struct network - TIPC network structure |
44 * @clusters: array of pointers to all clusters within zone | 44 * @nodes: array of pointers to all nodes within cluster 45 * @highest_node: id of highest numbered node within cluster |
45 * @links: number of (unicast) links to cluster 46 */ 47 48struct network { | 46 * @links: number of (unicast) links to cluster 47 */ 48 49struct network { |
49 struct cluster *clusters[2]; /* currently limited to just 1 cluster */ | 50 struct tipc_node **nodes; 51 u32 highest_node; |
50 u32 links; 51}; 52 53 54extern struct network tipc_net; 55extern rwlock_t tipc_net_lock; 56 57void tipc_net_route_msg(struct sk_buff *buf); 58 59int tipc_net_start(u32 addr); 60void tipc_net_stop(void); 61 62#endif | 52 u32 links; 53}; 54 55 56extern struct network tipc_net; 57extern rwlock_t tipc_net_lock; 58 59void tipc_net_route_msg(struct sk_buff *buf); 60 61int tipc_net_start(u32 addr); 62void tipc_net_stop(void); 63 64#endif |