00001 //==========================================================================
00002 // PROTOCOL.H - header for
00003 // OMNeT++
00004 // Discrete System Simulation in C++
00005 //
00006 //
00007 // Protocol constants
00008 //
00009 // Author: Andras Varga
00010 //
00011 //==========================================================================
00012
00013 /*--------------------------------------------------------------*
00014 Copyright (C) 1992-2003 Andras Varga
00015
00016 This file is distributed WITHOUT ANY WARRANTY. See the file
00017 `license' for details on this and other legal matters.
00018 *--------------------------------------------------------------*/
00019
00020 #ifndef __PROTOCOL_H
00021 #define __PROTOCOL_H
00022
00023
00024 //
00025 // THIS FILE IS EXPERIMENTAL. PLEASE GIVE FEEDBACK.
00026 //
00027
00028
00029 //
00030 // protocols
00031 //
00032 enum {
00033
00034 // physical
00035 // starting at 1000
00036
00037 // data-link
00038 PR_ETHERNET = 2000,
00039 PR_FDDI,
00040 PR_TOKENRING,
00041 PR_LAPB,
00042 PR_PPP,
00043 PR_WETHERNET,
00044
00045 // network
00046 PR_IP = 3000,
00047 PR_ICMP,
00048 PR_IPV6,
00049 PR_CLNP,
00050 PR_X25,
00051
00052 // transport
00053 PR_TCP = 4000,
00054 PR_UDP,
00055 PR_TP4,
00056
00057 // session
00058 // starting at 5000
00059
00060 // presentation
00061 PR_SSL = 6000,
00062
00063 // application
00064 PR_TELNET = 7000,
00065 PR_HTTP,
00066 PR_SMTP,
00067 PR_POP3,
00068 PR_UDP_APP,
00069 PR_NFS,
00070 PR_XWINDOW
00071
00072 // ATM
00073 // starting at 8000
00074
00075 // ...
00076 };
00077
00078
00079 //
00080 // PDU (frame,packet,etc) types
00081 //
00082 // DEPRECATED -- do not use.
00083 //
00084 enum {
00085
00086 PDU_CONNECT_REQUEST,
00087 PDU_CONNECT_CONFIRM,
00088 PDU_DATA,
00089 PDU_EXPEDITED_DATA,
00090 PDU_ACK,
00091 PDU_DISCONNECT_REQUEST,
00092 PDU_DISCONNECT_CONFIRM
00093 //...
00094 };
00095
00096 #endif
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001