tag | line | file | source code |
frwl | 457 | net/inet/ip_fw.c | static int add_to_chain(struct ip_fw **chainptr, struct ip_fw *frwl) |
frwl | 481 | net/inet/ip_fw.c | memcpy(ftmp, frwl, sizeof( struct ip_fw ) ); |
frwl | 636 | net/inet/ip_fw.c | static int del_from_chain(struct ip_fw **chainptr, struct ip_fw *frwl) |
frwl | 663 | net/inet/ip_fw.c | if ((memcmp(&ftmp->src,&frwl->src,sizeof(struct in_addr))) |
frwl | 664 | net/inet/ip_fw.c | || (memcmp(&ftmp->src_mask,&frwl->src_mask,sizeof(struct in_addr))) |
frwl | 665 | net/inet/ip_fw.c | || (memcmp(&ftmp->dst,&frwl->dst,sizeof(struct in_addr))) |
frwl | 666 | net/inet/ip_fw.c | || (memcmp(&ftmp->dst_mask,&frwl->dst_mask,sizeof(struct in_addr))) |
frwl | 667 | net/inet/ip_fw.c | || (ftmp->flags!=frwl->flags)) |
frwl | 671 | net/inet/ip_fw.c | tport2=frwl->n_src_p+frwl->n_dst_p; |
frwl | 677 | net/inet/ip_fw.c | if (ftmp->ports[tmpnum]!=frwl->ports[tmpnum]) |
frwl | 711 | net/inet/ip_fw.c | struct ip_fw *check_ipfw_struct(struct ip_fw *frwl, int len) |
frwl | 723 | net/inet/ip_fw.c | if ( (frwl->flags & ~IP_FW_F_MASK) != 0 ) |
frwl | 727 | net/inet/ip_fw.c | frwl->flags); |
frwl | 732 | net/inet/ip_fw.c | if ( (frwl->flags & IP_FW_F_SRNG) && frwl->n_src_p < 2 ) |
frwl | 736 | net/inet/ip_fw.c | frwl->n_src_p); |
frwl | 741 | net/inet/ip_fw.c | if ( (frwl->flags & IP_FW_F_DRNG) && frwl->n_dst_p < 2 ) |
frwl | 745 | net/inet/ip_fw.c | frwl->n_dst_p); |
frwl | 750 | net/inet/ip_fw.c | if ( frwl->n_src_p + frwl->n_dst_p > IP_FW_MAX_PORTS ) |
frwl | 754 | net/inet/ip_fw.c | frwl->n_src_p,frwl->n_dst_p); |
frwl | 759 | net/inet/ip_fw.c | return frwl; |
frwl | 782 | net/inet/ip_fw.c | struct ip_fw *frwl; |
frwl | 784 | net/inet/ip_fw.c | if (!(frwl=check_ipfw_struct(m,len))) |
frwl | 790 | net/inet/ip_fw.c | return( add_to_chain(&ip_acct_chain,frwl)); |
frwl | 792 | net/inet/ip_fw.c | return( del_from_chain(&ip_acct_chain,frwl)); |
frwl | 873 | net/inet/ip_fw.c | struct ip_fw *frwl; |
frwl | 874 | net/inet/ip_fw.c | frwl=check_ipfw_struct(m,len); |
frwl | 875 | net/inet/ip_fw.c | if (frwl==NULL) |
frwl | 881 | net/inet/ip_fw.c | return(add_to_chain(&ip_fw_blk_chain,frwl)); |
frwl | 883 | net/inet/ip_fw.c | return(add_to_chain(&ip_fw_fwd_chain,frwl)); |
frwl | 885 | net/inet/ip_fw.c | return(del_from_chain(&ip_fw_blk_chain,frwl)); |
frwl | 887 | net/inet/ip_fw.c | return(del_from_chain(&ip_fw_fwd_chain,frwl)); |