]> git.lizzy.rs Git - plan9front.git/commitdiff
ip/tftpd: add a syslog message about what error we return to the client on a NAK
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sun, 11 Apr 2021 21:58:30 +0000 (23:58 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sun, 11 Apr 2021 21:58:30 +0000 (23:58 +0200)
sys/src/cmd/ip/tftpd.c

index 07ca3b37e0ebae31ec635de12e7862f44093225e..3744647c772795a7640e1f26e3b14e470720e4f5 100644 (file)
@@ -737,6 +737,8 @@ nak(int fd, int code, char *msg)
        buf[n-1] = 0;
        if(write(fd, buf, n) != n)
                sysfatal("write nak: %r");
+
+       syslog(dbg, flog, "tftpd %d sent NAK '%s' to %s", pid, msg, raddr);
 }
 
 void