summaryrefslogtreecommitdiff
path: root/sys/lib/libsa/tftp.c
diff options
context:
space:
mode:
authorzoltan <zoltan@NetBSD.org>2011-05-11 16:23:40 +0000
committerzoltan <zoltan@NetBSD.org>2011-05-11 16:23:40 +0000
commit58fedeb0096473e400c08fdd236e2b46c016c19b (patch)
treeebf7c7c057743404d09981b64ac747accf8265d9 /sys/lib/libsa/tftp.c
parentf648ddb4b3f70781c0df822bc8f5e6dd8449eefd (diff)
Separate the IP and UDP code paths inside libsa, so I can add HTTP booting
later.
Diffstat (limited to 'sys/lib/libsa/tftp.c')
-rw-r--r--sys/lib/libsa/tftp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/lib/libsa/tftp.c b/sys/lib/libsa/tftp.c
index 83c7e38b26e..a9a902e23f9 100644
--- a/sys/lib/libsa/tftp.c
+++ b/sys/lib/libsa/tftp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: tftp.c,v 1.30 2010/01/13 10:56:17 drochner Exp $ */
+/* $NetBSD: tftp.c,v 1.31 2011/05/11 16:23:40 zoltan Exp $ */
/*
* Copyright (c) 1996
@@ -73,7 +73,7 @@ struct tftp_handle {
int off;
const char *path; /* saved for re-requests */
struct {
- u_char header[HEADER_SIZE];
+ u_char header[UDP_TOTAL_HEADER_SIZE];
struct tftphdr t;
u_char space[RSPACE];
} lastdata;
@@ -153,7 +153,7 @@ static int
tftp_makereq(struct tftp_handle *h)
{
struct {
- u_char header[HEADER_SIZE];
+ u_char header[UDP_TOTAL_HEADER_SIZE];
struct tftphdr t;
u_char space[FNAME_SIZE + 6];
} wbuf;
@@ -196,7 +196,7 @@ static int
tftp_getnextblock(struct tftp_handle *h)
{
struct {
- u_char header[HEADER_SIZE];
+ u_char header[UDP_TOTAL_HEADER_SIZE];
struct tftphdr t;
} wbuf;
char *wtail;
@@ -229,7 +229,7 @@ static void
tftp_terminate(struct tftp_handle *h)
{
struct {
- u_char header[HEADER_SIZE];
+ u_char header[UDP_TOTAL_HEADER_SIZE];
struct tftphdr t;
} wbuf;
char *wtail;