tftp
__dead static void tftp(struct tftphdr *, int);
tftp(tp, n);
struct fs_ops ops_tftp = FS_OPS(tftp);
struct fs_ops file_system_tftp = FS_OPS(tftp);
struct fs_ops file_system_tftp = FS_OPS(tftp);
printf("%x \r", tftp->info.block*512);
if (tftp->info.op_code == FTPOP_ERR) {
tftp->info.block, tftp->data);
if (tftp->info.block != last_ack + 1) {
if (tftp->info.block < last_ack +1) {
do_send_tftp(tftp->info.block);
&tftp->data, oldlen - 12);
memcpy(loadat, &tftp->data, oldlen - 12);
struct tftphr *tftp = (struct tftphr *)(buf + sizeof(struct ether_header) +
struct fs_ops fs_tftp = FS_OPS(tftp);
static struct fs_ops file_system_tftp = FS_OPS(tftp);
struct tftphdr *tftp;
size_t hdrlen = sizeof(*tftp) - sizeof(tftp->th_data);
packetlen = sizeof(tftp->th_opcode) + namelen + sizeof(octetstr);
tftp = mtod(m_outbuf, struct tftphdr *);
memset(tftp, 0, packetlen);
tftp->th_opcode = htons((short)RRQ);
cp = tftp->th_stuff;
tftp->th_opcode = htons((short)ACK);
tftp->th_block = htons(trh->trh_block);
struct tftphdr *tftp;
size_t hdrlen = sizeof(*tftp) - sizeof(tftp->th_data);
if (m->m_len > sizeof(*tftp)) {
if ((m = *mp = m_pullup(m, sizeof(*tftp))) == NULL) {
tftp = mtod(m, struct tftphdr *);
switch(ntohs(tftp->th_opcode)) {
if ((tftp->th_data[i] < ' ') ||
(tftp->th_data[i] > '~')) {
errbuf[i] = tftp->th_data[i];
ntohs(tftp->th_code), errbuf);
__func__, __LINE__, ntohs(tftp->th_opcode)));
if (ntohs(tftp->th_block) != trh->trh_block) {
__func__, __LINE__, trh->trh_block, ntohs(tftp->th_block)));
FS_DEF(tftp);
struct fs_ops tftp_fs_ops = FS_OPS(tftp);