taglinefilesource code
frwl457net/inet/ip_fw.cstatic int add_to_chain(struct ip_fw *volatile* chainptr, struct ip_fw *frwl)
frwl481net/inet/ip_fw.cmemcpy(ftmp, frwl, sizeof( struct ip_fw ) );
frwl637net/inet/ip_fw.cstatic int del_from_chain(struct ip_fw *volatile*chainptr, struct ip_fw *frwl)
frwl664net/inet/ip_fw.cif ((memcmp(&ftmp->src,&frwl->src,sizeof(struct in_addr))) 
frwl665net/inet/ip_fw.c|| (memcmp(&ftmp->src_mask,&frwl->src_mask,sizeof(struct in_addr)))
frwl666net/inet/ip_fw.c|| (memcmp(&ftmp->dst,&frwl->dst,sizeof(struct in_addr)))
frwl667net/inet/ip_fw.c|| (memcmp(&ftmp->dst_mask,&frwl->dst_mask,sizeof(struct in_addr)))
frwl668net/inet/ip_fw.c|| (ftmp->flags!=frwl->flags))
frwl672net/inet/ip_fw.ctport2=frwl->n_src_p+frwl->n_dst_p;
frwl678net/inet/ip_fw.cif (ftmp->ports[tmpnum]!=frwl->ports[tmpnum])
frwl712net/inet/ip_fw.cstruct ip_fw *check_ipfw_struct(struct ip_fw *frwl, int len)
frwl724net/inet/ip_fw.cif ( (frwl->flags & ~IP_FW_F_MASK) != 0 )
frwl728net/inet/ip_fw.cfrwl->flags);
frwl733net/inet/ip_fw.cif ( (frwl->flags & IP_FW_F_SRNG) && frwl->n_src_p < 2 ) 
frwl737net/inet/ip_fw.cfrwl->n_src_p);
frwl742net/inet/ip_fw.cif ( (frwl->flags & IP_FW_F_DRNG) && frwl->n_dst_p < 2 ) 
frwl746net/inet/ip_fw.cfrwl->n_dst_p);
frwl751net/inet/ip_fw.cif ( frwl->n_src_p + frwl->n_dst_p > IP_FW_MAX_PORTS ) 
frwl755net/inet/ip_fw.cfrwl->n_src_p,frwl->n_dst_p);
frwl760net/inet/ip_fw.creturn frwl;
frwl783net/inet/ip_fw.cstruct ip_fw *frwl;
frwl785net/inet/ip_fw.cif (!(frwl=check_ipfw_struct(m,len)))
frwl791net/inet/ip_fw.creturn( add_to_chain(&ip_acct_chain,frwl));
frwl793net/inet/ip_fw.creturn( del_from_chain(&ip_acct_chain,frwl));
frwl874net/inet/ip_fw.cstruct ip_fw *frwl;
frwl875net/inet/ip_fw.cfrwl=check_ipfw_struct(m,len);
frwl876net/inet/ip_fw.cif (frwl==NULL)
frwl882net/inet/ip_fw.creturn(add_to_chain(&ip_fw_blk_chain,frwl));
frwl884net/inet/ip_fw.creturn(add_to_chain(&ip_fw_fwd_chain,frwl));
frwl886net/inet/ip_fw.creturn(del_from_chain(&ip_fw_blk_chain,frwl));
frwl888net/inet/ip_fw.creturn(del_from_chain(&ip_fw_fwd_chain,frwl));