summaryrefslogtreecommitdiff
path: root/libexec/tftpd
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2020-12-06 18:43:12 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2020-12-06 18:43:12 +0000
commita1c4a3eaf122d2d0a875ac73c1032d988a318826 (patch)
tree79b9bc0d19276dd576a22c20ba3020fc75094099 /libexec/tftpd
parent2c7ada9917383b6135568e2c81c0116d124bd4a2 (diff)
downloadsrc-test-a1c4a3eaf122d2d0a875ac73c1032d988a318826.tar.gz
src-test-a1c4a3eaf122d2d0a875ac73c1032d988a318826.zip
When dropping packets (RRQ or WRQ) for debugging, report the send
operation as successful. Reporting a failure stops the transfer instead of using timeouts. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=368394
Diffstat (limited to 'libexec/tftpd')
-rw-r--r--libexec/tftpd/tftp-io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/tftpd/tftp-io.c b/libexec/tftpd/tftp-io.c
index 962fe5579e0fc..459a81508e2bb 100644
--- a/libexec/tftpd/tftp-io.c
+++ b/libexec/tftpd/tftp-io.c
@@ -190,7 +190,7 @@ send_wrq(int peer, char *filename, char *mode)
filename, mode
);
- DROPPACKETn("send_wrq", 1);
+ DROPPACKETn("send_wrq", 0);
tp = (struct tftphdr *)buf;
tp->th_opcode = htons((u_short)WRQ);
@@ -238,7 +238,7 @@ send_rrq(int peer, char *filename, char *mode)
filename, mode
);
- DROPPACKETn("send_rrq", 1);
+ DROPPACKETn("send_rrq", 0);
tp = (struct tftphdr *)buf;
tp->th_opcode = htons((u_short)RRQ);