Searched refs:nport (Results 1 – 5 of 5) sorted by relevance
| /f-stack/freebsd/netpfil/pf/ |
| H A D | pf_lb.c | 217 uint16_t dport, struct pf_addr *naddr, uint16_t *nport, uint16_t low, in pf_get_sport() argument 253 *nport = sport; in pf_get_sport() 259 *nport = htons(low); in pf_get_sport() 278 *nport = htons(tmp); in pf_get_sport() 287 *nport = htons(tmp); in pf_get_sport() 532 uint16_t *nport; in pf_get_translation() local 576 nport = &(*nkp)->port[1]; in pf_get_translation() 581 dport, naddr, nport, r->rpool.proxy_port[0], in pf_get_translation() 672 *nport = htons((uint16_t)tmp_nport); in pf_get_translation() 674 *nport = htons(r->rpool.proxy_port[0]); in pf_get_translation()
|
| /f-stack/freebsd/netinet/ |
| H A D | ip_divert.c | 196 u_int16_t nport; in divert_packet() local 278 nport = htons((u_int16_t)(((struct ipfw_rule_ref *)(mtag+1))->info)); in divert_packet() 281 if (inp->inp_lport == nport) { in divert_packet()
|
| /f-stack/freebsd/contrib/ipfilter/netinet/ |
| H A D | ip_nat6.c | 744 u_short nport, dport, sport; local 855 nport = dport; 863 nport = ntohs(dport) - np->in_odport + np->in_dpmax; 864 nport = htons(nport); 866 nport = htons(np->in_dpnext); 879 if (nport == dport) { 894 fin->fin_data[0] = ntohs(nport); 916 nat->nat_ndport = nport; 919 ((tcphdr_t *)fin->fin_dp)->th_dport = nport; 922 ((struct icmp6_hdr *)fin->fin_dp)->icmp6_id = nport; [all …]
|
| H A D | ip_nat.c | 2878 u_short nport, dport, sport; local 2987 nport = dport; 2995 nport = ntohs(dport) - np->in_odport + np->in_dpmax; 2996 nport = htons(nport); 2998 nport = htons(np->in_dpnext); 3011 if (nport == dport) { 3027 fin->fin_data[0] = ntohs(nport); 3049 nat->nat_ndport = nport; 3052 ((tcphdr_t *)fin->fin_dp)->th_dport = nport; 3055 ((icmphdr_t *)fin->fin_dp)->icmp_id = nport; [all …]
|
| H A D | ip_ftp_pxy.c | 452 ipf_p_ftp_addport(softf, fin, ip, nat, ftp, dlen, nport, inc) in ipf_p_ftp_addport() argument 458 int dlen, nport, inc; 489 sp = nport;
|