tag | line | file | source code |
frwl | 426 | net/inet/ip_fw.c | static int add_to_chain(struct ip_fw *volatile* chainptr, struct ip_fw *frwl) |
frwl | 450 | net/inet/ip_fw.c | memcpy(ftmp, frwl, sizeof( struct ip_fw ) ); |
frwl | 611 | net/inet/ip_fw.c | static int del_from_chain(struct ip_fw *volatile*chainptr, struct ip_fw *frwl) |
frwl | 638 | net/inet/ip_fw.c | if (ftmp->fw_src.s_addr!=frwl->fw_src.s_addr |
frwl | 639 | net/inet/ip_fw.c | || ftmp->fw_dst.s_addr!=frwl->fw_dst.s_addr |
frwl | 640 | net/inet/ip_fw.c | || ftmp->fw_smsk.s_addr!=frwl->fw_smsk.s_addr |
frwl | 641 | net/inet/ip_fw.c | || ftmp->fw_dmsk.s_addr!=frwl->fw_dmsk.s_addr |
frwl | 642 | net/inet/ip_fw.c | || ftmp->fw_via.s_addr!=frwl->fw_via.s_addr |
frwl | 643 | net/inet/ip_fw.c | || ftmp->fw_flg!=frwl->fw_flg) |
frwl | 647 | net/inet/ip_fw.c | tport2=frwl->fw_nsp+frwl->fw_ndp; |
frwl | 653 | net/inet/ip_fw.c | if (ftmp->fw_pts[tmpnum]!=frwl->fw_pts[tmpnum]) |
frwl | 687 | net/inet/ip_fw.c | struct ip_fw *check_ipfw_struct(struct ip_fw *frwl, int len) |
frwl | 699 | net/inet/ip_fw.c | if ( (frwl->fw_flg & ~IP_FW_F_MASK) != 0 ) |
frwl | 703 | net/inet/ip_fw.c | frwl->fw_flg); |
frwl | 708 | net/inet/ip_fw.c | if ( (frwl->fw_flg & IP_FW_F_SRNG) && frwl->fw_nsp < 2 ) |
frwl | 712 | net/inet/ip_fw.c | frwl->fw_nsp); |
frwl | 717 | net/inet/ip_fw.c | if ( (frwl->fw_flg & IP_FW_F_DRNG) && frwl->fw_ndp < 2 ) |
frwl | 721 | net/inet/ip_fw.c | frwl->fw_ndp); |
frwl | 726 | net/inet/ip_fw.c | if ( frwl->fw_nsp + frwl->fw_ndp > IP_FW_MAX_PORTS ) |
frwl | 730 | net/inet/ip_fw.c | frwl->fw_nsp,frwl->fw_ndp); |
frwl | 735 | net/inet/ip_fw.c | return frwl; |
frwl | 765 | net/inet/ip_fw.c | struct ip_fw *frwl; |
frwl | 767 | net/inet/ip_fw.c | if (!(frwl=check_ipfw_struct(m,len))) |
frwl | 773 | net/inet/ip_fw.c | return( add_to_chain(&ip_acct_chain,frwl)); |
frwl | 775 | net/inet/ip_fw.c | return( del_from_chain(&ip_acct_chain,frwl)); |
frwl | 884 | net/inet/ip_fw.c | struct ip_fw *frwl; |
frwl | 885 | net/inet/ip_fw.c | frwl=check_ipfw_struct(m,len); |
frwl | 886 | net/inet/ip_fw.c | if (frwl==NULL) |
frwl | 892 | net/inet/ip_fw.c | return(add_to_chain(&ip_fw_blk_chain,frwl)); |
frwl | 894 | net/inet/ip_fw.c | return(add_to_chain(&ip_fw_fwd_chain,frwl)); |
frwl | 896 | net/inet/ip_fw.c | return(del_from_chain(&ip_fw_blk_chain,frwl)); |
frwl | 898 | net/inet/ip_fw.c | return(del_from_chain(&ip_fw_fwd_chain,frwl)); |