chiark / gitweb /
New option to allow changing interface flags.
[unet] / unet.h
diff --git a/unet.h b/unet.h
index 8609e5f30ed2478f3af9f931807118f9a57dbdc4..5854f9c57c2848646909d43b4c333c09abebad61 100644 (file)
--- a/unet.h
+++ b/unet.h
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: unet.h,v 1.1 2001/01/25 22:03:39 mdw Exp $
+ * $Id: unet.h,v 1.2 2001/02/19 19:10:28 mdw Exp $
  *
  * User-space network device support.
  *
@@ -29,6 +29,9 @@
 /*----- Revision history --------------------------------------------------*
  *
  * $Log: unet.h,v $
+ * Revision 1.2  2001/02/19 19:10:28  mdw
+ * New option to allow changing interface flags.
+ *
  * Revision 1.1  2001/01/25 22:03:39  mdw
  * Initial check-in (somewhat belated).
  *
@@ -151,6 +154,21 @@ struct unet_info {
 
 #define UNIOCSMAXIF _IO('U', 8)
 
+/* --- @UNIOCGIFFLAGS@ --- *
+ *
+ * Gets interface flags.  To complement @UNIOCSIFFLAGS@.
+ */
+
+#define UNIOCGIFFLAGS _IO('U', 9)
+
+/* --- @UNIOCSIFFLAGS@ --- *
+ *
+ * Sets interface flags.  This is required because there's no other sensible
+ * way to (e.g.) change the point-to-point flag.
+ */
+
+#define UNIOCSIFFLAGS _IO('U', 10)
+
 /*----- That's all, folks -------------------------------------------------*/
 
 #ifdef __cplusplus