X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol.c;h=f533a932c6e94dfee216073260db53e0155e59ae;hp=4f7e6697653ec3e88590a109df64938a1631ba52;hb=d4410d0cce40929db9a0ce7042ef962f1867234d;hpb=3def9d2ad88a9015af4c42aac329e0e2a80679f7 diff --git a/src/protocol.c b/src/protocol.c index 4f7e6697..f533a932 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -41,7 +41,8 @@ static bool (*request_handlers[])(connection_t *, const char *) = { add_subnet_h, del_subnet_h, add_edge_h, del_edge_h, key_changed_h, req_key_h, ans_key_h, tcppacket_h, control_h, - NULL, NULL, NULL, /* Not "real" requests (yet) */ + NULL, NULL, /* Not "real" requests (yet) */ + sptps_tcppacket_h, udp_info_h, mtu_info_h, }; @@ -53,7 +54,7 @@ static char (*request_name[]) = { "PING", "PONG", "ADD_SUBNET", "DEL_SUBNET", "ADD_EDGE", "DEL_EDGE", "KEY_CHANGED", "REQ_KEY", "ANS_KEY", "PACKET", "CONTROL", - "REQ_PUBKEY", "ANS_PUBKEY", "REQ_SPTPS", "UDP_INFO", "MTU_INFO", + "REQ_PUBKEY", "ANS_PUBKEY", "SPTPS_PACKET", "UDP_INFO", "MTU_INFO", }; static splay_tree_t *past_request_tree; @@ -135,7 +136,8 @@ bool receive_request(connection_t *c, const char *request) { if(!request_handlers[reqno](c, request)) { /* Something went wrong. Probably scriptkiddies. Terminate. */ - logger(DEBUG_ALWAYS, LOG_ERR, "Error while processing %s from %s (%s)", request_name[reqno], c->name, c->hostname); + if(reqno != TERMREQ) + logger(DEBUG_ALWAYS, LOG_ERR, "Error while processing %s from %s (%s)", request_name[reqno], c->name, c->hostname); return false; } } else {