diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-07-13 11:01:36 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-07-13 11:01:36 +0000 |
commit | 8b4f92eb10cc8475dde595267c343b6fa7e42dc0 (patch) | |
tree | f88f41c10c46d9b00531c0178b7d4301a25e3119 /usr.sbin/tcpdump/print-tftp.c | |
parent | 3b13e49cceec57c39e28d4263a3b3e19421dd2ea (diff) |
it is 3.2 now.
Diffstat (limited to 'usr.sbin/tcpdump/print-tftp.c')
-rw-r--r-- | usr.sbin/tcpdump/print-tftp.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/usr.sbin/tcpdump/print-tftp.c b/usr.sbin/tcpdump/print-tftp.c index da9a1f968da..a0c7bfbd68c 100644 --- a/usr.sbin/tcpdump/print-tftp.c +++ b/usr.sbin/tcpdump/print-tftp.c @@ -1,8 +1,7 @@ -/**//* $OpenBSD: print-tftp.c,v 1.3 1996/06/10 07:47:51 deraadt Exp $ */ -/* $NetBSD: print-tftp.c,v 1.2 1995/03/06 19:11:35 mycroft Exp $ */ +/* $OpenBSD: print-tftp.c,v 1.4 1996/07/13 11:01:32 mickey Exp $ */ /* - * Copyright (c) 1990, 1991, 1993, 1994 + * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -26,7 +25,7 @@ #ifndef lint static char rcsid[] = - "@(#) Header: print-tftp.c,v 1.20 94/06/14 20:18:49 leres Exp (LBL)"; + "@(#) Header: print-tftp.c,v 1.23 96/06/23 02:11:47 leres Exp (LBL)"; #endif #include <sys/param.h> @@ -45,7 +44,7 @@ static char rcsid[] = #include "addrtoname.h" /* op code to string mapping */ -static struct token op2str[] = { +static struct tok op2str[] = { { RRQ, "RRQ" }, /* read request */ { WRQ, "WRQ" }, /* write request */ { DATA, "DATA" }, /* data packet */ @@ -55,7 +54,7 @@ static struct token op2str[] = { }; /* error code to string mapping */ -static struct token err2str[] = { +static struct tok err2str[] = { { EUNDEF, "EUNDEF" }, /* not defined */ { ENOTFOUND, "ENOTFOUND" }, /* file not found */ { EACCESS, "EACCESS" }, /* access violation */ @@ -81,7 +80,7 @@ tftp_print(register const u_char *bp, int length) static char tstr[] = " [|tftp]"; tp = (const struct tftphdr *)bp; - /* 'ep' points to the end of avaible data. */ + /* 'ep' points to the end of available data. */ ep = snapend; /* Print length */ @@ -116,14 +115,12 @@ tftp_print(register const u_char *bp, int length) } break; + case ACK: case DATA: TCHECK(tp->th_block, sizeof(tp->th_block)); printf(" block %d", ntohs(tp->th_block)); break; - case ACK: - break; - case ERROR: /* Print error code string */ TCHECK(tp->th_code, sizeof(tp->th_code)); |