/* FTN.h */


/* This C include file defines some of the structures used in the FidoNet
   technology. This file was compiled from the FidoNet documentary by
   Sami Klemola. */

struct Packet { /* Type-2 Packet Format */
    UWORD OrgNode;          /* Origination node address   0-65535       */
    UWORD DstNode;          /* Destination node address   1-65535       */
    UWORD Year;             /* Year packet generated      19??-2???     */
    UWORD Month;            /* Month  "        "          0-11 (0=Jan)  */
    UWORD Day;              /* Day    "        "          1-31          */
    UWORD Hour;             /* Hour   "        "          0-23          */
    UWORD Min;              /* Minute "        "          0-59          */
    UWORD Sec;              /* Second "        "          0-59          */
    UWORD Baud;             /* Baud Rate (not in use)     ????          */
    UWORD PktVer;           /* Packet Version             Always 2      */
    UWORD OrgNet;           /* Origination net address    1-65535       */
    UWORD DstNet;           /* Destination net address    1-65535       */
    UBYTE PrdCodL;          /* FTSC Product Code     (lo) 1-255         */
    UBYTE PVMajor;          /* FTSC Product Rev   (major) 1-255         */
    u_char Password[8];     /* Packet password            A-Z,0-9       */
    UWORD QOrgZone;         /* Orig Zone (ZMailQ,QMail)   1-65535       */
    UWORD QDstZone;         /* Dest Zone (ZMailQ,QMail)   1-65535       */
    UWORD Filler;           /* Spare Change               ?             */
    UWORD CapValid;         /* CW Byte-Swapped Valid Copy BitField      */
    UBYTE PrdCodH;          /* FTSC Product Code     (hi) 1-255         */
    UBYTE PVMinor;          /* FTSC Product Rev   (minor) 1-255         */
    UWORD CapWord;          /* Capability Word            BitField      */
    UWORD OrigZone;         /* Origination Zone           1-65535       */
    UWORD DestZone;         /* Destination Zone           1-65535       */
    UWORD OrigPoint;        /* Origination Point          1-65535       */
    UWORD DestPoint;        /* Destination Point          1-65535       */
    ULONG ProdData;         /* Product-specific data      Whatever      */
    UWORD PktTerm;          /* Packet terminator          0000          */
}; /* 0x3c */

