| /freebsd-11-stable/sys/contrib/ipfilter/netinet/ |
| HD | ip_nat.h | 677 extern int ipf_nat_checkin(fr_info_t *, u_32_t *); 678 extern int ipf_nat_checkout(fr_info_t *, u_32_t *); 687 extern nat_t *ipf_nat_icmperrorlookup(fr_info_t *, int); 688 extern nat_t *ipf_nat_icmperror(fr_info_t *, u_int *, int); 690 extern nat_t *ipf_nat_inlookup(fr_info_t *, u_int, u_int, 692 extern int ipf_nat_in(fr_info_t *, nat_t *, int, u_32_t); 702 extern nat_t *ipf_nat_add(fr_info_t *, ipnat_t *, nat_t **, 704 extern int ipf_nat_out(fr_info_t *, nat_t *, int, u_32_t); 705 extern nat_t *ipf_nat_outlookup(fr_info_t *, u_int, u_int, 707 extern u_short *ipf_nat_proto(fr_info_t *, nat_t *, u_int); [all …]
|
| HD | ip_frag.h | 108 extern u_32_t ipf_frag_ipidknown(fr_info_t *); 109 extern int ipf_frag_ipidnew(fr_info_t *, u_32_t); 110 extern frentry_t *ipf_frag_known(fr_info_t *, u_32_t *); 112 extern int ipf_frag_natnew(ipf_main_softc_t *, fr_info_t *, u_32_t, struct nat *); 113 extern nat_t *ipf_frag_natknown(fr_info_t *); 114 extern int ipf_frag_new(ipf_main_softc_t *, fr_info_t *, u_32_t);
|
| HD | ip_tftp_pxy.c | 16 int ipf_p_tftp_backchannel(fr_info_t *, ap_session_t *, nat_t *); 17 int ipf_p_tftp_client(ipf_tftp_softc_t *, fr_info_t *, ap_session_t *, 19 int ipf_p_tftp_in(void *, fr_info_t *, ap_session_t *, nat_t *); 22 int ipf_p_tftp_new(void *, fr_info_t *, ap_session_t *, nat_t *); 24 int ipf_p_tftp_out(void *, fr_info_t *, ap_session_t *, nat_t *); 25 int ipf_p_tftp_server(ipf_tftp_softc_t *, fr_info_t *, ap_session_t *, 135 fr_info_t *fin; 151 fr_info_t *fin; 167 fr_info_t *fin; 284 fr_info_t *fin; in ipf_p_tftp_backchannel() [all …]
|
| HD | ip_rcmd_pxy.c | 29 int ipf_p_rcmd_new(void *, fr_info_t *, ap_session_t *, nat_t *); 30 int ipf_p_rcmd_out(void *, fr_info_t *, ap_session_t *, nat_t *); 31 int ipf_p_rcmd_in(void *, fr_info_t *, ap_session_t *, nat_t *); 33 int ipf_p_rcmd_portmsg(fr_info_t *, ap_session_t *, nat_t *); 70 fr_info_t *fin; 145 fr_info_t *fin; in ipf_p_rcmd_portmsg() 155 fr_info_t fi; 332 fr_info_t *fin; 345 fr_info_t *fin;
|
| HD | ip_pptp_pxy.c | 62 int ipf_p_pptp_new(void *, fr_info_t *, ap_session_t *, nat_t *); 64 int ipf_p_pptp_inout(void *, fr_info_t *, ap_session_t *, nat_t *); 65 void ipf_p_pptp_donatstate(fr_info_t *, nat_t *, pptp_pxy_t *); 66 int ipf_p_pptp_message(fr_info_t *, nat_t *, pptp_pxy_t *, pptp_side_t *); 67 int ipf_p_pptp_nextmessage(fr_info_t *, nat_t *, pptp_pxy_t *, int); 68 int ipf_p_pptp_mctl(fr_info_t *, nat_t *, pptp_pxy_t *, pptp_side_t *); 112 fr_info_t *fin; 195 fr_info_t *fin; in ipf_p_pptp_donatstate() 200 fr_info_t fi; 283 fr_info_t *fin; in ipf_p_pptp_nextmessage() [all …]
|
| HD | ip_rpcb_pxy.c | 49 int ipf_p_rpcb_new(void *, fr_info_t *, ap_session_t *, nat_t *); 51 int ipf_p_rpcb_in(void *, fr_info_t *, ap_session_t *, nat_t *); 52 int ipf_p_rpcb_out(void *, fr_info_t *, ap_session_t *, nat_t *); 55 static int ipf_p_rpcb_decodereq(fr_info_t *, nat_t *, 63 static int ipf_p_rpcb_modreq(fr_info_t *, nat_t *, rpc_msg_t *, 65 static int ipf_p_rpcb_decoderep(fr_info_t *, nat_t *, 71 static int ipf_p_rpcb_getnat(fr_info_t *, nat_t *, u_int, u_int); 72 static int ipf_p_rpcb_modv3(fr_info_t *, nat_t *, rpc_msg_t *, 74 static int ipf_p_rpcb_modv4(fr_info_t *, nat_t *, rpc_msg_t *, 76 static void ipf_p_rpcb_fixlen(fr_info_t *, int); [all …]
|
| HD | ip_auth.h | 22 fr_info_t fra_info; 71 extern frentry_t *ipf_auth_check(fr_info_t *, u_32_t *); 80 extern int ipf_auth_new(mb_t *, fr_info_t *); 88 extern u_32_t ipf_auth_pre_scanlist(ipf_main_softc_t *, fr_info_t *,
|
| HD | ip_proxy.h | 112 int (* apr_new)(void *, fr_info_t *, ap_session_t *, 115 int (* apr_inpkt)(void *, fr_info_t *, ap_session_t *, 117 int (* apr_outpkt)(void *, fr_info_t *, ap_session_t *, 119 int (* apr_match)(fr_info_t *, ap_session_t *, struct nat *); 442 extern int ipf_proxy_check(fr_info_t *, struct nat *); 450 extern int ipf_proxy_match(fr_info_t *, struct nat *); 451 extern int ipf_proxy_new(fr_info_t *, struct nat *); 452 extern int ipf_proxy_ok(fr_info_t *, tcphdr_t *, struct ipnat *);
|
| HD | ip_fil.h | 411 } fr_info_t; typedef 438 typedef struct frentry *(*ipfunc_t)(fr_info_t *, u_32_t *); 451 #define FI_CSIZE offsetof(fr_info_t, fin_icode) 452 #define FI_LCSIZE offsetof(fr_info_t, fin_dp) 457 #define FI_COPYSIZE offsetof(fr_info_t, fin_dp) 624 typedef struct frentry * (* frentfunc_t)(fr_info_t *); 1633 extern void ipf_prependmbt(fr_info_t *, mblk_t *); 1679 extern int ipf_fastroute(mb_t *, mb_t **, fr_info_t *, frdest_t *); 1680 extern int ipf_inject(fr_info_t *, mb_t *); 1697 extern void *ipf_pullup(mb_t *, fr_info_t *, int); [all …]
|
| HD | fil.c | 123 static INLINE int ipf_check_ipf(fr_info_t *, frentry_t *, int); 124 static u_32_t ipf_checkcipso(fr_info_t *, u_char *, int); 126 static u_32_t ipf_decaps(fr_info_t *, u_32_t, int); 128 static frentry_t *ipf_dolog(fr_info_t *, u_32_t *); 136 static frentry_t *ipf_firewall(fr_info_t *, u_32_t *); 137 static int ipf_fr_matcharray(fr_info_t *, int *); 155 static INLINE int ipf_pr_ah(fr_info_t *); 156 static INLINE void ipf_pr_esp(fr_info_t *); 157 static INLINE void ipf_pr_gre(fr_info_t *); 158 static INLINE void ipf_pr_udp(fr_info_t *); [all …]
|
| HD | ip_raudio_pxy.c | 16 int ipf_p_raudio_new(void *, fr_info_t *, ap_session_t *, nat_t *); 17 int ipf_p_raudio_in(void *, fr_info_t *, ap_session_t *, nat_t *); 18 int ipf_p_raudio_out(void *, fr_info_t *, ap_session_t *, nat_t *); 55 fr_info_t *fin; 82 fr_info_t *fin; 186 fr_info_t *fin; 199 fr_info_t fi;
|
| HD | ip_irc_pxy.c | 16 int ipf_p_irc_new(void *, fr_info_t *, ap_session_t *, nat_t *); 17 int ipf_p_irc_out(void *, fr_info_t *, ap_session_t *, nat_t *); 18 int ipf_p_irc_send(fr_info_t *, nat_t *); 229 fr_info_t *fin; 254 fr_info_t *fin; in ipf_p_irc_send() 265 fr_info_t fi; 440 fr_info_t *fin;
|
| HD | ip_ipsec_pxy.c | 34 int ipf_p_ipsec_new(void *, fr_info_t *, ap_session_t *, nat_t *); 36 int ipf_p_ipsec_inout(void *, fr_info_t *, ap_session_t *, nat_t *); 37 int ipf_p_ipsec_match(fr_info_t *, ap_session_t *, nat_t *); 135 fr_info_t *fin; 147 fr_info_t fi; 271 fr_info_t *fin; 278 fr_info_t fi; 360 fr_info_t *fin; in ipf_p_ipsec_match()
|
| HD | ip_ftp_pxy.c | 74 int ipf_p_ftp_client(ipf_ftp_softc_t *, fr_info_t *, ip_t *, nat_t *, 77 int ipf_p_ftp_in(void *, fr_info_t *, ap_session_t *, nat_t *); 78 int ipf_p_ftp_new(void *, fr_info_t *, ap_session_t *, nat_t *); 80 int ipf_p_ftp_out(void *, fr_info_t *, ap_session_t *, nat_t *); 81 int ipf_p_ftp_pasv(ipf_ftp_softc_t *, fr_info_t *, ip_t *, nat_t *, 83 int ipf_p_ftp_epsv(ipf_ftp_softc_t *, fr_info_t *, ip_t *, nat_t *, 85 int ipf_p_ftp_port(ipf_ftp_softc_t *, fr_info_t *, ip_t *, nat_t *, 87 int ipf_p_ftp_process(ipf_ftp_softc_t *, fr_info_t *, nat_t *, 89 int ipf_p_ftp_server(ipf_ftp_softc_t *, fr_info_t *, ip_t *, nat_t *, 97 int ipf_p_ftp_pasvreply(ipf_ftp_softc_t *, fr_info_t *, ip_t *, nat_t *, [all …]
|
| HD | ip_fil_freebsd.c | 85 static int ipf_send_ip(fr_info_t *, mb_t *); 344 fr_info_t *fin; in ipf_send_reset() 442 fr_info_t *fin; in ipf_send_ip() 445 fr_info_t fnew; 507 fr_info_t *fin; 691 fr_info_t *fin; 943 fr_info_t *fin; in ipf_verifysrc() 1030 fr_info_t *fin; in ipf_newisn() 1040 fr_info_t *fin; in ipf_checkv4sum() 1068 …DT2(ipf_fi_bad_checkv4sum_csum_ip_checked, fr_info_t *, fin, u_int, m->m_pkthdr.csum_flags & (CSUM… [all …]
|
| HD | ip_dns_pxy.c | 34 int ipf_p_dns_inout(void *, fr_info_t *, ap_session_t *, nat_t *); 35 int ipf_p_dns_match(fr_info_t *, ap_session_t *, nat_t *); 37 int ipf_p_dns_new(void *, fr_info_t *, ap_session_t *, nat_t *); 179 fr_info_t *fin; 337 fr_info_t *fin; 387 fr_info_t *fin; in ipf_p_dns_match()
|
| HD | ip_frag.c | 85 fr_info_t *, u_32_t, ipfr_t **, 87 static ipfr_t *ipf_frag_lookup(ipf_main_softc_t *, ipf_frag_softc_t *, fr_info_t *, ipfr_t **, ipfr… 93 fr_info_t *, u_32_t, ipfr_t **); 94 static ipfr_t *ipf_frag_lookup(ipf_main_softc_t *, ipf_frag_softc_t *, fr_info_t *, ipfr_t **); 379 fr_info_t *fin; 525 fr_info_t *fin; 561 fr_info_t *fin; 602 fr_info_t *fin; in ipf_frag_ipidnew() 650 fr_info_t *fin; 733 DT3(ipf_fi_bad_ifs_overlap, fr_info_t *, fin, u_short, off, [all …]
|
| HD | ip_rules.h | 6 extern frentry_t *ipfrule_match_out_(fr_info_t *, u_32_t *); 12 extern frentry_t *ipfrule_match_in_(fr_info_t *, u_32_t *);
|
| HD | ip_netbios_pxy.c | 39 int ipf_p_netbios_out(void *, fr_info_t *, ap_session_t *, nat_t *); 72 fr_info_t *fin;
|
| HD | ip_state.c | 146 static ipstate_t *ipf_checkicmp6matchingstate(fr_info_t *); 148 static int ipf_allowstateicmp(fr_info_t *, ipstate_t *, i6addr_t *); 149 static ipstate_t *ipf_matchsrcdst(fr_info_t *, ipstate_t *, i6addr_t *, 151 static ipstate_t *ipf_checkicmpmatchingstate(fr_info_t *); 165 fr_info_t *, tcphdr_t *, ipstate_t *); 166 static int ipf_tcpoptions(ipf_state_softc_t *, fr_info_t *, 168 static ipstate_t *ipf_state_clone(fr_info_t *, tcphdr_t *, ipstate_t *); 169 static void ipf_fixinisn(fr_info_t *, ipstate_t *); 170 static void ipf_fixoutisn(fr_info_t *, ipstate_t *); 171 static void ipf_checknewisn(fr_info_t *, ipstate_t *); [all …]
|
| HD | ip_sync.h | 112 extern synclist_t *ipf_sync_new(ipf_main_softc_t *, int, fr_info_t *, void *); 116 extern void ipf_sync_update(ipf_main_softc_t *, int, fr_info_t *, synclist_t *);
|
| HD | ip_nat.c | 127 DT1(x, fr_info_t *, fin); } while (0) 216 static int ipf_nat_decap(fr_info_t *, nat_t *); 220 static int ipf_nat_finalise(fr_info_t *, nat_t *); 232 static int ipf_nat_match(fr_info_t *, ipnat_t *); 236 static void ipf_nat_mssclamp(tcphdr_t *, u_32_t, fr_info_t *, 238 static int ipf_nat_newmap(fr_info_t *, nat_t *, natinfo_t *); 239 static int ipf_nat_newdivert(fr_info_t *, nat_t *, natinfo_t *); 240 static int ipf_nat_newrdr(fr_info_t *, nat_t *, natinfo_t *); 241 static int ipf_nat_newrewrite(fr_info_t *, nat_t *, natinfo_t *); 242 static int ipf_nat_nextaddr(fr_info_t *, nat_addr_t *, u_32_t *, [all …]
|
| HD | ip_nat6.c | 112 static int ipf_nat6_match(fr_info_t *, ipnat_t *); 114 static int ipf_nat6_decap(fr_info_t *, nat_t *); 115 static int ipf_nat6_nextaddr(fr_info_t *, nat_addr_t *, i6addr_t *, 118 static int ipf_nat6_out(fr_info_t *, nat_t *, int, u_32_t); 119 static int ipf_nat6_in(fr_info_t *, nat_t *, int, u_32_t); 457 fr_info_t *fin; in ipf_nat6_newmap() 738 fr_info_t *fin; in ipf_nat6_newrdr() 953 fr_info_t *fin; in ipf_nat6_add() 1154 fr_info_t *fin; in ipf_nat6_finalise() 1386 fr_info_t *fin; in ipf_nat6_icmperrorlookup() [all …]
|
| /freebsd-11-stable/contrib/ipfilter/ |
| HD | ip_msnrpc_pxy.c | 38 int ippr_msnrpc_new(fr_info_t *, ap_session_t *, nat_t *); 39 int ippr_msnrpc_out(fr_info_t *, ap_session_t *, nat_t *); 40 int ippr_msnrpc_in(fr_info_t *, ap_session_t *, nat_t *); 72 fr_info_t *fin; in ippr_msnrpc_new() 119 fr_info_t *fin; in ippr_msnrpc_out() 160 fr_info_t *fin; in ippr_msnrpc_in() 169 fr_info_t fi;
|
| HD | ip_fil.c | 376 fr_info_t *fin; 442 fr_info_t *fin; in ipf_send_reset() 452 fr_info_t *fin; 521 fr_info_t *fin; in ipf_newisn() 568 fr_info_t *fin; in ipf_nextipid() 591 fr_info_t *fin; in ipf_checkv4sum() 608 fr_info_t *fin; in ipf_checkv6sum() 753 fr_info_t *fin; in ipf_verifysrc() 761 fr_info_t *fin; in ipf_inject() 772 fr_info_t *fin; in ipf_pcksum() [all …]
|