Lines Matching refs:ip
289 ipf_p_ftp_port(softf, fin, ip, nat, ftp, dlen)
292 ip_t *ip;
309 off = (char *)tcp - (char *)ip + (TCP_OFF(tcp) << 2) + fin->fin_ipoff;
399 a1 = ntohl(ip->ip_src.s_addr);
400 a1 = ntohl(ip->ip_src.s_addr);
421 printf("ipf_p_ftp_port:inc(%d) + ip->ip_len > 65535\n",
442 ip->ip_len = htons(fin->fin_plen);
447 return ipf_p_ftp_addport(softf, fin, ip, nat, ftp, dlen, sp, inc);
452 ipf_p_ftp_addport(softf, fin, ip, nat, ftp, dlen, nport, inc)
455 ip_t *ip;
617 ipf_p_ftp_client(softf, fin, ip, nat, ftp, dlen)
622 ip_t *ip;
678 inc = ipf_p_ftp_port(softf, fin, ip, nat, ftp, dlen);
682 inc = ipf_p_ftp_eprt(softf, fin, ip, nat, ftp, dlen);
686 inc = ipf_p_ftp_port(softf, fin, ip, nat, ftp, dlen);
701 ipf_p_ftp_pasv(softf, fin, ip, nat, ftp, dlen)
704 ip_t *ip;
846 return ipf_p_ftp_pasvreply(softf, fin, ip, nat, ftp, (a5 << 8 | a6),
851 ipf_p_ftp_pasvreply(softf, fin, ip, nat, ftp, port, newmsg, s)
854 ip_t *ip;
883 off = (char *)tcp - (char *)ip + (TCP_OFF(tcp) << 2) + fin->fin_ipoff;
896 printf("ipf_p_ftp_pasv:inc(%d) + ip->ip_len > 65535\n",
989 ip->ip_len = htons(fin->fin_plen);
998 ipf_p_ftp_server(softf, fin, ip, nat, ftp, dlen)
1001 ip_t *ip;
1025 inc = ipf_p_ftp_pasv(softf, fin, ip, nat, ftp, dlen);
1027 inc = ipf_p_ftp_epsv(softf, fin, ip, nat, ftp, dlen);
1035 inc = ipf_p_ftp_pasv(softf, fin, ip, nat, ftp, dlen);
1037 inc = ipf_p_ftp_epsv(softf, fin, ip, nat, ftp, dlen);
1299 ip_t *ip;
1303 ip = fin->fin_ip;
1305 off = (char *)tcp - (char *)ip + (TCP_OFF(tcp) << 2) + fin->fin_ipoff;
1545 inc += ipf_p_ftp_server(softf, fin, ip,
1548 inc += ipf_p_ftp_client(softf, fin, ip,
1699 ipf_p_ftp_eprt(softf, fin, ip, nat, ftp, dlen)
1702 ip_t *ip;
1730 return ipf_p_ftp_eprt4(softf, fin, ip, nat, ftp, dlen);
1733 return ipf_p_ftp_eprt6(softf, fin, ip, nat, ftp, dlen);
1741 ipf_p_ftp_eprt4(softf, fin, ip, nat, ftp, dlen)
1744 ip_t *ip;
1759 off = (char *)tcp - (char *)ip + (TCP_OFF(tcp) << 2) + fin->fin_ipoff;
1842 a1 = ntohl(ip->ip_src.s_addr);
1868 printf("ipf_p_ftp_eprt4:inc(%d) + ip->ip_len > 65535\n",
1873 off = (char *)tcp - (char *)ip + (TCP_OFF(tcp) << 2) + fin->fin_ipoff;
1886 ip->ip_len = htons(fin->fin_plen);
1891 return ipf_p_ftp_addport(softf, fin, ip, nat, ftp, dlen, port, inc);
1896 ipf_p_ftp_epsv(softf, fin, ip, nat, ftp, dlen)
1899 ip_t *ip;
1968 return ipf_p_ftp_pasvreply(softf, fin, ip, nat, ftp, (u_int)ap,
1974 ipf_p_ftp_eprt6(softf, fin, ip, nat, ftp, dlen)
1977 ip_t *ip;
1998 ip6 = (ip6_t *)ip;
2004 off = (char *)tcp - (char *)ip + (TCP_OFF(tcp) << 2) + fin->fin_ipoff;
2157 printf("ipf_p_ftp_eprt6:inc(%d) + ip->ip_len > 65535\n",
2162 off = (char *)tcp - (char *)ip + (TCP_OFF(tcp) << 2) + fin->fin_ipoff;
2180 return ipf_p_ftp_addport(softf, fin, ip, nat, ftp, dlen, port, inc);