/src/sys/external/bsd/ipf/netinet/ |
ip_frag.h | 86 extern u_32_t ipf_frag_ipidknown(fr_info_t *); 87 extern int ipf_frag_ipidnew(fr_info_t *, u_32_t); 88 extern frentry_t *ipf_frag_known(fr_info_t *, u_32_t *); 90 extern int ipf_frag_natnew(ipf_main_softc_t *, fr_info_t *, u_32_t, struct nat *); 91 extern nat_t *ipf_frag_natknown(fr_info_t *); 92 extern int ipf_frag_new(ipf_main_softc_t *, fr_info_t *, u_32_t);
|
ip_auth.h | 21 fr_info_t fra_info; 52 extern frentry_t *ipf_auth_check(fr_info_t *, u_32_t *); 61 extern int ipf_auth_new(mb_t *, fr_info_t *); 69 extern u_32_t ipf_auth_pre_scanlist(ipf_main_softc_t *, fr_info_t *,
|
ip_nat.h | 697 extern int ipf_nat_checkin(fr_info_t *, u_32_t *); 698 extern int ipf_nat_checkout(fr_info_t *, u_32_t *); 707 extern nat_t *ipf_nat_icmperrorlookup(fr_info_t *, int); 708 extern nat_t *ipf_nat_icmperror(fr_info_t *, u_int *, int); 713 extern nat_t *ipf_nat_inlookup(fr_info_t *, u_int, u_int, 715 extern int ipf_nat_in(fr_info_t *, nat_t *, int, u_32_t); 725 extern nat_t *ipf_nat_add(fr_info_t *, ipnat_t *, nat_t **, 727 extern int ipf_nat_out(fr_info_t *, nat_t *, int, u_32_t); 728 extern nat_t *ipf_nat_outlookup(fr_info_t *, u_int, u_int, 730 extern u_short *ipf_nat_proto(fr_info_t *, nat_t *, u_int) [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 *); 19 int ipf_p_tftp_client(ipf_tftp_softc_t *, fr_info_t *, ap_session_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 *); 27 int ipf_p_tftp_server(ipf_tftp_softc_t *, fr_info_t *, ap_session_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) 141 fr_info_t fi; 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_dstlist.h | 67 extern int ipf_dstlist_select_node(fr_info_t *, void *, u_32_t *, frdest_t *);
|
ip_proxy.h | 115 int (* apr_new)(void *, fr_info_t *, ap_session_t *, 118 int (* apr_inpkt)(void *, fr_info_t *, ap_session_t *, 120 int (* apr_outpkt)(void *, fr_info_t *, ap_session_t *, 122 int (* apr_match)(fr_info_t *, ap_session_t *, struct nat *); 445 extern int ipf_proxy_check(fr_info_t *, struct nat *); 454 extern int ipf_proxy_match(fr_info_t *, struct nat *); 455 extern int ipf_proxy_new(fr_info_t *, struct nat *); 456 extern int ipf_proxy_ok(fr_info_t *, tcphdr_t *, struct ipnat *);
|
ip_sync.h | 114 extern synclist_t *ipf_sync_new(ipf_main_softc_t *, int, fr_info_t *, void *); 118 extern void ipf_sync_update(ipf_main_softc_t *, int, fr_info_t *, synclist_t *);
|
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) 261 fr_info_t fi; 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) 194 fr_info_t fi;
|
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 *, 82 static void ipf_p_rpcb_fixlen(fr_info_t *, int) [all...] |
ip_pptp_pxy.c | 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) 199 fr_info_t fi; 281 ipf_p_pptp_nextmessage(fr_info_t *fin, nat_t *nat, pptp_pxy_t *pptp, int rev [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_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) 142 fr_info_t fi; 264 ipf_p_ipsec_inout(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) 269 fr_info_t fi; 350 ipf_p_ipsec_match(fr_info_t *fin, ap_session_t *aps, nat_t *nat)
|
ip_fil.h | 472 } fr_info_t; typedef in typeref:struct:fr_info 499 typedef struct frentry *(*ipfunc_t)(fr_info_t *, u_32_t *); 513 #define FI_CSIZE offsetof(fr_info_t, fin_icode) 514 #define FI_LCSIZE offsetof(fr_info_t, fin_dp) 519 #define FI_COPYSIZE offsetof(fr_info_t, fin_dp) 687 typedef struct frentry * (* frentfunc_t)(fr_info_t *); 1731 extern void ipf_prependmbt(fr_info_t *, mblk_t *); 1819 extern int ipf_fastroute(mb_t *, mb_t **, fr_info_t *, frdest_t *); 1820 extern int ipf_inject(fr_info_t *, mb_t *); 1837 extern void *ipf_pullup(mb_t *, fr_info_t *, int) [all...] |
fil.c | 163 static INLINE int ipf_check_ipf(fr_info_t *, frentry_t *, int); 164 static u_32_t ipf_checkcipso(fr_info_t *, u_char *, int); 166 static u_32_t ipf_decaps(fr_info_t *, u_32_t, int); 168 static frentry_t *ipf_dolog(fr_info_t *, u_32_t *); 175 static frentry_t *ipf_firewall(fr_info_t *, u_32_t *); 176 static int ipf_fr_matcharray(fr_info_t *, int *); 191 static INLINE int ipf_pr_ah(fr_info_t *); 192 static INLINE void ipf_pr_esp(fr_info_t *); 193 static INLINE void ipf_pr_gre(fr_info_t *); 194 static INLINE void ipf_pr_udp(fr_info_t *); [all...] |
ip_frag.c | 120 fr_info_t *, u_32_t, ipfr_t **, 122 static ipfr_t *ipf_frag_lookup(ipf_main_softc_t *, ipf_frag_softc_t *, fr_info_t *, ipfr_t **, ipfrwlock_t *); 128 fr_info_t *, u_32_t, ipfr_t **); 129 static ipfr_t *ipf_frag_lookup(ipf_main_softc_t *, ipf_frag_softc_t *, fr_info_t *, ipfr_t **); 367 fr_info_t *fin, 511 ipf_frag_new(ipf_main_softc_t *softc, fr_info_t *fin, u_32_t pass) 545 ipf_frag_natnew(ipf_main_softc_t *softc, fr_info_t *fin, u_32_t pass, 584 ipf_frag_ipidnew(fr_info_t *fin, u_32_t ipid) 627 fr_info_t *fin, 794 ipf_frag_natknown(fr_info_t *fin [all...] |
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_state.h | 306 extern int ipf_state_add(ipf_main_softc_t *, fr_info_t *, 312 extern ipstate_t *ipf_state_lookup(fr_info_t *, tcphdr_t *, ipftq_t **); 323 extern void ipf_state_update(fr_info_t *, ipstate_t *);
|
ip_fil_netbsd.c | 178 static int ipf_send_ip(fr_info_t *, mb_t *); 181 fr_info_t *, frdest_t *); 733 ipf_send_reset(fr_info_t *fin) 838 ipf_send_ip(fr_info_t *fin, mb_t *m) 840 fr_info_t fnew; 906 ipf_send_icmp_err(int type, fr_info_t *fin, int dst) 1095 ipf_fastroute(mb_t *m0, mb_t **mpp, fr_info_t *fin, frdest_t *fdp) 1402 ipf_fastroute6(struct mbuf *m0, struct mbuf **mpp, fr_info_t *fin, 1527 ipf_verifysrc(fr_info_t *fin) 1634 ipf_newisn(fr_info_t *fin [all...] |
ip_state.c | 156 static ipstate_t *ipf_checkicmp6matchingstate(fr_info_t *); 158 static int ipf_allowstateicmp(fr_info_t *, ipstate_t *, i6addr_t *); 159 static ipstate_t *ipf_matchsrcdst(fr_info_t *, ipstate_t *, i6addr_t *, 161 static ipstate_t *ipf_checkicmpmatchingstate(fr_info_t *); 175 fr_info_t *, tcphdr_t *, ipstate_t *); 176 static int ipf_tcpoptions(ipf_state_softc_t *, fr_info_t *, 178 static ipstate_t *ipf_state_clone(fr_info_t *, tcphdr_t *, ipstate_t *); 179 static void ipf_fixinisn(fr_info_t *, ipstate_t *); 180 static void ipf_fixoutisn(fr_info_t *, ipstate_t *); 181 static void ipf_checknewisn(fr_info_t *, ipstate_t *) [all...] |
ip_nat6.c | 117 static int ipf_nat6_match(fr_info_t *, ipnat_t *); 119 static int ipf_nat6_decap(fr_info_t *, nat_t *); 120 static int ipf_nat6_nextaddr(fr_info_t *, nat_addr_t *, i6addr_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); 448 ipf_nat6_newmap(fr_info_t *fin, nat_t *nat, natinfo_t *ni) 726 ipf_nat6_newrdr(fr_info_t *fin, nat_t *nat, natinfo_t *ni) 938 ipf_nat6_add(fr_info_t *fin, ipnat_t *np, nat_t **natsave, u_int flags, 1135 ipf_nat6_finalise(fr_info_t *fin, nat_t *nat) 1364 ipf_nat6_icmperrorlookup(fr_info_t *fin, int dir [all...] |
ip_lookup.h | 129 int (*ipfl_select_node)(fr_info_t *, void *, u_32_t *,
|
ip_nat.c | 137 DT1(x, fr_info_t *, fin); } while (0) 228 static int ipf_nat_decap(fr_info_t *, nat_t *); 232 static int ipf_nat_finalise(fr_info_t *, nat_t *); 243 static int ipf_nat_match(fr_info_t *, ipnat_t *); 247 static void ipf_nat_mssclamp(tcphdr_t *, u_32_t, fr_info_t *, u_short *); 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 *); 252 static int ipf_nat_nextaddr(fr_info_t *, nat_addr_t *, u_32_t *, u_32_t *) [all...] |