Diff for /fwsync/driver/fwsync_workers.c between versions 1.9 and 1.10

version 1.9, 2022/08/10 00:03:50 version 1.10, 2022/08/11 21:59:05
Line 5 Line 5
 #include "fwsync.h"  #include "fwsync.h"
   
   
 static int  
 fwsync_add_state_4(struct ipfw_flow_id *fid, u_int ruleid, u_short rulenum,   
                 u_short kidx, u_char cmdtype)  
 {  
         struct ip_fw *rule = NULL;  
   
         DTRACE();  
   
         return ipfw_dyn_install_sync_state(fid, rule, ruleid, rulenum, kidx, cmdtype);  
 }  
   
 static int  
 fwsync_add_state_6(struct ipfw_flow_id *fid, u_int ruleid, u_short rulenum,   
                 u_short kidx, u_char cmdtype)  
 {  
         DTRACE();  
   
         return 0;  
 }  
   
 int  int
 fwsync_add_state(const struct fws_proto *pkt)  fwsync_add_state(const struct fws_proto *pkt)
 {  {
Line 228  fwsync_state_sync(const void *arg, const void *extdata Line 208  fwsync_state_sync(const void *arg, const void *extdata
 {  {
         struct fws_sndpkt *pkt;          struct fws_sndpkt *pkt;
         struct ipfw_flow_id fid;          struct ipfw_flow_id fid;
           struct ip_fw *rule;
           int f_pos;
           struct ip_fw_chain *chain = &V_layer3_chain;
   
         DTRACE();          DTRACE();
   
Line 266  fwsync_state_sync(const void *arg, const void *extdata Line 249  fwsync_state_sync(const void *arg, const void *extdata
                         return EINVAL;                          return EINVAL;
         }          }
   
        if (pkt->sp_proto.fws_addrtype == 4)        f_pos = ipfw_find_rule(chain, pkt->sp_proto.fws_ruleid, pkt->sp_proto.fws_rulenum);
                fwsync_add_state_4(&fid, pkt->sp_proto.fws_ruleid, pkt->sp_proto.fws_rulenum,         rule = chain->map[f_pos];
                                pkt->sp_proto.fws_kidx, pkt->sp_proto.fws_cmdtype);        ipfw_dyn_install_sync_state(&fid, rule, 
        else if (pkt->sp_proto.fws_addrtype == 6)                        pkt->sp_proto.fws_ruleid, pkt->sp_proto.fws_rulenum, 
                fwsync_add_state_6(&fid, pkt->sp_proto.fws_ruleid, pkt->sp_proto.fws_rulenum,                         pkt->sp_proto.fws_kidx, pkt->sp_proto.fws_cmdtype);
                                pkt->sp_proto.fws_kidx, pkt->sp_proto.fws_cmdtype); 
   
         free(pkt, M_FWSYNC);          free(pkt, M_FWSYNC);
         return 0;          return 0;

Removed from v.1.9  
changed lines
  Added in v.1.10


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>