Home
last modified time | relevance | path

Searched refs:nport (Results 1 – 16 of 16) sorted by relevance

/freebsd/usr.bin/whois/
H A Dwhois.c437 char *buf, *host, *nhost, *nport, *p; in whois() local
528 s_asprintf(&nport, "%s", port); in whois()
535 s_asprintf(&nport, "%.*s", in whois()
549 s_asprintf(&nport, "%s", port); in whois()
577 free(nport); in whois()
578 nport = NULL; in whois()
587 s_asprintf(&nport, "%s", port); in whois()
596 whois(query, nhost, nport, flags); in whois()
599 free(nport); in whois()
/freebsd/sys/netpfil/pf/
H A Dpf_lb.c220 struct pf_addr *naddr, uint16_t *nport, uint16_t low, in pf_get_sport() argument
250 *nport = (*udp_mapping)->endpoints[1].port; in pf_get_sport()
273 if (*nport == htons(ICMP_ECHO)) { in pf_get_sport()
281 if (*nport == htons(ICMP6_ECHO_REQUEST)) { in pf_get_sport()
307 *nport = pd->nsport; in pf_get_sport()
320 *nport = pd->nsport; in pf_get_sport()
329 *nport = htons(low); in pf_get_sport()
333 *nport = htons(low); in pf_get_sport()
353 *nport = htons(tmp); in pf_get_sport()
359 *nport = htons(tmp); in pf_get_sport()
[all …]
/freebsd/sys/cam/ctl/
H A Dctl_frontend.c146 struct ctl_port *tport, *nport; in ctl_port_register() local
207 for (tport = NULL, nport = STAILQ_FIRST(&softc->port_list); in ctl_port_register()
208 nport != NULL && nport->targ_port < port_num; in ctl_port_register()
209 tport = nport, nport = STAILQ_NEXT(tport, links)) { in ctl_port_register()
H A Dctl.c4731 struct ctl_port *port, *nport; in ctl_enable_lun() local
4743 STAILQ_FOREACH_SAFE(port, &softc->port_list, links, nport) { in ctl_enable_lun()
/freebsd/tools/tools/netmap/
H A Dpkt-gen.c820 new_udp_sum(uint16_t udp_sum, uint16_t oport, uint16_t nport) in new_udp_sum() argument
823 udp_sum = cksum_add(udp_sum, nport); in new_udp_sum()
835 uint16_t oport, nport; in update_ip() local
843 nport = oport = ntohs(udp.uh_sport); in update_ip()
848 nport = ntohs(udp.uh_sport); in update_ip()
850 udp_sum = new_udp_sum(udp_sum, oport, nport); in update_ip()
853 nport = oport + 1; in update_ip()
854 udp.uh_sport = htons(nport); in update_ip()
855 udp_sum = new_udp_sum(udp_sum, oport, nport); in update_ip()
858 nport = g->src_ip.port0; in update_ip()
[all …]
/freebsd/sys/dev/fdc/
H A Dfdc_isa.c79 int i, j, rid, newrid, nport; in fdc_isa_alloc_resources() local
87 nport = isa_get_logicalid(dev) ? 1 : 6; in fdc_isa_alloc_resources()
91 rid == 0 ? nport : 1, RF_ACTIVE); in fdc_isa_alloc_resources()
/freebsd/sys/netinet/
H A Dip_divert.c171 u_int16_t nport; in divert_packet() local
181 nport = htons((uint16_t) in divert_packet()
185 nport = htons(((struct pf_divert_mtag *)(mtag+1))->port); in divert_packet()
276 SLIST_FOREACH(dcb, &V_divhash[DIVHASH(nport)], dcb_next) in divert_packet()
277 if (dcb->dcb_port == nport) in divert_packet()
/freebsd/crypto/heimdal/lib/ipc/
H A Dclient.c123 mach_port_t nport; in mach_ipc() local
125 ret = bootstrap_look_up(bootstrap_port, ipc->name, &nport); in mach_ipc()
131 mach_port_deallocate(mach_task_self(), nport); in mach_ipc()
134 ipc->server = nport; in mach_ipc()
/freebsd/sys/dev/firewire/
H A Dfirewirereg.h54 uint8_t nport; member
102 u_int nport; member
H A Dfwohci.c436 sc->fc.nport = reg & FW_PHY_NP;
445 linkspeed[sc->fc.speed], sc->fc.nport);
449 sc->fc.nport = reg & FW_PHY_NP;
458 linkspeed[sc->fc.speed], sc->fc.nport);
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_nat6.c722 u_short nport, dport, sport; in ipf_nat6_newrdr() local
833 nport = dport; in ipf_nat6_newrdr()
841 nport = ntohs(dport) - np->in_odport + np->in_dpmax; in ipf_nat6_newrdr()
842 nport = htons(nport); in ipf_nat6_newrdr()
844 nport = htons(np->in_dpnext); in ipf_nat6_newrdr()
857 if (nport == dport) { in ipf_nat6_newrdr()
872 fin->fin_data[0] = ntohs(nport); in ipf_nat6_newrdr()
894 nat->nat_ndport = nport; in ipf_nat6_newrdr()
897 ((tcphdr_t *)fin->fin_dp)->th_dport = nport; in ipf_nat6_newrdr()
900 ((struct icmp6_hdr *)fin->fin_dp)->icmp6_id = nport; in ipf_nat6_newrdr()
[all …]
H A Dip_nat.c2818 u_short nport, dport, sport; in ipf_nat_newrdr() local
2927 nport = dport; in ipf_nat_newrdr()
2935 nport = ntohs(dport) - np->in_odport + np->in_dpmax; in ipf_nat_newrdr()
2936 nport = htons(nport); in ipf_nat_newrdr()
2938 nport = htons(np->in_dpnext); in ipf_nat_newrdr()
2951 if (nport == dport) { in ipf_nat_newrdr()
2967 fin->fin_data[0] = ntohs(nport); in ipf_nat_newrdr()
2989 nat->nat_ndport = nport; in ipf_nat_newrdr()
2992 ((tcphdr_t *)fin->fin_dp)->th_dport = nport; in ipf_nat_newrdr()
2995 ((icmphdr_t *)fin->fin_dp)->icmp_id = nport; in ipf_nat_newrdr()
[all …]
H A Dip_ftp_pxy.c430 ftpinfo_t *ftp, int dlen, int nport, int inc) in ipf_p_ftp_addport() argument
461 sp = nport; in ipf_p_ftp_addport()
/freebsd/contrib/tnftp/src/
H A Dfetch.c436 unsigned long nport; in parse_url() local
438 nport = strtoul(cp, &ep, 10); in parse_url()
440 nport < 1 || nport > MAX_IN_PORT_T) { in parse_url()
445 *portnum = nport; in parse_url()
/freebsd/sbin/ipf/ipnat/
H A Dipnat_y.y328 redir: rdrit ifnames addr dport tlate dip nport setproto rdroptions
356 | rdrit ifnames rdrfrom tlate dip nport setproto rdroptions
737 nport: | port portpair { nat->in_dpmin = $2.p1;
/freebsd/sys/conf/
H A DNOTES1590 envvar hint.isp.0.topology="nport"
1592 envvar hint.isp.0.topology="nport-only"