Lines Matching defs:cmdsize
444 copyto32fw_insn( struct ip_fw_32 *fw32 , struct ip_fw *user_ip_fw, int cmdsize)
453 end = ((char*)user_ip_fw->cmd) + cmdsize;
478 copyto64fw_insn( struct ip_fw_64 *fw64 , struct ip_fw *user_ip_fw, int cmdsize)
487 end = ((char *)user_ip_fw->cmd) + cmdsize;
514 size_t rulesize, cmdsize;
532 cmdsize = user_ip_fw->cmd_len * sizeof(u_int32_t);
533 copyto32fw_insn( fw32, user_ip_fw, cmdsize );
539 size_t rulesize, cmdsize;
558 cmdsize = copysize - sizeof(struct ip_fw_64) + 4;
560 cmdsize = user_ip_fw->cmd_len * sizeof(u_int32_t);
561 copyto64fw_insn( fw64, user_ip_fw, cmdsize);
565 copyfrom32fw_insn( struct ip_fw_32 *fw32 , struct ip_fw *user_ip_fw, int cmdsize)
574 end = ((char*)fw32->cmd) + cmdsize;
602 copyfrom64fw_insn( struct ip_fw_64 *fw64 , struct ip_fw *user_ip_fw, int cmdsize)
611 end = ((char *)fw64->cmd) + cmdsize ;
640 size_t rulesize, cmdsize;
659 cmdsize = copysize - sizeof(struct ip_fw_32)-4;
661 cmdsize = fw32->cmd_len * sizeof(ipfw_insn);
662 cmdsize = copyfrom32fw_insn( fw32, user_ip_fw, cmdsize);
663 return( sizeof(struct ip_fw) + cmdsize - 4);
669 size_t rulesize, cmdsize;
689 cmdsize = copysize - sizeof(struct ip_fw_64)-4;
691 cmdsize = fw64->cmd_len * sizeof(ipfw_insn);
692 cmdsize = copyfrom64fw_insn( fw64, user_ip_fw, cmdsize);
693 return( sizeof(struct ip_fw) + cmdsize - 4);