2

I'm trying to implement a tftp server. I've got a stucture :

typedef struct {
    u_int16_t opcode;
    char filename[MAXPATH_STRLEN + 1];
    char mode[MAXMODE_STRLEN + 1];
    char timeout[MAXMODE_STRLEN];
    char rexmut[MAXMODE_STRLEN];

} tftp_rwq_hdr;

where I accept a r/w request in tftp protol. When I'm using standart tftp to put a file, listening a request with this structure, I can get the opcode,filename and mode, but I can't get timeout neither rexmut.

So my question is what is the standart way to get the timeout and rexmut from a request like this.

vyegorov
  • 21,787
  • 7
  • 59
  • 73
user970009
  • 21
  • 2

0 Answers0