| /src/sys/external/bsd/ipf/netinet/ |
| ip_nat.h | 98 * Generally nat_t structures have references from at least two places. 104 * that a nat_t structure is generally referenced from is the NAT hash table. 108 * having its own chain of nat_t structures. To support these chains, 110 * points back to the pointer that is pointing to the nat_t in the chain, 111 * be it the bucket at the top or simply the previous nat_t chain entry. 156 } nat_t; typedef in typeref:struct:nat 496 nat_t **ns_table; 541 nat_t *ns_instances; 662 nat_t **ipf_nat_table[2]; 663 nat_t *ipf_nat_instances [all...] |
| ip_netbios_pxy.c | 44 int ipf_p_netbios_out(void *, fr_info_t *, ap_session_t *, nat_t *); 75 ipf_p_netbios_out(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat)
|
| ip_tftp_pxy.c | 18 int ipf_p_tftp_backchannel(fr_info_t *, ap_session_t *, nat_t *); 20 nat_t *); 21 int ipf_p_tftp_in(void *, fr_info_t *, ap_session_t *, nat_t *); 24 int ipf_p_tftp_new(void *, fr_info_t *, ap_session_t *, nat_t *); 26 int ipf_p_tftp_out(void *, fr_info_t *, ap_session_t *, nat_t *); 28 nat_t *); 132 ipf_p_tftp_out(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) 144 ipf_p_tftp_in(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) 156 ipf_p_tftp_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) 268 ipf_p_tftp_backchannel(fr_info_t *fin, ap_session_t *aps, nat_t *nat [all...] |
| ip_rcmd_pxy.c | 31 int ipf_p_rcmd_new(void *, fr_info_t *, ap_session_t *, nat_t *); 32 int ipf_p_rcmd_out(void *, fr_info_t *, ap_session_t *, nat_t *); 33 int ipf_p_rcmd_in(void *, fr_info_t *, ap_session_t *, nat_t *); 35 int ipf_p_rcmd_portmsg(fr_info_t *, ap_session_t *, nat_t *); 70 ipf_p_rcmd_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) 133 ipf_p_rcmd_portmsg(fr_info_t *fin, ap_session_t *aps, nat_t *nat) 143 nat_t *nat2; 316 ipf_p_rcmd_out(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) 325 ipf_p_rcmd_in(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat)
|
| ip_pptp_pxy.c | 35 nat_t *pptp_nat; 68 int ipf_p_pptp_new(void *, fr_info_t *, ap_session_t *, nat_t *); 70 int ipf_p_pptp_inout(void *, fr_info_t *, ap_session_t *, nat_t *); 71 void ipf_p_pptp_donatstate(fr_info_t *, nat_t *, pptp_pxy_t *); 72 int ipf_p_pptp_message(fr_info_t *, nat_t *, pptp_pxy_t *, pptp_side_t *); 73 int ipf_p_pptp_nextmessage(fr_info_t *, nat_t *, pptp_pxy_t *, int); 74 int ipf_p_pptp_mctl(fr_info_t *, nat_t *, pptp_pxy_t *, pptp_side_t *); 116 ipf_p_pptp_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) 196 ipf_p_pptp_donatstate(fr_info_t *fin, nat_t *nat, pptp_pxy_t *pptp) 201 nat_t *nat2 [all...] |
| ip_irc_pxy.c | 21 int ipf_p_irc_new(void *, fr_info_t *, ap_session_t *, nat_t *); 22 int ipf_p_irc_out(void *, fr_info_t *, ap_session_t *, nat_t *); 23 int ipf_p_irc_send(fr_info_t *, nat_t *); 229 ipf_p_irc_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) 251 ipf_p_irc_send(fr_info_t *fin, nat_t *nat) 262 nat_t *nat2; 433 ipf_p_irc_out(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat)
|
| ip_raudio_pxy.c | 19 int ipf_p_raudio_new(void *, fr_info_t *, ap_session_t *, nat_t *); 20 int ipf_p_raudio_in(void *, fr_info_t *, ap_session_t *, nat_t *); 21 int ipf_p_raudio_out(void *, fr_info_t *, ap_session_t *, nat_t *); 56 ipf_p_raudio_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) 79 ipf_p_raudio_out(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) 183 ipf_p_raudio_in(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) 196 nat_t *nat2;
|
| ip_rpcb_pxy.c | 55 int ipf_p_rpcb_new(void *, fr_info_t *, ap_session_t *, nat_t *); 57 int ipf_p_rpcb_in(void *, fr_info_t *, ap_session_t *, nat_t *); 58 int ipf_p_rpcb_out(void *, fr_info_t *, ap_session_t *, nat_t *); 61 static int ipf_p_rpcb_decodereq(fr_info_t *, nat_t *, 69 static int ipf_p_rpcb_modreq(fr_info_t *, nat_t *, rpc_msg_t *, 71 static int ipf_p_rpcb_decoderep(fr_info_t *, nat_t *, 77 static int ipf_p_rpcb_getnat(fr_info_t *, nat_t *, u_int, u_int); 78 static int ipf_p_rpcb_modv3(fr_info_t *, nat_t *, rpc_msg_t *, 80 static int ipf_p_rpcb_modv4(fr_info_t *, nat_t *, rpc_msg_t *, 151 ipf_p_rpcb_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat [all...] |
| ip_dns_pxy.c | 36 int ipf_p_dns_inout(void *, fr_info_t *, ap_session_t *, nat_t *); 37 int ipf_p_dns_match(fr_info_t *, ap_session_t *, nat_t *); 39 int ipf_p_dns_new(void *, fr_info_t *, ap_session_t *, nat_t *); 173 ipf_p_dns_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) 317 ipf_p_dns_inout(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) 364 ipf_p_dns_match(fr_info_t *fin, ap_session_t *aps, nat_t *nat)
|
| ip_ftp_pxy.c | 76 int ipf_p_ftp_client(ipf_ftp_softc_t *, fr_info_t *, ip_t *, nat_t *, 79 int ipf_p_ftp_in(void *, fr_info_t *, ap_session_t *, nat_t *); 80 int ipf_p_ftp_new(void *, fr_info_t *, ap_session_t *, nat_t *); 82 int ipf_p_ftp_out(void *, fr_info_t *, ap_session_t *, nat_t *); 83 int ipf_p_ftp_pasv(ipf_ftp_softc_t *, fr_info_t *, ip_t *, nat_t *, 85 int ipf_p_ftp_epsv(ipf_ftp_softc_t *, fr_info_t *, ip_t *, nat_t *, 87 int ipf_p_ftp_port(ipf_ftp_softc_t *, fr_info_t *, ip_t *, nat_t *, 89 int ipf_p_ftp_process(ipf_ftp_softc_t *, fr_info_t *, nat_t *, 91 int ipf_p_ftp_server(ipf_ftp_softc_t *, fr_info_t *, ip_t *, nat_t *, 99 int ipf_p_ftp_pasvreply(ipf_ftp_softc_t *, fr_info_t *, ip_t *, nat_t *, [all...] |
| ip_ipsec_pxy.c | 40 int ipf_p_ipsec_new(void *, fr_info_t *, ap_session_t *, nat_t *); 42 int ipf_p_ipsec_inout(void *, fr_info_t *, ap_session_t *, nat_t *); 43 int ipf_p_ipsec_match(fr_info_t *, ap_session_t *, nat_t *); 132 ipf_p_ipsec_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) 264 ipf_p_ipsec_inout(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) 350 ipf_p_ipsec_match(fr_info_t *fin, ap_session_t *aps, nat_t *nat)
|
| ip_frag.h | 91 extern nat_t *ipf_frag_natknown(fr_info_t *);
|
| ip_proxy.h | 183 nat_t *ftp_pendnat; 197 nat_t *ipsc_nat; 460 extern ipnat_t *ipf_proxy_rule_fwd(nat_t *); 461 extern ipnat_t *ipf_proxy_rule_rev(nat_t *);
|
| ip_nat.c | 228 static int ipf_nat_decap(fr_info_t *, nat_t *); 232 static int ipf_nat_finalise(fr_info_t *, nat_t *); 244 static int ipf_nat_matcharray(nat_t *, int *, u_long); 248 static int ipf_nat_newmap(fr_info_t *, nat_t *, natinfo_t *); 249 static int ipf_nat_newdivert(fr_info_t *, nat_t *, natinfo_t *); 250 static int ipf_nat_newrdr(fr_info_t *, nat_t *, natinfo_t *); 251 static int ipf_nat_newrewrite(fr_info_t *, nat_t *, natinfo_t *); 265 static void ipf_nat_tabmove(ipf_nat_softc_t *, nat_t *); 391 KMALLOCS(softn->ipf_nat_table[0], nat_t **, \ 392 sizeof(nat_t *) * softn->ipf_nat_table_sz) [all...] |
| ip_nat6.c | 118 static void ipf_nat6_tabmove(ipf_nat_softc_t *, nat_t *); 119 static int ipf_nat6_decap(fr_info_t *, nat_t *); 123 static int ipf_nat6_out(fr_info_t *, nat_t *, int, u_32_t); 124 static int ipf_nat6_in(fr_info_t *, nat_t *, int, u_32_t); 129 nat_t *); 448 ipf_nat6_newmap(fr_info_t *fin, nat_t *nat, natinfo_t *ni) 457 nat_t *natl; 726 ipf_nat6_newrdr(fr_info_t *fin, nat_t *nat, natinfo_t *ni) 736 nat_t *natl; 937 nat_t * [all...] |
| ip_sync.c | 343 ipf_sync_natorder(int way, nat_t *n) 914 nat_t *n, *nat; 924 KMALLOC(n, nat_t *); 939 nat = (nat_t *)data; 940 bzero((char *)n, offsetof(nat_t, nat_age)); 942 sizeof(*n) - offsetof(nat_t, nat_age)); 1148 nat_t *nat;
|
| ip_frag.c | 546 nat_t *nat) 787 /* Returns: nat_t* - pointer to 'parent' NAT structure if frag table */ 793 nat_t * 798 nat_t *nat; 1002 nat_t *nat; 1041 nat_t *nat;
|
| ip_proxy.c | 770 ipf_proxy_match(fr_info_t *fin, nat_t *nat) 822 ipf_proxy_new(fr_info_t *fin, nat_t *nat) 893 ipf_proxy_check(fr_info_t *fin, nat_t *nat) 1305 ipf_proxy_rule_rev(nat_t *nat) 1392 ipf_proxy_rule_fwd(nat_t *nat)
|
| ip_fil_compat.c | 837 nat_t **ns_table[2]; 848 nat_t *ns_instances; 867 nat_t **ns_table[2]; 878 nat_t *ns_instances; 896 nat_t **ns_table[2]; 907 nat_t *ns_instances; 924 nat_t **ns_table[2]; 935 nat_t *ns_instances; 1781 bzero(ptr, sizeof(nat_t)); 2765 nat_4_1_3_to_current(nat_4_1_3_t *old, nat_t *current [all...] |
| fil.c | 7583 ipf_nat_deref(softc, (nat_t **)datap);
|