Searched refs:lport (Results 1 - 25 of 33) sorted by relevance

12

/netbsd-current/sys/netinet/
H A Dtcp_vtw.h93 * searched by faddr, fport, laddr, lport. The key is a function of
224 uint16_t lport; member in struct:vtw_v4
234 uint16_t lport; member in struct:vtw_v6
320 v4_tag(uint32_t faddr, uint32_t fport, uint32_t laddr, uint32_t lport) argument
323 + ntohl(laddr) + ntohs(lport));
328 const struct in6_addr *laddr, uint16_t lport)
331 return IN6_HASH(faddr, fport, laddr, lport);
338 v4_port_tag(uint16_t lport) argument
340 uint32_t tag = lport ^ (lport << 1
327 v6_tag(const struct in6_addr *faddr, uint16_t fport, const struct in6_addr *laddr, uint16_t lport) argument
353 v6_port_tag(uint16_t lport) argument
378 uint16_t fport, lport; member in struct:vestigial_inpcb
[all...]
H A Din_pcb.c144 #define INPCBHASH_PORT(table, lport) \
145 &(table)->inpt_porthashtbl[ntohs(lport) & (table)->inpt_porthash]
146 #define INPCBHASH_BIND(table, laddr, lport) \
148 ((ntohl((laddr).s_addr) + ntohs(lport))) & (table)->inpt_bindhash]
149 #define INPCBHASH_CONNECT(table, faddr, fport, laddr, lport) \
152 (ntohl((laddr).s_addr) + ntohs(lport))) & (table)->inpt_connecthash]
276 in_port_t lport = 0; local
303 error = portalgo_randport(&lport, inp, cred);
308 *lastport = lport;
309 lport
775 in_port_t fport = fport_arg, lport = lport_arg; local
962 in_port_t lport = lport_arg; local
1073 in_port_t fport = fport_arg, lport = lport_arg; local
1123 in_port_t lport = lport_arg; local
[all...]
H A Dtcp_vtw.c210 * We allocate 2x as much, as we have two hashes: full and lport only.
526 tag = v4_tag(v4->faddr, v4->fport, v4->laddr, v4->lport);
528 tag = v6_tag(&v6->faddr, v6->fport, &v6->laddr, v6->lport);
607 tag = v4_port_tag(v4->lport);
609 tag = v6_port_tag(v6->lport);
715 v4->laddr, v4->lport);
723 , v4->laddr, v4->lport
727 tag = v4_port_tag(v4->lport);
731 , v4->lport, v4->lport
1028 uint16_t lport = it->port; local
1142 uint16_t lport = it->port; local
1649 tcp_lookup_v4(struct in_addr faddr, uint16_t fport, struct in_addr laddr, uint16_t lport, struct vestigial_inpcb *res) argument
1749 tcp_lookup_v6(const struct in6_addr *faddr, uint16_t fport, const struct in6_addr *laddr, uint16_t lport, struct vestigial_inpcb *res) argument
[all...]
H A Dsctp_pcb.c242 uint16_t lport, rport; local
254 lport = ((struct sockaddr_in *)to)->sin_port;
257 lport = ((struct sockaddr_in6 *)to)->sin6_port;
263 (lport + rport), sctppcbinfo.hashtcpmark)];
274 if (lport != inp->sctp_lport) {
662 uint16_t lport)
689 (inp->sctp_lport == lport)) {
726 printf("Ok, there is NO bound-all available for port:%x\n", ntohs(lport));
739 if (inp->sctp_lport != lport) {
833 int lport; local
661 sctp_endpoint_probe(struct sockaddr *nam, struct sctppcbhead *head, uint16_t lport) argument
1054 sctp_findassoc_by_vtag(struct sockaddr *from, uint32_t vtag, struct sctp_inpcb **inp_p, struct sctp_nets **netp, uint16_t rport, uint16_t lport) argument
1492 uint16_t lport, rport; local
1572 sctp_isport_inuse(struct sctp_inpcb *inp, uint16_t lport) argument
1619 uint16_t lport; local
[all...]
H A Din_pcb.h328 #define IN6_HASH(faddr, fport, laddr, lport) \
333 + (fport) + (lport))
H A Dportalgo.c750 uint16_t lport; local
810 error = (*algos[algo].func)(algo, &lport, inp, cred);
812 *port = lport;
/netbsd-current/external/cddl/dtracetoolkit/dist/Bin/
H A Dtcpsnoop.d137 self->lport = self->connp->u_port.tcpu_ports.tcpu_lport;
140 self->lport = BSWAP_16(self->connp->u_port.tcpu_ports.tcpu_lport);
185 tlport[(int)self->connp] = self->lport;
245 self->lport = (uint16_t)arg0;
248 self->lport = BSWAP_16((uint16_t)arg0);
251 self->lport = BE16_TO_U16(arg0);
266 self->uid, self->pid, self->laddr, self->lport, self->dir,
270 self->uid, self->pid, self->laddr, self->lport, self->dir,
293 self->lport = tlport[(int)self->conn_p];
322 self->lport
[all...]
H A Dtcpsnoop_snv.d139 self->lport = self->connp->u_port.tcpu_ports.tcpu_lport;
142 self->lport = BSWAP_16(self->connp->u_port.tcpu_ports.tcpu_lport);
187 tlport[(int)self->connp] = self->lport;
247 self->lport = (uint16_t)arg0;
250 self->lport = BSWAP_16((uint16_t)arg0);
253 self->lport = BE16_TO_U16(arg0);
268 self->uid, self->pid, self->laddr, self->lport, self->dir,
272 self->uid, self->pid, self->laddr, self->lport, self->dir,
295 self->lport = tlport[(int)self->conn_p];
324 self->lport
[all...]
/netbsd-current/external/cddl/dtracetoolkit/dist/Net/
H A Dtcpsnoop.d137 self->lport = self->connp->u_port.tcpu_ports.tcpu_lport;
140 self->lport = BSWAP_16(self->connp->u_port.tcpu_ports.tcpu_lport);
185 tlport[(int)self->connp] = self->lport;
245 self->lport = (uint16_t)arg0;
248 self->lport = BSWAP_16((uint16_t)arg0);
251 self->lport = BE16_TO_U16(arg0);
266 self->uid, self->pid, self->laddr, self->lport, self->dir,
270 self->uid, self->pid, self->laddr, self->lport, self->dir,
293 self->lport = tlport[(int)self->conn_p];
322 self->lport
[all...]
H A Dtcpsnoop_snv.d139 self->lport = self->connp->u_port.tcpu_ports.tcpu_lport;
142 self->lport = BSWAP_16(self->connp->u_port.tcpu_ports.tcpu_lport);
187 tlport[(int)self->connp] = self->lport;
247 self->lport = (uint16_t)arg0;
250 self->lport = BSWAP_16((uint16_t)arg0);
253 self->lport = BE16_TO_U16(arg0);
268 self->uid, self->pid, self->laddr, self->lport, self->dir,
272 self->uid, self->pid, self->laddr, self->lport, self->dir,
295 self->lport = tlport[(int)self->conn_p];
324 self->lport
[all...]
/netbsd-current/sys/netinet6/
H A Din6_pcb.c112 #define IN6PCBHASH_PORT(table, lport) \
113 &(table)->inpt_porthashtbl[ntohs(lport) & (table)->inpt_porthash]
114 #define IN6PCBHASH_BIND(table, laddr, lport) \
117 (laddr)->s6_addr32[2] ^ (laddr)->s6_addr32[3]) + ntohs(lport)) & \
119 #define IN6PCBHASH_CONNECT(table, faddr, fport, laddr, lport) \
125 ntohs(lport))) & (table)->inpt_bindhash]
609 in_port_t fport = fport_arg, lport = lport_arg; local
637 lport = 0;
724 if (lport == 0 && fport == 0 && flowinfo &&
732 (lport
839 in_port_t lport = lport_arg; local
1050 in_port_t fport = fport_arg, lport = lport_arg; local
1094 in_port_t lport = lport_arg; local
[all...]
H A Din6_src.c848 u_int16_t lport, *lastport; local
874 error = portalgo_randport(&lport, inp, l->l_cred);
879 *lastport = lport;
880 inp->inp_lport = htons(lport);
/netbsd-current/sys/net/
H A Dtoeplitz.c181 in_addr_t faddr, in_addr_t laddr, in_port_t fport, in_port_t lport)
183 return (stoeplitz_hash_n32(scache, faddr ^ laddr ^ fport ^ lport));
203 in_port_t fport, in_port_t lport)
211 n32 ^= fport ^ lport;
180 stoeplitz_hash_ip4port(const struct stoeplitz_cache *scache, in_addr_t faddr, in_addr_t laddr, in_port_t fport, in_port_t lport) argument
201 stoeplitz_hash_ip6port(const struct stoeplitz_cache *scache, const struct in6_addr *faddr6, const struct in6_addr *laddr6, in_port_t fport, in_port_t lport) argument
/netbsd-current/libexec/identd/
H A Didentd.c333 int lport, fport; local
339 lport = fport = 0;
395 lport = atoi(p);
401 if (lport < 1 || lport > 65535 || fport < 1 || fport > 65535) {
403 lport, fport, gethost((struct sockaddr *)&ss[0]));
412 idparse(fd, lport, fport, charset, osname, idbuf);
420 satosin(&ss[1])->sin_port = htons(lport);
424 satosin6(&ss[1])->sin6_port = htons(lport);
442 nat_lport, fport, lport)) {
536 idparse(int fd, int lport, int fport, const char *charset, const char *osname, const char *user) argument
553 iderror(int fd, int lport, int fport, const char *error) argument
801 forward(int fd, struct sockaddr *nat_addr, int nat_lport, int fport, int lport) argument
[all...]
/netbsd-current/usr.sbin/rpcbind/
H A Dpmap_svc.c265 long lport; local
322 lport = port;
323 if ((!svc_sendreply(xprt, (xdrproc_t) xdr_long, (caddr_t)&lport)) &&
/netbsd-current/lib/libc/net/
H A Drcmd.c199 int s, lport, timo; local
218 for (timo = 1, lport = IPPORT_RESERVED - 1;;) {
219 s = rresvport_af(&lport, r->ai_family);
238 lport--;
275 lport--;
278 lport = 0;
281 int s2 = rresvport_af(&lport, r->ai_family), s3;
287 (void)snprintf(num, sizeof(num), "%d", lport);
313 lport = 0;
355 if (lport)
[all...]
/netbsd-current/usr.sbin/lpr/common_source/
H A Dcommon.c136 int s, lport = IPPORT_RESERVED - 1; local
173 s = rresvport_af(&lport, r->ai_family);
183 lport--;
/netbsd-current/external/ibm-public/postfix/dist/src/xsasl/
H A Dxsasl_cyrus_client.c117 #define SASL_CLIENT_NEW(srv, fqdn, lport, rport, prompt, secflags, pconn) \
129 #define SASL_CLIENT_NEW(srv, fqdn, lport, rport, prompt, secflags, pconn) \
130 sasl_client_new(srv, fqdn, lport, rport, prompt, secflags, pconn)
H A Dxsasl_cyrus_server.c115 #define SASL_SERVER_NEW(srv, fqdn, rlm, lport, rport, cb, secflags, pconn) \
132 #define SASL_SERVER_NEW(srv, fqdn, rlm, lport, rport, cb, secflags, pconn) \
133 sasl_server_new(srv, fqdn, rlm, lport, rport, cb, secflags, pconn)
/netbsd-current/usr.bin/netstat/
H A Dinet.c133 struct in_addr *laddr, uint16_t lport,
153 inetprint(laddr, lport, name, 1);
156 inetprint(laddr, lport, name, 1);
159 inetprint(laddr, lport, name, 0);
208 buf[0], ntohs(v4->lport),
216 buf[0], ntohs(v4->lport),
221 buf[0], ntohs(v4->lport),
226 &la, v4->lport,
132 protopr0(intptr_t ppcb, u_long rcv_sb_cc, u_long snd_sb_cc, struct in_addr *laddr, uint16_t lport, struct in_addr *faddr, uint16_t fport, short t_state, const char *name, int inp_flags, const struct timeval *expires) argument
H A Dinet6.c191 const struct in6_addr *laddr, uint16_t lport,
209 inet6print(laddr, (int)lport, name);
261 buf[0], ntohs(v6->lport),
269 buf[0], ntohs(v6->lport),
274 buf[0], ntohs(v6->lport),
279 &v6->laddr, v6->lport,
190 ip6protopr0(intptr_t ppcb, u_long rcv_sb_cc, u_long snd_sb_cc, const struct in6_addr *laddr, uint16_t lport, const struct in6_addr *faddr, uint16_t fport, short t_state, const char *name, const struct timeval *expires) argument
/netbsd-current/usr.sbin/traceroute6/
H A Dtraceroute6.c367 u_long probe, hops, lport; local
436 lport = strtoul(optarg, &ep, 0);
439 if (lport == 0 || lport != (lport & 0xffff))
441 port = lport & 0xffff;
/netbsd-current/crypto/external/bsd/openssh/dist/
H A Dservconf.h264 int lport; /* local port */ member in struct:connection_info
H A Dmux.c681 u_int lport, cport; local
686 /* XXX - lport/cport check redundant */
689 (r = sshbuf_get_u32(m, &lport)) != 0 ||
692 (lport != (u_int)PORT_STREAMLOCAL && lport > 65535) ||
708 fwd.listen_port = lport;
848 u_int lport, cport; local
854 (r = sshbuf_get_u32(m, &lport)) != 0 ||
857 (lport != (u_int)PORT_STREAMLOCAL && lport > 6553
[all...]
/netbsd-current/external/bsd/libbind/dist/tests/
H A Ddig8.c283 short lport; local
592 lport = htons(atoi(p));
594 lport = htons(0);
597 myaddress6.sin6_port = lport;
604 myaddress.sin_port = lport;

Completed in 479 milliseconds

12