projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates. New data types.
[silc.git]
/
apps
/
silcd
/
route.c
diff --git
a/apps/silcd/route.c
b/apps/silcd/route.c
index 3563b4987c11ca4227b4e05fdc0a67a4beb746b3..f166075aaf1781857ab1dd8fb8e26f7c43c89c49 100644
(file)
--- a/
apps/silcd/route.c
+++ b/
apps/silcd/route.c
@@
-40,7
+40,7
@@
SilcServerRouteTable silc_route_cache[SILC_SERVER_ROUTE_SIZE];
/* Adds new route to the route cache. The argument `index' is the
index value generated by silc_server_route_hash. */
/* Adds new route to the route cache. The argument `index' is the
index value generated by silc_server_route_hash. */
-void silc_server_route_add(u
nsigned int
index, unsigned int dest,
+void silc_server_route_add(u
int32
index, unsigned int dest,
SilcServerEntry router)
{
silc_route_cache[index].dest = dest;
SilcServerEntry router)
{
silc_route_cache[index].dest = dest;
@@
-50,10
+50,10
@@
void silc_server_route_add(unsigned int index, unsigned int dest,
/* Checksk whether destination has a specific router. Returns the
router data if found, NULL otherwise. */
/* Checksk whether destination has a specific router. Returns the
router data if found, NULL otherwise. */
-SilcServerEntry silc_server_route_check(u
nsigned int
dest,
- u
nsigned short
port)
+SilcServerEntry silc_server_route_check(u
int32
dest,
+ u
int16
port)
{
{
- u
nsigned int
index;
+ u
int32
index;
index = silc_server_route_hash(dest, port);
index = silc_server_route_hash(dest, port);
@@
-72,8
+72,8
@@
SilcSocketConnection silc_server_route_get(SilcServer server, void *id,
SilcIdType id_type)
{
if (server->server_type == SILC_ROUTER) {
SilcIdType id_type)
{
if (server->server_type == SILC_ROUTER) {
- u
nsigned int
dest;
- u
nsigned short
port;
+ u
int32
dest;
+ u
int16
port;
SilcServerEntry router = NULL;
switch(id_type) {
SilcServerEntry router = NULL;
switch(id_type) {