tag | line | file | source code |
frwl | 457 | net/inet/ip_fw.c | static int add_to_chain(struct ip_fw *volatile* chainptr, struct ip_fw *frwl) |
frwl | 481 | net/inet/ip_fw.c | memcpy(ftmp, frwl, sizeof( struct ip_fw ) ); |
frwl | 637 | net/inet/ip_fw.c | static int del_from_chain(struct ip_fw *volatile*chainptr, struct ip_fw *frwl) |
frwl | 664 | net/inet/ip_fw.c | if ((memcmp(&ftmp->src,&frwl->src,sizeof(struct in_addr))) |
frwl | 665 | net/inet/ip_fw.c | || (memcmp(&ftmp->src_mask,&frwl->src_mask,sizeof(struct in_addr))) |
frwl | 666 | net/inet/ip_fw.c | || (memcmp(&ftmp->dst,&frwl->dst,sizeof(struct in_addr))) |
frwl | 667 | net/inet/ip_fw.c | || (memcmp(&ftmp->dst_mask,&frwl->dst_mask,sizeof(struct in_addr))) |
frwl | 668 | net/inet/ip_fw.c | || (ftmp->flags!=frwl->flags)) |
frwl | 672 | net/inet/ip_fw.c | tport2=frwl->n_src_p+frwl->n_dst_p; |
frwl | 678 | net/inet/ip_fw.c | if (ftmp->ports[tmpnum]!=frwl->ports[tmpnum]) |
frwl | 712 | net/inet/ip_fw.c | struct ip_fw *check_ipfw_struct(struct ip_fw *frwl, int len) |
frwl | 724 | net/inet/ip_fw.c | if ( (frwl->flags & ~IP_FW_F_MASK) != 0 ) |
frwl | 728 | net/inet/ip_fw.c | frwl->flags); |
frwl | 733 | net/inet/ip_fw.c | if ( (frwl->flags & IP_FW_F_SRNG) && frwl->n_src_p < 2 ) |
frwl | 737 | net/inet/ip_fw.c | frwl->n_src_p); |
frwl | 742 | net/inet/ip_fw.c | if ( (frwl->flags & IP_FW_F_DRNG) && frwl->n_dst_p < 2 ) |
frwl | 746 | net/inet/ip_fw.c | frwl->n_dst_p); |
frwl | 751 | net/inet/ip_fw.c | if ( frwl->n_src_p + frwl->n_dst_p > IP_FW_MAX_PORTS ) |
frwl | 755 | net/inet/ip_fw.c | frwl->n_src_p,frwl->n_dst_p); |
frwl | 760 | net/inet/ip_fw.c | return frwl; |
frwl | 783 | net/inet/ip_fw.c | struct ip_fw *frwl; |
frwl | 785 | net/inet/ip_fw.c | if (!(frwl=check_ipfw_struct(m,len))) |
frwl | 791 | net/inet/ip_fw.c | return( add_to_chain(&ip_acct_chain,frwl)); |
frwl | 793 | net/inet/ip_fw.c | return( del_from_chain(&ip_acct_chain,frwl)); |
frwl | 874 | net/inet/ip_fw.c | struct ip_fw *frwl; |
frwl | 875 | net/inet/ip_fw.c | frwl=check_ipfw_struct(m,len); |
frwl | 876 | net/inet/ip_fw.c | if (frwl==NULL) |
frwl | 882 | net/inet/ip_fw.c | return(add_to_chain(&ip_fw_blk_chain,frwl)); |
frwl | 884 | net/inet/ip_fw.c | return(add_to_chain(&ip_fw_fwd_chain,frwl)); |
frwl | 886 | net/inet/ip_fw.c | return(del_from_chain(&ip_fw_blk_chain,frwl)); |
frwl | 888 | net/inet/ip_fw.c | return(del_from_chain(&ip_fw_fwd_chain,frwl)); |