]> rtime.felk.cvut.cz Git - frescor/fwp.git/blobdiff - fwp/lib/fwp/fwp_vres.c
FWP clean-up. CONFIG_WITH_CONTNEGT changed to CONFIG_WITHOUT_CONNEGT.
[frescor/fwp.git] / fwp / lib / fwp / fwp_vres.c
index 42305748281ddc562242b1c11417eb3d08fa3683..9206a42f0e03170687f1864582059fbb8222087a 100644 (file)
@@ -31,13 +31,12 @@ struct fwp_vres{
        /* consideration: move tx_queue to endpoint */
        /**< queue for messages to send */
        struct fwp_msgq                 tx_queue;   
-       int                             flags;
+       fwp_vres_flag_t                 flags;
        /**< endpoint bounded to this vres */
        /*fwp_endpoint_t                *epoint; */
        pthread_t                       tx_thread; /**< tx_thread id*/
        pthread_attr_t                  tx_thread_attr;
        int                             ac_sockd;  /**< ac socket descriptor */
-       fwp_sockaddr_t                  addr;   /**< dest addr,for effectivness*/
 };
 
 typedef
@@ -158,7 +157,7 @@ static inline int fwp_vres_is_valid(fwp_vres_t *vres)
 
 /*inline int fwp_vres_get(fwp_vres_id_t vres_id, fwp_vres_t **vres )
 {
-       3if ((vres_id < 0) || (vres_id > fwp_vres_table.nr_vres - 1))
+       if ((vres_id < 0) || (vres_id > fwp_vres_table.nr_vres - 1))
                return -EINVAL;
        *vres = &fwp_vres_table.entry[vres_id];
        return 0;