aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/mactime/mactime.api
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/mactime/mactime.api')
-rw-r--r--src/plugins/mactime/mactime.api20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/plugins/mactime/mactime.api b/src/plugins/mactime/mactime.api
index 7cad7828fe4..d9049d8dbd1 100644
--- a/src/plugins/mactime/mactime.api
+++ b/src/plugins/mactime/mactime.api
@@ -14,15 +14,15 @@
*/
/** \file
- This file defines vpp mactime control-plane API messages
+ This file defines vpp mactime control-plane API messages
*/
-option version = "1.0.0";
+option version = "1.1.0";
-/** \brief api to enable or disable the time-based src mac filter on
+/** \brief api to enable or disable the time-based src mac filter on
an interface
*/
-autoreply define mactime_enable_disable
+autoreply define mactime_enable_disable
{
u32 client_index; /**< client index, from api_main */
u32 context; /**< application context */
@@ -31,14 +31,14 @@ autoreply define mactime_enable_disable
};
/** \brief a time range structure
- * times are in double-precision fp seconds since 1/1/1970,
+ * times are in double-precision fp seconds since 1/1/1970,
* which was a Thursday.
*/
typeonly define time_range
{
f64 start; /**< start of the time range */
f64 end; /**< end of the time range */
-};
+};
/** \brief configure per src-mac time ranges
*
@@ -54,9 +54,9 @@ typeonly define time_range
* set count = number of ranges
* set each range start/end in seconds since Sunday began
* As in: start/end >= 0.0 && start/end < 7.0 *86400.0
- *
+ *
* to create a (time-range-based) dynamic drop entry:
- * Same procedure to create a dynamic allow entry,
+ * Same procedure to create a dynamic allow entry,
* set drop=1 instead of allow=1
*
* to delete a per src-mac entry (of any kind)
@@ -74,11 +74,13 @@ autoreply define mactime_add_del_range
u8 is_add; /**< add=1, del=0 */
u8 drop; /**< drop flag */
u8 allow; /**< allow flag */
+ u8 no_udp_10001; /**< drop udp to port 10001 */
+ u64 data_quota; /**< max bytes this device */
u8 mac_address[6]; /**< src mac address */
u8 device_name[64]; /**< device name */
u32 count; /**< number of time ranges to follow */
/** time ranges, in seconds since Sunday began */
- vl_api_time_range_t ranges[count];
+ vl_api_time_range_t ranges[count];
};
/*