tftp
static void tftp(struct tftphdr *, int);
tftp(tp, n);
tftperror(ntohs(tftp->th_code)));
tftp_parse_oack((char *)&tftp->th_stuff,
fraglen - sizeof (tftp->th_opcode), &opts));
(void) sprintf(get_line((char *)(uintptr_t)tftp->th_opcode -
dlc_header, 2), "Opcode = %d (%s)", ntohs(tftp->th_opcode),
show_type(ntohs(tftp->th_opcode)));
switch (ntohs(tftp->th_opcode)) {
name = (char *)&tftp->th_stuff;
(char *)(uintptr_t)tftp->th_block - dlc_header, 2),
"Data block = %d%s", ntohs(tftp->th_block),
(char *)(uintptr_t)tftp->th_data - dlc_header,
(char *)(uintptr_t)tftp->th_block - dlc_header, 2),
"Acknowledge block = %d", ntohs(tftp->th_block));
(char *)(uintptr_t)tftp->th_code - dlc_header, 2),
"Error = %d (%s)", ntohs(tftp->th_code),
tftperror(ntohs(tftp->th_code)));
(char *)(uintptr_t)tftp->th_data -
dlc_header, strlen(tftp->th_data) + 1),
"Error string = \"%s\"", tftp->th_data);
(char *)(uintptr_t)tftp->th_code - dlc_header, 2),
tftp_parse_oack((char *)&tftp->th_stuff,
fraglen - sizeof (tftp->th_opcode), &opts));
struct tftphdr *tftp = data;
switch (ntohs(tftp->th_opcode)) {
switch (ntohs(tftp->th_opcode)) {
name = (char *)&tftp->th_stuff;
name = (char *)&tftp->th_stuff;
ntohs(tftp->th_block), blocksize,
ntohs(tftp->th_block));
extern int tftp P((const char *name, int (*)(unsigned char *, unsigned int, unsigned int, int)));