home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / comm / amitcp-sdk-4.0.lha / AmiTCP-SDK / netinclude / netinet / udp.h < prev   
Encoding:
C/C++ Source or Header  |  1994-10-06  |  525 b   |  20 lines

  1. #ifndef NETINET_UDP_H
  2. #define NETINET_UDP_H \
  3.        "$Id: udp.h,v 4.1 1994/10/05 23:16:35 ppessi Exp $"
  4. /*
  5.  *      UDP protocol header, per RFC 768, September, 1981.
  6.  *
  7.  *      Copyright © 1994 AmiTCP/IP Group,
  8.  *                       Network Solutions Development, Inc.
  9.  *                       All rights reserved.
  10.  */
  11.  
  12. struct udphdr {
  13.     u_short    uh_sport;        /* source port */
  14.     u_short    uh_dport;        /* destination port */
  15.     short    uh_ulen;        /* udp length */
  16.     u_short    uh_sum;            /* udp checksum */
  17. };
  18.  
  19. #endif /* !NETINET_UDP_H */
  20.