summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2017-11-16 15:35:07 +0000
committertb <tb@openbsd.org>2017-11-16 15:35:07 +0000
commitfd40c22bcad6f4129570e4f05ff17d09c75cb71f (patch)
tree699d66e7cc0ab78d09e56b760c7df4e804ecb078
parentCheck that http options are only configured in http protocols. (diff)
downloadwireguard-openbsd-fd40c22bcad6f4129570e4f05ff17d09c75cb71f.tar.xz
wireguard-openbsd-fd40c22bcad6f4129570e4f05ff17d09c75cb71f.zip
sync struct ifreq with if.h. ifr_vnetid is now a proper member of
struct ifreq and is no longer overloaded with ifr_metric. Moreover, ifr_index and ifr_llprio were missing and mandoc -Tlint complained about a "useless macro: Tn". ok jmc, benno, visa
-rw-r--r--share/man/man4/netintro.414
1 files changed, 8 insertions, 6 deletions
diff --git a/share/man/man4/netintro.4 b/share/man/man4/netintro.4
index 3df0aacf160..4340846662f 100644
--- a/share/man/man4/netintro.4
+++ b/share/man/man4/netintro.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: netintro.4,v 1.49 2015/09/11 13:04:05 stsp Exp $
+.\" $OpenBSD: netintro.4,v 1.50 2017/11/16 15:35:07 tb 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 11 2015 $
+.Dd $Mdocdate: November 16 2017 $
.Dt NETINTRO 4
.Os
.Sh NAME
@@ -125,9 +125,7 @@ The system currently supports the
Internet protocols (IPv4 and IPv6),
MPLS,
and a few others.
-Raw socket interfaces are provided to the
-.Tn IP
-protocol
+Raw socket interfaces are provided to the IP protocol
layer of the
Internet.
Consult the appropriate manual pages in this section for more
@@ -215,8 +213,10 @@ struct ifreq {
struct sockaddr ifru_broadaddr;
short ifru_flags;
int ifru_metric;
+ int64_t ifru_vnetid;
uint64_t ifru_media;
caddr_t ifru_data;
+ unsigned int ifru_index;
} ifr_ifru;
#define ifr_addr ifr_ifru.ifru_addr /* address */
#define ifr_dstaddr ifr_ifru.ifru_dstaddr /* other end of p-to-p link */
@@ -227,9 +227,11 @@ struct ifreq {
#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_vnetid ifr_ifru.ifru_vnetid /* Virtual Net Id */
#define ifr_ttl ifr_ifru.ifru_metric /* tunnel TTL (overload) */
#define ifr_data ifr_ifru.ifru_data /* for use by interface */
+#define ifr_index ifr_ifru.ifru_index /* interface index */
+#define ifr_llprio ifr_ifru.ifru_metric /* link layer priority */
};
.Ed
.Pp