genericopenlibs/cstdlib/LINCINET/UDP.H
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 /* UDP.H
       
     2  * 
       
     3  * Portions Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies).
       
     4  * All rights reserved.
       
     5  */
       
     6 
       
     7 /*
       
     8  * Copyright (c) 1982, 1986 Regents of the University of California.
       
     9  * All rights reserved.  The Berkeley software License Agreement
       
    10  * specifies the terms and conditions for redistribution.
       
    11  */
       
    12 
       
    13 /*
       
    14  * Udp protocol header.
       
    15  * Per RFC 768, September, 1981.
       
    16  */
       
    17 
       
    18 #ifndef	_NETINET_UDP_H
       
    19 #define	_NETINET_UDP_H
       
    20 
       
    21 #ifdef	__cplusplus
       
    22 extern "C" {
       
    23 #endif
       
    24 /**
       
    25 @publishedAll
       
    26 @released
       
    27 */
       
    28 struct udphdr {
       
    29 	u_short	uh_sport;		/* source port */
       
    30 	u_short	uh_dport;		/* destination port */
       
    31 	short	uh_ulen;		/* udp length */
       
    32 	u_short	uh_sum;			/* udp checksum */
       
    33 };
       
    34 
       
    35 #ifdef	__cplusplus
       
    36 }
       
    37 #endif
       
    38 
       
    39 #endif	/* _NETINET_UDP_H */