projects
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6fd030f
)
Server Id's will be static.
author
Pekka Riikonen
<priikone@silcnet.org>
Sun, 10 Jun 2007 16:11:21 +0000
(16:11 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Sun, 10 Jun 2007 16:11:21 +0000
(16:11 +0000)
apps/silcd/serverid.c
patch
|
blob
|
history
diff --git
a/apps/silcd/serverid.c
b/apps/silcd/serverid.c
index f840cab92e508a2b5ced3084607fd2e1ac48c4b6..73641c65dd13449a7dce351be999dab4db56f420 100644
(file)
--- a/
apps/silcd/serverid.c
+++ b/
apps/silcd/serverid.c
@@
-4,7
+4,7
@@
Author: Pekka Riikonen <priikone@silcnet.org>
Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 1997 - 200
5
Pekka Riikonen
+ Copyright (C) 1997 - 200
7
Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-43,7
+43,7
@@
void silc_id_create_server_id(const char *ip, SilcUInt16 port, SilcRng rng,
(*new_id)->ip.data_len = silc_net_is_ip4(ip) ? 4 : 16;
(*new_id)->port = SILC_SWAB_16(port);
(*new_id)->ip.data_len = silc_net_is_ip4(ip) ? 4 : 16;
(*new_id)->port = SILC_SWAB_16(port);
- (*new_id)->rnd =
silc_rng_get_rn16(rng)
;
+ (*new_id)->rnd =
0xff
;
SILC_LOG_DEBUG(("New ID (%s)", silc_id_render(*new_id, SILC_ID_SERVER)));
}
SILC_LOG_DEBUG(("New ID (%s)", silc_id_render(*new_id, SILC_ID_SERVER)));
}