home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / languages / netlib / !NetLib / netinet / h / udp < prev   
Encoding:
Text File  |  1995-05-23  |  339 b   |  19 lines

  1. #ifndef __netinet_udp_h
  2. #define __netinet_udp_h
  3.  
  4. #include "sys/types.h"
  5.  
  6. /*
  7.  * Structure of a UDP header
  8.  * Per RFC 768, September, 1981.
  9.  */
  10.  
  11. struct udphdr {
  12.   u_short uh_sport;      /* Source port */
  13.   u_short uh_dport;      /* Destination port */
  14.   short   uh_ulen;       /* Length */
  15.   u_short uh_sum;        /* Checksum */
  16. };
  17.  
  18. #endif
  19.