|
@ -53,10 +53,10 @@ |
|
|
#define ERROR 05 /* error code */ |
|
|
#define ERROR 05 /* error code */ |
|
|
|
|
|
|
|
|
struct tftphdr { |
|
|
struct tftphdr { |
|
|
short th_opcode; /* packet type */ |
|
|
|
|
|
|
|
|
u_int16_t th_opcode; /* packet type */ |
|
|
union { |
|
|
union { |
|
|
short tu_block; /* block # */ |
|
|
|
|
|
short tu_code; /* error code */ |
|
|
|
|
|
|
|
|
u_int16_t tu_block; /* block # */ |
|
|
|
|
|
u_int16_t tu_code; /* error code */ |
|
|
char tu_stuff[1]; /* request packet stuff */ |
|
|
char tu_stuff[1]; /* request packet stuff */ |
|
|
} th_u; |
|
|
} th_u; |
|
|
char th_data[1]; /* data or error string */ |
|
|
char th_data[1]; /* data or error string */ |
|
|