Lines Matching refs:tftp
30 #include <arpa/tftp.h>
38 interpret_tftp(int flags, struct tftphdr *tftp, int fraglen)
44 switch (ntohs(tftp->th_opcode)) {
55 switch (ntohs(tftp->th_opcode)) {
57 name = (char *)&tftp->th_stuff;
63 name = (char *)&tftp->th_stuff;
71 ntohs(tftp->th_block),
78 ntohs(tftp->th_block));
83 tftperror(ntohs(tftp->th_code)));
92 (void) sprintf(get_line((char *)(uintptr_t)tftp->th_opcode -
95 ntohs(tftp->th_opcode),
96 show_type(ntohs(tftp->th_opcode)));
98 switch (ntohs(tftp->th_opcode)) {
101 name = (char *)&tftp->th_stuff;
115 get_line((char *)(uintptr_t)tftp->th_block -
117 ntohs(tftp->th_block),
119 (void) sprintf(get_line((char *)(uintptr_t)tftp->th_data -
126 (void) sprintf(get_line((char *)(uintptr_t)tftp->th_block -
128 ntohs(tftp->th_block));
132 (void) sprintf(get_line((char *)(uintptr_t)tftp->th_code -
134 ntohs(tftp->th_code),
135 tftperror(ntohs(tftp->th_code)));
136 (void) sprintf(get_line((char *)(uintptr_t)tftp->th_data -
137 dlc_header, strlen(tftp->th_data) + 1),
138 "Error string = \"%s\"", tftp->th_data);