diff options
author | 2005-05-24 19:17:07 +0000 | |
---|---|---|
committer | 2005-05-24 19:17:07 +0000 | |
commit | eef92bf6e928739741dbf9e440a9985a79ee55ec (patch) | |
tree | b69fce235ff57793a2652e2afdb5be001cde8db0 | |
parent | remove debugging stuff (diff) | |
download | wireguard-openbsd-eef92bf6e928739741dbf9e440a9985a79ee55ec.tar.xz wireguard-openbsd-eef92bf6e928739741dbf9e440a9985a79ee55ec.zip |
logging tweaks
-rw-r--r-- | usr.sbin/sasyncd/net_ctl.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.sbin/sasyncd/net_ctl.c b/usr.sbin/sasyncd/net_ctl.c index e03a68e7998..17d169506f3 100644 --- a/usr.sbin/sasyncd/net_ctl.c +++ b/usr.sbin/sasyncd/net_ctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: net_ctl.c,v 1.4 2005/05/23 19:53:27 ho Exp $ */ +/* $OpenBSD: net_ctl.c,v 1.5 2005/05/24 19:17:07 ho Exp $ */ /* * Copyright (c) 2005 Håkan Olsson. All rights reserved. @@ -50,8 +50,6 @@ struct ctlmsg { u_int32_t data2; }; -int listen_socket; - static int net_ctl_check_state(struct syncpeer *p, enum RUNSTATE nstate) { @@ -94,7 +92,7 @@ net_ctl_handle_msg(struct syncpeer *p, u_int8_t *msg, u_int32_t msglen) switch (ntohl(ctl->type)) { case CTL_STATE: - log_msg(3, "net_ctl: got CTL_STATE from peer \"%s\"", p->name); + log_msg(5, "net_ctl: got CTL_STATE from peer \"%s\"", p->name); nstate = (enum RUNSTATE)ntohl(ctl->data); if (net_ctl_check_state(p, nstate) == 0) net_ctl_send_ack(p, CTL_STATE, cfgstate.runstate); @@ -126,7 +124,7 @@ net_ctl_handle_msg(struct syncpeer *p, u_int8_t *msg, u_int32_t msglen) ct = "<unknown>"; else ct = ctltype[ctype]; - log_msg(3, "net_ctl: got %s ACK from peer \"%s\"", ct, + log_msg(5, "net_ctl: got %s ACK from peer \"%s\"", ct, p->name); if (ctype == CTL_STATE) { nstate = (enum RUNSTATE)ntohl(ctl->data2); @@ -191,7 +189,7 @@ net_ctl_update_state(void) for (p = LIST_FIRST(&cfgstate.peerlist); p; p = LIST_NEXT(p, link)) { if (p->socket == -1) continue; - log_msg(2, "net_ctl: sending my state %s to peer \"%s\"", + log_msg(3, "net_ctl: sending my state %s to peer \"%s\"", carpstate[cfgstate.runstate], p->name); net_ctl_send_state(p); } |