Lines Matching refs:fin
130 ipf_p_tftp_out(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat)
134 fin->fin_flx |= FI_NOWILD;
136 return (ipf_p_tftp_client(softt, fin, aps, nat));
137 return (ipf_p_tftp_server(softt, fin, aps, nat));
142 ipf_p_tftp_in(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat)
146 fin->fin_flx |= FI_NOWILD;
148 return (ipf_p_tftp_client(softt, fin, aps, nat));
149 return (ipf_p_tftp_server(softt, fin, aps, nat));
154 ipf_p_tftp_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat)
162 fin = fin; /* LINT */
182 udp = (udphdr_t *)fin->fin_dp;
229 ipn->in_odport = htons(fin->fin_sport);
230 ipn->in_ndport = htons(fin->fin_sport);
266 ipf_p_tftp_backchannel(fr_info_t *fin, ap_session_t *aps, nat_t *nat)
268 ipf_main_softc_t *softc = fin->fin_main_soft;
291 bcopy((char *)fin, (char *)&fi, sizeof(fi));
310 ip6 = (ip6_t *)fin->fin_ip;
312 ip = fin->fin_ip;
320 ip->ip_len = htons(fin->fin_hlen + sizeof(udp));
372 if (fin->fin_v == 4) {
402 ipf_p_tftp_client(ipf_tftp_softc_t *softt, fr_info_t *fin, ap_session_t *aps,
411 if (fin->fin_dlen < 4)
415 msg = fin->fin_dp;
418 DT3(tftp_cmd, fr_info_t *, fin, int, opcode, nat_t *, nat);
427 len = fin->fin_dlen - sizeof(*udp) - 2;
436 ipf_p_tftp_backchannel(fin, aps, nat);
449 ipf_p_tftp_server(ipf_tftp_softc_t *softt, fr_info_t *fin, ap_session_t *aps,
457 if (fin->fin_dlen < 4)
461 msg = fin->fin_dp;