Home
last modified time | relevance | path

Searched refs:lport (Results 1 – 20 of 20) sorted by relevance

/dragonfly/sys/netinet/
H A Dip_demux.c72 in_port_t fport, in_port_t lport) in INP_MPORT_HASH_UDP() argument
87 in_port_t fport, in_port_t lport) in INP_MPORT_HASH_TCP() argument
90 toeplitz_rawhash_addrport(faddr, laddr, fport, lport)); in INP_MPORT_HASH_TCP()
99 return (INP_MPORT_HASH_TCP(faddr, laddr, fport, lport)); in tcp_addrhash()
105 return (INP_MPORT_HASH_UDP(faddr, laddr, fport, lport)); in udp_addrhash()
112 tcp_addrcpu(in_addr_t faddr, in_port_t fport, in_addr_t laddr, in_port_t lport) in tcp_addrcpu() argument
114 return (netisr_hashcpu(INP_MPORT_HASH_TCP(faddr, laddr, fport, lport))); in tcp_addrcpu()
118 udp_addrcpu(in_addr_t faddr, in_port_t fport, in_addr_t laddr, in_port_t lport) in udp_addrcpu() argument
120 return (netisr_hashcpu(INP_MPORT_HASH_UDP(faddr, laddr, fport, lport))); in udp_addrcpu()
417 return(netisr_cpuport(tcp_addrcpu(faddr, fport, laddr, lport))); in tcp_addrport()
[all …]
H A Din_pcb.c401 lport = last0; in in_pcbsetlport()
403 first0 = lport; in in_pcbsetlport()
421 lport = rounddown(cut % lport, step) + first; in in_pcbsetlport()
430 if (__predict_false(lport < first || lport > last)) { in in_pcbsetlport()
431 lport = first; in in_pcbsetlport()
441 lport += step; in in_pcbsetlport()
638 u_short lport; in in_pcbbind() local
871 lport = last; in in_pcbbind_remote()
873 first = lport; in in_pcbbind_remote()
893 if (__predict_false(lport < first || lport > last)) in in_pcbbind_remote()
[all …]
H A Din_pcb.h315 #define INP_PCBCONNHASH(faddr, fport, laddr, lport, mask) \ argument
316 (((faddr) ^ ((faddr) >> 16) ^ (laddr) ^ ntohs((lport) ^ (fport))) & (mask))
318 #define INP_PCBPORTHASH(lport, cnt) (ntohs(lport) % (cnt)) argument
320 #define INP_PCBWILDCARDHASH(lport, mask) (ntohs(lport) & (mask)) argument
322 #define INP_PCBLOCALGRPHASH(lport, mask) (ntohs(lport) & (mask)) argument
416 in_pcbporthash_head(struct inpcbportinfo *portinfo, u_short lport) in in_pcbporthash_head() argument
419 INP_PCBPORTHASH(lport, portinfo->porthashcnt)]; in in_pcbporthash_head()
H A Dudp_var.h159 in_addr_t laddr, in_port_t lport);
161 in_addr_t laddr, in_port_t lport);
163 in_addr_t laddr, in_port_t lport);
H A Dtcp_var.h654 in_addr_t laddr, in_port_t lport);
656 in_addr_t laddr, in_port_t lport);
659 in_addr_t laddr, in_port_t lport);
H A Dtcp_syncache.c1365 u_int16_t lport, fport; member
1416 add.lport = sc->sc_inc.inc_lport; in syncookie_generate()
1455 add.lport = inc->inc_lport; in syncookie_lookup()
H A Dudp_usrreq.c191 udp_lportcpu(short lport) in udp_lportcpu() argument
193 return (ntohs(lport) % netisr_ncpus); in udp_lportcpu()
/dragonfly/sys/netinet6/
H A Din6_src.c397 inp->inp_lport = lport; in in6_pcbporthash_update()
446 lport = last0; in in6_pcbsetlport()
448 first0 = lport; in in6_pcbsetlport()
463 lport = last - first; in in6_pcbsetlport()
464 count = lport / step; in in6_pcbsetlport()
466 lport = rounddown(cut % lport, step) + first; in in6_pcbsetlport()
467 KKASSERT(lport % step == portinfo->offset); in in6_pcbsetlport()
475 if (__predict_false(lport < first || lport > last)) { in in6_pcbsetlport()
476 lport = first; in in6_pcbsetlport()
486 lport += step; in in6_pcbsetlport()
[all …]
H A Din6_pcb.c122 u_short lport, lport_ho; in in6_pcbbind() local
150 lport = sin6->sin6_port; in in6_pcbbind()
186 if (lport == 0) in in6_pcbbind()
188 lport_ho = ntohs(lport); in in6_pcbbind()
218 lport, INPLOOKUP_WILDCARD, in in6_pcbbind()
242 inp->inp_lport = lport; in in6_pcbbind()
540 lport = 0; in in6_pcbnotify()
594 (lport && inp->inp_lport != lport) || in in6_pcbnotify()
622 u_short lport = lport_arg; in in6_pcblookup_local() local
639 if (phd->phd_port == lport) in in6_pcblookup_local()
[all …]
/dragonfly/usr.sbin/inetd/
H A Dbuiltins.c352 u_short lport, fport; in ident_stream() local
505 iderror(lport, fport, s, ID_HIDDEN); in ident_stream()
518 iderror(lport, fport, s, ID_UNKNOWN); in ident_stream()
521 iderror(lport, fport, s, ID_UNKNOWN); in ident_stream()
523 iderror(lport, fport, s, ID_UNKNOWN); in ident_stream()
528 sin4[0].sin_port = htons(lport); in ident_stream()
538 sin6[0].sin6_port = htons(lport); in ident_stream()
552 iderror(lport, fport, s, in ident_stream()
574 iderror(lport, fport, s, ID_UNKNOWN); in ident_stream()
577 iderror(lport, fport, s, ID_HIDDEN); in ident_stream()
[all …]
/dragonfly/usr.sbin/tcpdrop/
H A Dtcpdrop.c69 char *lport, *fport; in main() local
102 lport = findport(argv[0]); in main()
104 if (lport == NULL || lport[1] == '\0' || fport == NULL || in main()
107 *lport++ = '\0'; in main()
109 if (!tcpdropbyname(argv[0], lport, argv[1], fport)) in main()
248 tcpdropbyname(const char *lhost, const char *lport, const char *fhost, in tcpdropbyname() argument
262 error = getaddrinfo(lhost, lport, &hints, &local); in tcpdropbyname()
264 errx(1, "getaddrinfo: %s port %s: %s", lhost, lport, in tcpdropbyname()
291 warnx("%s %s %s %s: different address families", lhost, lport, in tcpdropbyname()
/dragonfly/lib/libc/net/
H A Drcmd.c87 int s, aport, lport, timo, error; in rcmd_af() local
142 for (timo = 1, lport = IPPORT_RESERVED - 1;;) { in rcmd_af()
143 s = rresvport_af(&lport, ai->ai_family); in rcmd_af()
165 lport--; in rcmd_af()
203 lport--; in rcmd_af()
206 lport = 0; in rcmd_af()
208 int s2 = rresvport_af(&lport, ai->ai_family), s3; in rcmd_af()
215 snprintf(num, sizeof(num), "%d", lport); in rcmd_af()
271 lport = 0; in rcmd_af()
301 if (lport) in rcmd_af()
/dragonfly/sys/net/
H A Dtoeplitz.c136 in_port_t fport, lport; in toeplitz_verify() local
148 lport = 0xe606; in toeplitz_verify()
151 toeplitz_rawhash_addrport(faddr, laddr, fport, lport), in toeplitz_verify()
/dragonfly/usr.sbin/rpcbind/
H A Dpmap_svc.c258 long lport; in pmapproc_getport() local
315 lport = port; in pmapproc_getport()
316 if ((!svc_sendreply(xprt, (xdrproc_t) xdr_long, (caddr_t)&lport)) && in pmapproc_getport()
/dragonfly/usr.sbin/traceroute6/
H A Dtraceroute6.c340 u_long probe, hops, lport; in main() local
431 lport = strtoul(optarg, &ep, 0); in main()
436 if (lport == 0 || lport != (lport & 0xffff)) { in main()
441 port = lport & 0xffff; in main()
/dragonfly/usr.sbin/lpr/common_source/
H A Dnet.c88 int s, timo = 1, lport = IPPORT_RESERVED - 1; in getport() local
113 s = rresvport_af(&lport, ai->ai_family); in getport()
/dragonfly/crypto/openssh/
H A Dmux.c690 u_int lport, cport; in mux_master_process_open_fwd() local
698 (r = sshbuf_get_u32(m, &lport)) != 0 || in mux_master_process_open_fwd()
701 (lport != (u_int)PORT_STREAMLOCAL && lport > 65535) || in mux_master_process_open_fwd()
717 fwd.listen_port = lport; in mux_master_process_open_fwd()
857 u_int lport, cport; in mux_master_process_close_fwd() local
863 (r = sshbuf_get_u32(m, &lport)) != 0 || in mux_master_process_close_fwd()
866 (lport != (u_int)PORT_STREAMLOCAL && lport > 65535) || in mux_master_process_close_fwd()
883 fwd.listen_port = lport; in mux_master_process_close_fwd()
H A Dservconf.h241 int lport; /* local port */ member
H A Dservconf.c968 ci.lport = ssh_local_port(ssh); in get_connection_info()
1059 ci->laddress ? ci->laddress : "(null)", ci->lport); in match_cfg_line()
1178 if (ci == NULL || (ci->test && ci->lport == -1)) { in match_cfg_line()
1182 if (ci->lport == 0) in match_cfg_line()
1185 if (port == ci->lport) in match_cfg_line()
2569 ci->lport = a2port(p + 6); in parse_server_match_testspec()
2570 if (ci->lport == -1) { in parse_server_match_testspec()
H A Dchannels.c3872 const char *lhost, u_short lport, int cport, in channel_cancel_lport_listener_tcpip() argument
3883 if (c->listening_port != lport) in channel_cancel_lport_listener_tcpip()