diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2015-09-11 13:04:06 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2015-09-11 13:04:06 +0000 |
commit | db7c444230f422bcd33e42d4f505b1bb6ebb51c9 (patch) | |
tree | 3b8acc78e05234273ee8c820d4ec259b7ec2dcbc /share/man/man4 | |
parent | 3d171a4db66892148674cac27c097a312be43a1c (diff) |
documentation updates for ifmedia64
Diffstat (limited to 'share/man/man4')
-rw-r--r-- | share/man/man4/netintro.4 | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/share/man/man4/netintro.4 b/share/man/man4/netintro.4 index 3ab210619f5..3df0aacf160 100644 --- a/share/man/man4/netintro.4 +++ b/share/man/man4/netintro.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: netintro.4,v 1.48 2015/09/10 17:55:21 schwarze Exp $ +.\" $OpenBSD: netintro.4,v 1.49 2015/09/11 13:04:05 stsp Exp $ .\" $NetBSD: netintro.4,v 1.4 1995/10/19 08:03:40 jtc Exp $ .\" .\" Copyright (c) 1983, 1990, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)netintro.4 8.2 (Berkeley) 11/30/93 .\" -.Dd $Mdocdate: September 10 2015 $ +.Dd $Mdocdate: September 11 2015 $ .Dt NETINTRO 4 .Os .Sh NAME @@ -210,21 +210,26 @@ struct ifreq { #define IFNAMSIZ 16 char ifr_name[IFNAMSIZ]; /* if name, e.g. "en0" */ union { - struct sockaddr ifru_addr; - struct sockaddr ifru_dstaddr; - struct sockaddr ifru_broadaddr; - short ifru_flags; - int ifru_metric; - caddr_t ifru_data; + struct sockaddr ifru_addr; + struct sockaddr ifru_dstaddr; + struct sockaddr ifru_broadaddr; + short ifru_flags; + int ifru_metric; + uint64_t ifru_media; + caddr_t ifru_data; } ifr_ifru; -#define ifr_addr ifr_ifru.ifru_addr /* address */ -#define ifr_dstaddr ifr_ifru.ifru_dstaddr /* p-to-p peer */ -#define ifr_broadaddr ifr_ifru.ifru_broadaddr /* broadcast address */ -#define ifr_flags ifr_ifru.ifru_flags /* flags */ -#define ifr_metric ifr_ifru.ifru_metric /* metric */ -#define ifr_mtu ifr_ifru.ifru_metric /* mtu (overload) */ -#define ifr_media ifr_ifru.ifru_metric /* media options */ -#define ifr_data ifr_ifru.ifru_data /* used by interface */ +#define ifr_addr ifr_ifru.ifru_addr /* address */ +#define ifr_dstaddr ifr_ifru.ifru_dstaddr /* other end of p-to-p link */ +#define ifr_broadaddr ifr_ifru.ifru_broadaddr /* broadcast address */ +#define ifr_flags ifr_ifru.ifru_flags /* flags */ +#define ifr_metric ifr_ifru.ifru_metric /* metric */ +#define ifr_mtu ifr_ifru.ifru_metric /* mtu (overload) */ +#define ifr_hardmtu ifr_ifru.ifru_metric /* hardmtu (overload) */ +#define ifr_media ifr_ifru.ifru_media /* media options */ +#define ifr_rdomainid ifr_ifru.ifru_metric /* VRF instance (overload) */ +#define ifr_vnetid ifr_ifru.ifru_metric /* Virtual Net Id (overload) */ +#define ifr_ttl ifr_ifru.ifru_metric /* tunnel TTL (overload) */ +#define ifr_data ifr_ifru.ifru_data /* for use by interface */ }; .Ed .Pp @@ -295,13 +300,13 @@ The structure is as follows: .Bd -literal struct ifmediareq { - char ifm_name[IFNAMSIZ]; /* if name, e.g. "en0" */ - int ifm_current; /* current media options */ - int ifm_mask; /* don't care mask */ - int ifm_status; /* media status */ - int ifm_active; /* active options */ - int ifm_count; /* #entries in ifm_ulist array */ - int *ifm_ulist; /* media words */ + char ifm_name[IFNAMSIZ]; /* if name, e.g. "en0" */ + uint64_t ifm_current; /* current media options */ + uint64_t ifm_mask; /* don't care mask */ + uint64_t ifm_status; /* media status */ + uint64_t ifm_active; /* active options */ + int ifm_count; /* #entries in ifm_ulist array */ + uint64_t *ifm_ulist; /* media words */ }; .Ed .Pp |