home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / bsd / netinet / tcp_debug.h < prev    next >
C/C++ Source or Header  |  1992-07-29  |  1KB  |  41 lines

  1. /*
  2.  * Copyright (c) 1982, 1986 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 this notice is preserved and that due credit is given
  7.  * to the University of California at Berkeley. The name of the University
  8.  * may not be used to endorse or promote products derived from this
  9.  * software without specific prior written permission. This software
  10.  * is provided ``as is'' without express or implied warranty.
  11.  *
  12.  *    @(#)tcp_debug.h    7.2 (Berkeley) 12/7/87
  13.  */
  14.  
  15. struct    tcp_debug {
  16.     n_time    td_time;
  17.     short    td_act;
  18.     short    td_ostate;
  19.     caddr_t    td_tcb;
  20.     struct    tcpiphdr td_ti;
  21.     short    td_req;
  22.     struct    tcpcb td_cb;
  23. };
  24.  
  25. #define    TA_INPUT     0
  26. #define    TA_OUTPUT    1
  27. #define    TA_USER        2
  28. #define    TA_RESPOND    3
  29. #define    TA_DROP        4
  30.  
  31. #if    DEBUG
  32. #ifdef TANAMES
  33. char    *tanames[] =
  34.     { "input", "output", "user", "respond", "drop" };
  35. #endif
  36.  
  37. #define    TCP_NDEBUG 10
  38. struct    tcp_debug tcp_debug[TCP_NDEBUG];
  39. int    tcp_debx;
  40. #endif    DEBUG
  41.