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