summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2019-01-23 08:23:19 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2019-01-23 08:23:19 +0000
commit9a7883e58c9d81ebe27ce0b344d0a369c4f0ba8d (patch)
tree6bdc52a03bfa7206019474f6a0f13adc8665cb78 /sys/net
parentd3914356a310a8e193264388faf84b19ed40204e (diff)
add a SIOCGPWE3 ioctl for interfaces to advertise pwe3 capability
im going to turn mpw into an ethernet interface, which includes changing its if_type to IFT_ETHER. currently ldpd looks for if_type IFT_MPLSTUNNEL to decide if an interface is a pseudowire, ie, it's going to break. the ioctl will let ldpd ask the interface if it is pseudowire capable as an alternative. ok claudio@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 7bb0378ac5b..8606cb982ef 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.198 2018/11/12 23:34:48 dlg Exp $ */
+/* $OpenBSD: if.h,v 1.199 2019/01/23 08:23:18 dlg Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -420,6 +420,7 @@ struct ifreq {
#define ifr_index ifr_ifru.ifru_index /* interface index */
#define ifr_llprio ifr_ifru.ifru_metric /* link layer priority */
#define ifr_hdrprio ifr_ifru.ifru_metric /* header prio field config */
+#define ifr_pwe3 ifr_ifru.ifru_metric /* PWE3 type */
};
#define IF_HDRPRIO_MIN IFQ_MINPRIO
@@ -427,6 +428,9 @@ struct ifreq {
#define IF_HDRPRIO_PACKET -1 /* use mbuf prio */
#define IF_HDRPRIO_PAYLOAD -2 /* copy payload prio */
+#define IF_PWE3_ETHERNET 1 /* ethernet or ethernet tagged */
+#define IF_PWE3_IP 2 /* IP layer 2 */
+
struct ifaliasreq {
char ifra_name[IFNAMSIZ]; /* if name, e.g. "en0" */
union {