Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet u_int -> uint
details: https://anonhg.NetBSD.org/src/rev/58d00430133c
branches: trunk
changeset: 771967:58d00430133c
user: christos <christos%NetBSD.org@localhost>
date: Sun Dec 11 23:56:10 2011 +0000
description:
u_int -> uint
diffstat:
sys/netinet/tcp.h | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diffs (57 lines):
diff -r 3bcac1f4932e -r 58d00430133c sys/netinet/tcp.h
--- a/sys/netinet/tcp.h Sun Dec 11 23:01:55 2011 +0000
+++ b/sys/netinet/tcp.h Sun Dec 11 23:56:10 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp.h,v 1.28 2007/12/25 18:33:47 perry Exp $ */
+/* $NetBSD: tcp.h,v 1.29 2011/12/11 23:56:10 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -38,28 +38,28 @@
#if defined(_NETBSD_SOURCE)
-typedef u_int32_t tcp_seq;
+typedef uint32_t tcp_seq;
/*
* TCP header.
* Per RFC 793, September, 1981.
* Updated by RFC 3168, September, 2001.
*/
struct tcphdr {
- u_int16_t th_sport; /* source port */
- u_int16_t th_dport; /* destination port */
+ uint16_t th_sport; /* source port */
+ uint16_t th_dport; /* destination port */
tcp_seq th_seq; /* sequence number */
tcp_seq th_ack; /* acknowledgement number */
#if BYTE_ORDER == LITTLE_ENDIAN
/*LINTED non-portable bitfields*/
- u_int8_t th_x2:4, /* (unused) */
+ uint8_t th_x2:4, /* (unused) */
th_off:4; /* data offset */
#endif
#if BYTE_ORDER == BIG_ENDIAN
/*LINTED non-portable bitfields*/
- u_int8_t th_off:4, /* data offset */
+ uint8_t th_off:4, /* data offset */
th_x2:4; /* (unused) */
#endif
- u_int8_t th_flags;
+ uint8_t th_flags;
#define TH_FIN 0x01
#define TH_SYN 0x02
#define TH_RST 0x04
@@ -68,9 +68,9 @@
#define TH_URG 0x20
#define TH_ECE 0x40
#define TH_CWR 0x80
- u_int16_t th_win; /* window */
- u_int16_t th_sum; /* checksum */
- u_int16_t th_urp; /* urgent pointer */
+ uint16_t th_win; /* window */
+ uint16_t th_sum; /* checksum */
+ uint16_t th_urp; /* urgent pointer */
} __packed;
#define TCPOPT_EOL 0
Home |
Main Index |
Thread Index |
Old Index