Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #ifndef _NETINET_UDP_H
  2. #define _NETINET_UDP_H
  3.  
  4. #include <sys/cdefs.h>
  5. #include <sys/types.h>
  6.  
  7. __BEGIN_DECLS
  8.  
  9. struct udphdr {         /* size 8     28/0x1c with IP header */
  10.   uint16_t source;      /* offset 0   20/0x14 */
  11.   uint16_t dest;        /* offset 2   22/0x16 */
  12.   uint16_t len;         /* offset 4   24/0x18 */
  13.   uint16_t check;       /* offset 6   26/0x1a */
  14. };
  15.  
  16. #define SOL_UDP            17      /* sockopt level for UDP */
  17.  
  18. __END_DECLS
  19.  
  20. #endif
  21.