mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-05 19:35:52 +03:00
* sysdeps/gnu/netinet/udp.h (struct udphdr): Use u_int16_t
type instead of uint16_t. Formatting.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2004-10-26 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/gnu/netinet/udp.h (struct udphdr): Use u_int16_t
|
||||||
|
type instead of uint16_t. Formatting.
|
||||||
|
|
||||||
2004-10-25 Roland McGrath <roland@redhat.com>
|
2004-10-25 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
* login/openpty.c (openpty): Add libutil_hidden_def.
|
* login/openpty.c (openpty): Add libutil_hidden_def.
|
||||||
|
@@ -54,21 +54,23 @@
|
|||||||
|
|
||||||
/* UDP header as specified by RFC 768, August 1980. */
|
/* UDP header as specified by RFC 768, August 1980. */
|
||||||
#ifdef __FAVOR_BSD
|
#ifdef __FAVOR_BSD
|
||||||
|
|
||||||
struct udphdr
|
struct udphdr
|
||||||
{
|
{
|
||||||
uint16_t uh_sport; /* source port */
|
u_int16_t uh_sport; /* source port */
|
||||||
uint16_t uh_dport; /* destination port */
|
u_int16_t uh_dport; /* destination port */
|
||||||
uint16_t uh_ulen; /* udp length */
|
u_int16_t uh_ulen; /* udp length */
|
||||||
uint16_t uh_sum; /* udp checksum */
|
u_int16_t uh_sum; /* udp checksum */
|
||||||
};
|
};
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
struct udphdr
|
struct udphdr
|
||||||
{
|
{
|
||||||
uint16_t source;
|
u_int16_t source;
|
||||||
uint16_t dest;
|
u_int16_t dest;
|
||||||
uint16_t len;
|
u_int16_t len;
|
||||||
uint16_t check;
|
u_int16_t check;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user