projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
send_ack() was broken.
[tinc]
/
src
/
protocol_edge.c
diff --git
a/src/protocol_edge.c
b/src/protocol_edge.c
index
69a1e28
..
7760eea
100644
(file)
--- a/
src/protocol_edge.c
+++ b/
src/protocol_edge.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: protocol_edge.c,v 1.1.4.
4 2002/03/22 11:43:4
8 guus Exp $
+ $Id: protocol_edge.c,v 1.1.4.
6 2002/03/22 13:31:1
8 guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-90,10
+90,10
@@
int add_edge_h(connection_t *c)
int weight;
avl_node_t *node;
cp
int weight;
avl_node_t *node;
cp
- if(sscanf(c->buffer, "%*d %*
l
x "MAX_STRING" "MAX_STRING" "MAX_STRING" "MAX_STRING" "MAX_STRING" "MAX_STRING" %lx %d",
+ if(sscanf(c->buffer, "%*d %*x "MAX_STRING" "MAX_STRING" "MAX_STRING" "MAX_STRING" "MAX_STRING" "MAX_STRING" %lx %d",
from_name, from_address, from_udpport,
to_name, to_address, to_udpport,
from_name, from_address, from_udpport,
to_name, to_address, to_udpport,
- &options, &weight) !=
10
)
+ &options, &weight) !=
8
)
{
syslog(LOG_ERR, _("Got bad %s from %s (%s)"), "ADD_EDGE", c->name, c->hostname);
return -1;
{
syslog(LOG_ERR, _("Got bad %s from %s (%s)"), "ADD_EDGE", c->name, c->hostname);
return -1;
@@
-226,7
+226,7
@@
int del_edge_h(connection_t *c)
connection_t *other;
avl_node_t *node;
cp
connection_t *other;
avl_node_t *node;
cp
- if(sscanf(c->buffer, "%*d %*
l
x "MAX_STRING" "MAX_STRING"", from_name, to_name) != 2)
+ if(sscanf(c->buffer, "%*d %*x "MAX_STRING" "MAX_STRING"", from_name, to_name) != 2)
{
syslog(LOG_ERR, _("Got bad %s from %s (%s)"), "DEL_EDGE",
c->name, c->hostname);
{
syslog(LOG_ERR, _("Got bad %s from %s (%s)"), "DEL_EDGE",
c->name, c->hostname);