summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-02-19 17:31:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-02-19 17:31:42 +0000
commitf080422a1ec06ca95c3d2f92e322c05c7add8fdb (patch)
tree9fba60e5d85c0e763540df845695a7e4eec6eccf
parent7a8a9debb261e5de046f1ea9c233d2fbb86b394d (diff)
use more modern types
-rw-r--r--share/man/man4/inet6.48
-rw-r--r--sys/netinet6/in6.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/share/man/man4/inet6.4 b/share/man/man4/inet6.4
index 0a5337704a7..3348669fdb5 100644
--- a/share/man/man4/inet6.4
+++ b/share/man/man4/inet6.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: inet6.4,v 1.5 2000/01/06 02:21:37 itojun Exp $
+.\" $OpenBSD: inet6.4,v 1.6 2000/02/19 17:31:41 deraadt Exp $
.\"
.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
.\" All rights reserved.
@@ -78,9 +78,9 @@ Sockets bound to the
family utilize the following addressing structure,
.Bd -literal -offset indent
struct sockaddr_in6 {
- u_char sin6_len;
- u_char sin6_family;
- u_int16_t sin6_port;
+ u_int8_t sin6_len;
+ sa_family_t sin6_family;
+ in_port_t sin6_port;
u_int32_t sin6_flowinfo;
struct in6_addr sin6_addr;
u_int32_t sin6_scope_id;
diff --git a/sys/netinet6/in6.h b/sys/netinet6/in6.h
index 0ef0ccb076a..5ffa0900e71 100644
--- a/sys/netinet6/in6.h
+++ b/sys/netinet6/in6.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6.h,v 1.10 2000/02/09 07:37:15 itojun Exp $ */
+/* $OpenBSD: in6.h,v 1.11 2000/02/19 17:31:40 deraadt Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
* All rights reserved.
@@ -141,9 +141,9 @@ struct in6_addr {
#define SIN6_LEN
#endif
struct sockaddr_in6 {
- u_char sin6_len; /* length of this struct(sa_family_t)*/
- u_char sin6_family; /* AF_INET6 (sa_family_t) */
- u_int16_t sin6_port; /* Transport layer port # (in_port_t)*/
+ u_int8_t sin6_len; /* length of this struct(sa_family_t)*/
+ sa_family_t sin6_family; /* AF_INET6 (sa_family_t) */
+ in_port_t sin6_port; /* Transport layer port # (in_port_t)*/
u_int32_t sin6_flowinfo; /* IP6 flow information */
struct in6_addr sin6_addr; /* IP6 address */
u_int32_t sin6_scope_id; /* intface scope id */