]> rtime.felk.cvut.cz Git - frescor/fwp.git/blobdiff - fwp/lib/fwp/fwp_vres.h
Introduce src parameter in FWP contracts
[frescor/fwp.git] / fwp / lib / fwp / fwp_vres.h
index 44f9d6b6c4fa1a4f22ad7e5fdd9df88d938fff76..24188f8c6288eb42be3770aafe44a0a59edf6687 100644 (file)
@@ -46,6 +46,8 @@
 #ifndef _FWP_VRES_H
 #define _FWP_VRES_H
 
+#include <netinet/in.h>
+
 struct fwp_vres;
 typedef struct fwp_vres* fwp_vres_d_t;
 
@@ -83,6 +85,9 @@ struct fwp_vres_params {
        /** all time units are in microseconds */       
        fwp_period_t    period; 
        fwp_ac_t        ac_id;          /**< AC id ~ priority of vres */
+       /** Forced source address. If non-zero, packets are sent over
+        * the specified interface. */
+       struct in_addr  src;
 } fwp_vres_params_t;
 
 int fwp_vres_table_init(unsigned int max_vres);