1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericopenlibs/cstdlib/LINCINET/UDP.H Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,39 @@
1.4 +/* UDP.H
1.5 + *
1.6 + * Portions Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies).
1.7 + * All rights reserved.
1.8 + */
1.9 +
1.10 +/*
1.11 + * Copyright (c) 1982, 1986 Regents of the University of California.
1.12 + * All rights reserved. The Berkeley software License Agreement
1.13 + * specifies the terms and conditions for redistribution.
1.14 + */
1.15 +
1.16 +/*
1.17 + * Udp protocol header.
1.18 + * Per RFC 768, September, 1981.
1.19 + */
1.20 +
1.21 +#ifndef _NETINET_UDP_H
1.22 +#define _NETINET_UDP_H
1.23 +
1.24 +#ifdef __cplusplus
1.25 +extern "C" {
1.26 +#endif
1.27 +/**
1.28 +@publishedAll
1.29 +@released
1.30 +*/
1.31 +struct udphdr {
1.32 + u_short uh_sport; /* source port */
1.33 + u_short uh_dport; /* destination port */
1.34 + short uh_ulen; /* udp length */
1.35 + u_short uh_sum; /* udp checksum */
1.36 +};
1.37 +
1.38 +#ifdef __cplusplus
1.39 +}
1.40 +#endif
1.41 +
1.42 +#endif /* _NETINET_UDP_H */