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.12 2002/09/09 21:24:48 guus Exp $
+ $Id: protocol_edge.c,v 1.1.4.15 2002/09/24 11:43:34 guus Exp $
*/
#include "config.h"
#include "system.h"
-int send_add_edge(connection_t * c, edge_t * e)
+int send_add_edge(connection_t *c, edge_t *e)
{
int x;
char *address, *port;
return x;
}
-int add_edge_h(connection_t * c)
+int add_edge_h(connection_t *c)
{
edge_t *e;
node_t *from, *to;
syslog(LOG_WARNING, _("Got %s from %s (%s) which does not match existing entry"),
"ADD_EDGE", c->name, c->hostname);
edge_del(e);
+ graph();
}
} else
return 0;
return 0;
}
-int send_del_edge(connection_t * c, edge_t * e)
+int send_del_edge(connection_t *c, edge_t *e)
{
cp();
e->from->name, e->to->name);
}
-int del_edge_h(connection_t * c)
+int del_edge_h(connection_t *c)
{
edge_t *e;
char from_name[MAX_STRING_SIZE];
if(!from) {
if(debug_lvl >= DEBUG_PROTOCOL)
- syslog(LOG_ERR,
- _
- ("Got %s from %s (%s) which does not appear in the edge tree"),
+ syslog(LOG_ERR, _("Got %s from %s (%s) which does not appear in the edge tree"),
"DEL_EDGE", c->name, c->hostname);
return 0;
}
if(!to) {
if(debug_lvl >= DEBUG_PROTOCOL)
- syslog(LOG_ERR,
- _
- ("Got %s from %s (%s) which does not appear in the edge tree"),
+ syslog(LOG_ERR, _("Got %s from %s (%s) which does not appear in the edge tree"),
"DEL_EDGE", c->name, c->hostname);
return 0;
}
if(!e) {
if(debug_lvl >= DEBUG_PROTOCOL)
- syslog(LOG_WARNING,
- _
- ("Got %s from %s (%s) which does not appear in the edge tree"),
+ syslog(LOG_WARNING, _("Got %s from %s (%s) which does not appear in the edge tree"),
"DEL_EDGE", c->name, c->hostname);
return 0;
}