# 2.11BSD#431 - /usr/include/arpa/tftp.h

##### Macros

    ACK               X
    DATA              X
    EACCESS           X
    EBADID            X
    EBADOP            X
    EEXISTS           X
    ENOSPACE          X
    ENOTFOUND         X
    ENOUSER           X
    ERROR             X
    EUNDEF            X
    RRQ               X
    SEGSIZE           X
    WRQ               X
    th_block          X
    th_code           X
    th_msg            X
    th_stuff          X

##### struct's

    tftphdr           X

       1: /*
       2:  * Copyright (c) 1983 Regents of the University of California.
       3:  * All rights reserved.
       4:  *
       5:  * Redistribution and use in source and binary forms are permitted
       6:  * provided that the above copyright notice and this paragraph are
       7:  * duplicated in all such forms and that any documentation,
       8:  * advertising materials, and other materials related to such
       9:  * distribution and use acknowledge that the software was developed
      10:  * by the University of California, Berkeley.  The name of the
      11:  * University may not be used to endorse or promote products derived
      12:  * from this software without specific prior written permission.
      13:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
      14:  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
      15:  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
      16:  *
      17:  *	@(#)tftp.h	5.2 (Berkeley) 6/27/88
      18:  */
      19:
      20: /*
      21:  * Trivial File Transfer Protocol (IEN-133)
      22:  */
      23: #define SEGSIZE     512     /* data segment size */
      24:
      25: /*
      26:  * Packet types.
      27:  */
      28: #define RRQ 01          /* read request */
      29: #define WRQ 02          /* write request */
      30: #define DATA    03          /* data packet */
      31: #define ACK 04          /* acknowledgement */
      32: #define ERROR   05          /* error code */
      33:
      34: struct  tftphdr {
      35:     short   th_opcode;      /* packet type */
      36:     union {
      37:         short   tu_block;   /* block # */
      38:         short   tu_code;    /* error code */
      39:         char    tu_stuff[1];    /* request packet stuff */
      40:     } th_u;
      41:     char    th_data[1];     /* data or error string */
      42: };
      43:
      44: #define th_block    th_u.tu_block
      45: #define th_code     th_u.tu_code
      46: #define th_stuff    th_u.tu_stuff
      47: #define th_msg      th_data
      48:
      49: /*
      50:  * Error codes.
      51:  */
      52: #define EUNDEF      0       /* not defined */
      53: #define ENOTFOUND   1       /* file not found */
      54: #define EACCESS     2       /* access violation */
      55: #define ENOSPACE    3       /* disk full or allocation exceeded */
      56: #define EBADOP      4       /* illegal TFTP operation */
      57: #define EBADID      5       /* unknown transfer ID */
      58: #define EEXISTS     6       /* file already exists */
      59: #define ENOUSER     7       /* no such user */

#### Defined struct's

tftphdr defined in line 34; used 68 times

- in /usr/src/libexec/tftpd/tftpd.c line 73(2), 159(2), 188(2), 306-312(6), 374-380(6), 467-471(4)
- in /usr/src/ucb/tftp/tftp.c line 76-77(4), 87(2), 177-178(4), 188(2), 278(2), 318-322(4), 342(2)
- in /usr/src/ucb/tftp/tftpsubs.c line 61-66(8), 76(2), 85(2), 97(2), 113(2), 120(2), 155(2), 163(2), 183(2), 191(2)

#### Defined macros

ACK defined in line 31; used 6 times

- in /usr/src/libexec/tftpd/tftpd.c line 344, 383, 426
- in /usr/src/ucb/tftp/tftp.c line 139, 198, 265

DATA defined in line 30; used 5 times

- in /usr/src/libexec/tftpd/tftpd.c line 319, 405, 435
- in /usr/src/ucb/tftp/tftp.c line 102, 238

EACCESS defined in line 54; used 8 times

- in /usr/src/libexec/tftpd/tftpd.c line 257, 263-276(5), 449
- in /usr/src/ucb/tftp/tftp.c line 299

EBADID defined in line 57; used 2 times

- in /usr/src/libexec/tftpd/tftpd.c line 452
- in /usr/src/ucb/tftp/tftp.c line 302

EBADOP defined in line 56; used 4 times

- in /usr/src/libexec/tftpd/tftpd.c line 204, 219, 451
- in /usr/src/ucb/tftp/tftp.c line 301

EEXISTS defined in line 58; used 2 times

- in /usr/src/libexec/tftpd/tftpd.c line 453
- in /usr/src/ucb/tftp/tftp.c line 303

ENOSPACE defined in line 55; used 3 times

- in /usr/src/libexec/tftpd/tftpd.c line 419, 450
- in /usr/src/ucb/tftp/tftp.c line 300

ENOTFOUND defined in line 53; used 3 times

- in /usr/src/libexec/tftpd/tftpd.c line 270, 448
- in /usr/src/ucb/tftp/tftp.c line 298

ENOUSER defined in line 59; used 2 times

- in /usr/src/libexec/tftpd/tftpd.c line 454
- in /usr/src/ucb/tftp/tftp.c line 304

ERROR defined in line 32; used 7 times

- in /usr/src/libexec/tftpd/tftpd.c line 341, 403, 472
- in /usr/src/ucb/tftp/tftp.c line 134, 233, 323, 351

EUNDEF defined in line 52; used 4 times

- in /usr/src/libexec/tftpd/tftpd.c line 447, 479
- in /usr/src/ucb/tftp/tftp.c line 297, 330

RRQ defined in line 28; used 6 times

- in /usr/src/libexec/tftpd/tftpd.c line 161, 271, 278-281(2)
- in /usr/src/ucb/tftp/tftp.c line 195, 351

SEGSIZE defined in line 23; used 9 times

- in /usr/src/libexec/tftpd/tftpd.c line 61, 357, 422
- in /usr/src/ucb/tftp/tftp.c line 51, 161, 263
- in /usr/src/ucb/tftp/tftpsubs.c line 42, 123-128(2)

WRQ defined in line 29; used 3 times

- in /usr/src/libexec/tftpd/tftpd.c line 161, 227
- in /usr/src/ucb/tftp/tftp.c line 94

th_block defined in line 44; used 25 times

- in /usr/src/libexec/tftpd/tftpd.c line 320, 339(2), 345-350(2), 384, 402-411(4), 427, 436
- in /usr/src/ucb/tftp/tftp.c line 103, 133(2), 142, 153, 199, 232(2), 241, 251, 266, 366-370(2)

th_code defined in line 45; used 7 times

- in /usr/src/libexec/tftpd/tftpd.c line 473, 479
- in /usr/src/ucb/tftp/tftp.c line 135, 234, 324, 330, 374

th_msg defined in line 47; used 6 times

- in /usr/src/libexec/tftpd/tftpd.c line 481-483(2)
- in /usr/src/ucb/tftp/tftp.c line 136, 235, 332, 374

th_stuff defined in line 46; used 3 times

- in /usr/src/libexec/tftpd/tftpd.c line 196
- in /usr/src/ucb/tftp/tftp.c line 283, 360

#### Usage of this include

tftp.h used 3 times

- in /usr/src/libexec/tftpd/tftpd.c line 43
- in /usr/src/ucb/tftp/tftp.c line 35
- in /usr/src/ucb/tftp/tftpsubs.c line 39

Last modified: 1988-09-30 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1619 |