mactime: upstream new features
[vpp.git] / src / plugins / mactime / mactime.h
index 1a13e41..928d7e9 100644 (file)
@@ -21,7 +21,7 @@
 #include <vnet/vnet.h>
 #include <vnet/ip/ip.h>
 #include <vnet/ethernet/ethernet.h>
-#include <vnet/ethernet/arp_packet.h>
+#include <vnet/ethernet/arp.h>
 #include <vlib/counter.h>
 
 #include <vppinfra/hash.h>
@@ -36,6 +36,7 @@ typedef struct
 {
   u8 *device_name;
   u8 mac_address[6];
+  u64 data_quota;
   u32 flags;
   clib_timebase_range_t *ranges;
 } mactime_device_t;
@@ -45,6 +46,7 @@ typedef struct
 #define MACTIME_DEVICE_FLAG_STATIC_ALLOW       (1<<1)
 #define MACTIME_DEVICE_FLAG_DYNAMIC_DROP       (1<<2)
 #define MACTIME_DEVICE_FLAG_DYNAMIC_ALLOW      (1<<3)
+#define MACTIME_DEVICE_FLAG_DROP_UDP_10001      (1<<4)
 
 typedef struct
 {