core.c (08c80e9a031df0a8f0269477a32f5eae47d7a146) core.c (8f92df6ad49da958d97e171762d0a97a3dc738f1)
1/*
2 * net/tipc/core.c: TIPC module code
3 *
4 * Copyright (c) 2003-2006, Ericsson AB
5 * Copyright (c) 2005-2006, Wind River Systems
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 34 unchanged lines hidden (view full) ---

43#include "ref.h"
44#include "net.h"
45#include "user_reg.h"
46#include "name_table.h"
47#include "subscr.h"
48#include "config.h"
49
50
1/*
2 * net/tipc/core.c: TIPC module code
3 *
4 * Copyright (c) 2003-2006, Ericsson AB
5 * Copyright (c) 2005-2006, Wind River Systems
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 34 unchanged lines hidden (view full) ---

43#include "ref.h"
44#include "net.h"
45#include "user_reg.h"
46#include "name_table.h"
47#include "subscr.h"
48#include "config.h"
49
50
51#ifndef CONFIG_TIPC_CLUSTERS
52#define CONFIG_TIPC_CLUSTERS 1
53#endif
54
55#ifndef CONFIG_TIPC_NODES
56#define CONFIG_TIPC_NODES 255
57#endif
58
59#ifndef CONFIG_TIPC_PORTS
60#define CONFIG_TIPC_PORTS 8191
61#endif
62

--- 8 unchanged lines hidden (view full) ---

71atomic_t tipc_user_count = ATOMIC_INIT(0);
72
73const char tipc_alphabet[] =
74 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.";
75
76/* configurable TIPC parameters */
77
78u32 tipc_own_addr;
51#ifndef CONFIG_TIPC_NODES
52#define CONFIG_TIPC_NODES 255
53#endif
54
55#ifndef CONFIG_TIPC_PORTS
56#define CONFIG_TIPC_PORTS 8191
57#endif
58

--- 8 unchanged lines hidden (view full) ---

67atomic_t tipc_user_count = ATOMIC_INIT(0);
68
69const char tipc_alphabet[] =
70 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.";
71
72/* configurable TIPC parameters */
73
74u32 tipc_own_addr;
79int tipc_max_clusters;
80int tipc_max_nodes;
81int tipc_max_ports;
82int tipc_max_subscriptions;
83int tipc_max_publications;
84int tipc_net_id;
85int tipc_remote_management;
86
87

--- 106 unchanged lines hidden (view full) ---

194 info("Activated (version " TIPC_MOD_VER
195 " compiled " __DATE__ " " __TIME__ ")\n");
196
197 tipc_own_addr = 0;
198 tipc_remote_management = 1;
199 tipc_max_publications = 10000;
200 tipc_max_subscriptions = 2000;
201 tipc_max_ports = CONFIG_TIPC_PORTS;
75int tipc_max_nodes;
76int tipc_max_ports;
77int tipc_max_subscriptions;
78int tipc_max_publications;
79int tipc_net_id;
80int tipc_remote_management;
81
82

--- 106 unchanged lines hidden (view full) ---

189 info("Activated (version " TIPC_MOD_VER
190 " compiled " __DATE__ " " __TIME__ ")\n");
191
192 tipc_own_addr = 0;
193 tipc_remote_management = 1;
194 tipc_max_publications = 10000;
195 tipc_max_subscriptions = 2000;
196 tipc_max_ports = CONFIG_TIPC_PORTS;
202 tipc_max_clusters = CONFIG_TIPC_CLUSTERS;
203 tipc_max_nodes = CONFIG_TIPC_NODES;
204 tipc_net_id = 4711;
205
206 if ((res = tipc_core_start()))
207 err("Unable to start in single node mode\n");
208 else
209 info("Started in single node mode\n");
210 return res;

--- 15 unchanged lines hidden ---
197 tipc_max_nodes = CONFIG_TIPC_NODES;
198 tipc_net_id = 4711;
199
200 if ((res = tipc_core_start()))
201 err("Unable to start in single node mode\n");
202 else
203 info("Started in single node mode\n");
204 return res;

--- 15 unchanged lines hidden ---