diff options
author | 2016-10-05 12:01:15 +0000 | |
---|---|---|
committer | 2016-10-05 12:01:15 +0000 | |
commit | 6db8863c257bc6a6489da1195b8f5581d99805dd (patch) | |
tree | ce34eb4dde11029e5603871316cec899b47a94a3 | |
parent | Make the sgi boot blocks read the real OpenBSD disklabel instead of (diff) | |
download | wireguard-openbsd-6db8863c257bc6a6489da1195b8f5581d99805dd.tar.xz wireguard-openbsd-6db8863c257bc6a6489da1195b8f5581d99805dd.zip |
More debugging
-rw-r--r-- | usr.sbin/switchd/ofrelay.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/switchd/ofrelay.c b/usr.sbin/switchd/ofrelay.c index 93d3142d0a4..a403d26d8ed 100644 --- a/usr.sbin/switchd/ofrelay.c +++ b/usr.sbin/switchd/ofrelay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofrelay.c,v 1.2 2016/09/30 12:33:43 reyk Exp $ */ +/* $OpenBSD: ofrelay.c,v 1.3 2016/10/05 12:01:15 reyk Exp $ */ /* * Copyright (c) 2016 Reyk Floeter <reyk@openbsd.org> @@ -155,6 +155,9 @@ ofrelay_event(int fd, short event, void *arg) goto fail; } + DPRINTF("%s: connection %u.%u read %zd bytes", __func__, + con->con_id, con->con_instance, rlen); + if ((len = ofrelay_input_close(con, rbuf, rlen)) == -1) { error = "close input"; goto fail; |