taglinefilesource code
frwl457net/inet/ip_fw.cstatic int add_to_chain(struct ip_fw **chainptr, struct ip_fw *frwl)
frwl481net/inet/ip_fw.cmemcpy(ftmp, frwl, sizeof( struct ip_fw ) );
frwl636net/inet/ip_fw.cstatic int del_from_chain(struct ip_fw **chainptr, struct ip_fw *frwl)
frwl663net/inet/ip_fw.cif ((memcmp(&ftmp->src,&frwl->src,sizeof(struct in_addr))) 
frwl664net/inet/ip_fw.c|| (memcmp(&ftmp->src_mask,&frwl->src_mask,sizeof(struct in_addr)))
frwl665net/inet/ip_fw.c|| (memcmp(&ftmp->dst,&frwl->dst,sizeof(struct in_addr)))
frwl666net/inet/ip_fw.c|| (memcmp(&ftmp->dst_mask,&frwl->dst_mask,sizeof(struct in_addr)))
frwl667net/inet/ip_fw.c|| (ftmp->flags!=frwl->flags))
frwl671net/inet/ip_fw.ctport2=frwl->n_src_p+frwl->n_dst_p;
frwl677net/inet/ip_fw.cif (ftmp->ports[tmpnum]!=frwl->ports[tmpnum])
frwl711net/inet/ip_fw.cstruct ip_fw *check_ipfw_struct(struct ip_fw *frwl, int len)
frwl723net/inet/ip_fw.cif ( (frwl->flags & ~IP_FW_F_MASK) != 0 )
frwl727net/inet/ip_fw.cfrwl->flags);
frwl732net/inet/ip_fw.cif ( (frwl->flags & IP_FW_F_SRNG) && frwl->n_src_p < 2 ) 
frwl736net/inet/ip_fw.cfrwl->n_src_p);
frwl741net/inet/ip_fw.cif ( (frwl->flags & IP_FW_F_DRNG) && frwl->n_dst_p < 2 ) 
frwl745net/inet/ip_fw.cfrwl->n_dst_p);
frwl750net/inet/ip_fw.cif ( frwl->n_src_p + frwl->n_dst_p > IP_FW_MAX_PORTS ) 
frwl754net/inet/ip_fw.cfrwl->n_src_p,frwl->n_dst_p);
frwl759net/inet/ip_fw.creturn frwl;
frwl782net/inet/ip_fw.cstruct ip_fw *frwl;
frwl784net/inet/ip_fw.cif (!(frwl=check_ipfw_struct(m,len)))
frwl790net/inet/ip_fw.creturn( add_to_chain(&ip_acct_chain,frwl));
frwl792net/inet/ip_fw.creturn( del_from_chain(&ip_acct_chain,frwl));
frwl873net/inet/ip_fw.cstruct ip_fw *frwl;
frwl874net/inet/ip_fw.cfrwl=check_ipfw_struct(m,len);
frwl875net/inet/ip_fw.cif (frwl==NULL)
frwl881net/inet/ip_fw.creturn(add_to_chain(&ip_fw_blk_chain,frwl));
frwl883net/inet/ip_fw.creturn(add_to_chain(&ip_fw_fwd_chain,frwl));
frwl885net/inet/ip_fw.creturn(del_from_chain(&ip_fw_blk_chain,frwl));
frwl887net/inet/ip_fw.creturn(del_from_chain(&ip_fw_fwd_chain,frwl));