home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / unix / unixlib_1 / !UnixLib37_netlib_clib_netinet_h_udp < prev    next >
Encoding:
Text File  |  1996-05-10  |  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.