/freebsd-11.0-release/sys/netinet6/ |
H A D | in6_pcb.c | 122 u_short lport = 0; local 156 lport = sin6->sin6_port; 192 if (lport) { 197 if (ntohs(lport) <= V_ipport_reservedhigh && 198 ntohs(lport) >= V_ipport_reservedlow && 206 &sin6->sin6_addr, lport, 236 sin.sin_addr, lport, 255 lport, lookupflags, cred); 277 lport, lookupflags, cred); 298 if (lport 595 u_short fport = fport_arg, lport = lport_arg; local 687 in6_pcblookup_local(struct inpcbinfo *pcbinfo, struct in6_addr *laddr, u_short lport, int lookupflags, struct ucred *cred) argument 868 u_short fport = fport_arg, lport = lport_arg; local 1053 u_short fport = fport_arg, lport = lport_arg; local 1159 in6_pcblookup_hash(struct inpcbinfo *pcbinfo, struct in6_addr *faddr, u_int fport, struct in6_addr *laddr, u_int lport, int lookupflags, struct ifnet *ifp) argument 1193 in6_pcblookup(struct inpcbinfo *pcbinfo, struct in6_addr *faddr, u_int fport, struct in6_addr *laddr, u_int lport, int lookupflags, struct ifnet *ifp) argument 1228 in6_pcblookup_mbuf(struct inpcbinfo *pcbinfo, struct in6_addr *faddr, u_int fport, struct in6_addr *laddr, u_int lport, int lookupflags, struct ifnet *ifp, struct mbuf *m) argument [all...] |
H A D | in6_pcbgroup.c | 99 u_short lport, const struct in6_addr *faddrp, u_short fport) 111 hash = rss_hash_ip6_4tuple(faddrp, fport, laddrp, lport); 98 in6_pcbgroup_bytuple(struct inpcbinfo *pcbinfo, const struct in6_addr *laddrp, u_short lport, const struct in6_addr *faddrp, u_short fport) argument
|
/freebsd-11.0-release/crypto/openssh/regress/ |
H A D | addrmatch.sh | 10 user="$1"; addr="$2"; host="$3"; laddr="$4"; lport="$5" 15 -C user=${user},addr=${addr},host=${host},laddr=${laddr},lport=${lport} | \
|
/freebsd-11.0-release/usr.sbin/tcpdrop/ |
H A D | tcpdrop.c | 69 char *lport, *fport; local 102 lport = findport(argv[0]); 104 if (lport == NULL || lport[1] == '\0' || fport == NULL || 107 *lport++ = '\0'; 109 if (!tcpdropbyname(argv[0], lport, argv[1], fport)) 248 tcpdropbyname(const char *lhost, const char *lport, const char *fhost, argument 262 error = getaddrinfo(lhost, lport, &hints, &local); 264 errx(1, "getaddrinfo: %s port %s: %s", lhost, lport, 291 warnx("%s %s %s %s: different address families", lhost, lport, [all...] |
/freebsd-11.0-release/usr.sbin/inetd/ |
H A D | builtins.c | 326 iderror(int lport, int fport, int s, const char *er) argument 330 asprintf(&p, "%d , %d : ERROR : %s\r\n", lport, fport, er); 367 u_short lport, fport; local 506 if (sscanf(buf, "%hu , %hu%c", &lport, &fport, &e) != 3 || isdigit(e)) 520 iderror(lport, fport, s, ID_HIDDEN); 533 iderror(lport, fport, s, ID_UNKNOWN); 536 iderror(lport, fport, s, ID_UNKNOWN); 538 iderror(lport, fport, s, ID_UNKNOWN); 543 sin4[0].sin_port = htons(lport); 553 sin6[0].sin6_port = htons(lport); [all...] |
/freebsd-11.0-release/sys/netinet/ |
H A D | in_pcb.c | 383 u_short aux, first, last, lport; local 455 lport = *lportp; 468 lport = htons(*lastport); 473 &inp->in6p_laddr, lport, lookupflags, cred); 480 lport, lookupflags, cred); 488 *lportp = lport; 559 u_short lport = 0; local 598 lport = sin->sin_port; 600 /* NB: lport is left as 0 if the port isn't being changed. */ 624 if (lport) { 717 u_short lport, fport; local 1015 u_short lport, fport; local 1491 in_pcblookup_local(struct inpcbinfo *pcbinfo, struct in_addr laddr, u_short lport, int lookupflags, struct ucred *cred) argument 1619 u_short fport = fport_arg, lport = lport_arg; local 1834 u_short fport = fport_arg, lport = lport_arg; local 1951 in_pcblookup_hash(struct inpcbinfo *pcbinfo, struct in_addr faddr, u_int fport, struct in_addr laddr, u_int lport, int lookupflags, struct ifnet *ifp) argument 1985 in_pcblookup(struct inpcbinfo *pcbinfo, struct in_addr faddr, u_int fport, struct in_addr laddr, u_int lport, int lookupflags, struct ifnet *ifp) argument 2020 in_pcblookup_mbuf(struct inpcbinfo *pcbinfo, struct in_addr faddr, u_int fport, struct in_addr laddr, u_int lport, int lookupflags, struct ifnet *ifp, struct mbuf *m) argument [all...] |
H A D | sctp_pcb.h | 136 uint16_t lport; /* the local port used in vtag */ member in struct:sctp_timewait 595 int sctp_is_in_timewait(uint32_t tag, uint16_t lport, uint16_t rport); 598 sctp_add_vtag_to_timewait(uint32_t tag, uint32_t time, uint16_t lport, uint16_t rport); 625 int sctp_is_vtag_good(uint32_t, uint16_t lport, uint16_t rport, struct timeval *);
|
H A D | sctp_pcb.c | 1022 uint16_t lport, rport; local 1036 lport = ((struct sockaddr_in *)to)->sin_port; 1046 lport = ((struct sockaddr_in6 *)to)->sin6_port; 1056 ephead = &SCTP_BASE_INFO(sctp_tcpephash)[SCTP_PCBHASH_ALLADDR((lport | rport), SCTP_BASE_INFO(hashtcpmark))]; 1069 if (lport != inp->sctp_lport) { 1621 uint16_t lport, uint32_t vrf_id) 1669 (inp->sctp_lport == lport)) { 1760 if (inp->sctp_lport != lport) { 1817 sctp_isport_inuse(struct sctp_inpcb *inp, uint16_t lport, uint32_t vrf_id) argument 1823 head = &SCTP_BASE_INFO(sctp_ephash)[SCTP_PCBHASH_ALLADDR(lport, 1620 sctp_endpoint_probe(struct sockaddr *nam, struct sctppcbhead *head, uint16_t lport, uint32_t vrf_id) argument 1927 int lport; local 2152 sctp_findassoc_by_vtag(struct sockaddr *from, struct sockaddr *to, uint32_t vtag, struct sctp_inpcb **inp_p, struct sctp_nets **netp, uint16_t rport, uint16_t lport, int skip_src_check, uint32_t vrf_id, uint32_t remote_tag) argument 2670 uint16_t lport, rport; local 2839 uint16_t lport; local 4519 sctp_delete_from_timewait(uint32_t tag, uint16_t lport, uint16_t rport) argument 4546 sctp_is_in_timewait(uint32_t tag, uint16_t lport, uint16_t rport) argument 4573 sctp_add_vtag_to_timewait(uint32_t tag, uint32_t time, uint16_t lport, uint16_t rport) argument 6769 sctp_is_vtag_good(uint32_t tag, uint16_t lport, uint16_t rport, struct timeval *now) argument [all...] |
H A D | in_pcb.h | 84 * lport, faddr to generate hash, so these fields shouldn't be moved. 550 #define INP_PCBHASH(faddr, lport, fport, mask) \ 551 (((faddr) ^ ((faddr) >> 16) ^ ntohs((lport) ^ (fport))) & (mask)) 552 #define INP_PCBPORTHASH(lport, mask) \ 553 (ntohs((lport)) & (mask))
|
H A D | in_pcbgroup.c | 270 u_short lport, struct in_addr faddr, u_short fport) 282 hash = rss_hash_ip4_4tuple(faddr, fport, laddr, lport); 269 in_pcbgroup_bytuple(struct inpcbinfo *pcbinfo, struct in_addr laddr, u_short lport, struct in_addr faddr, u_short fport) argument
|
H A D | siftr.c | 1204 uint16_t lport, fport; local 1344 memcpy(&lport, key + key_index, sizeof(lport)); 1345 key_index += sizeof(lport); 1373 ntohs(lport), 1399 ntohs(lport),
|
H A D | udp_usrreq.c | 1140 u_short fport, lport; local 1304 lport = inp->inp_lport; 1307 if ((lport == 0) || 1314 &laddr.s_addr, &lport, td->td_ucred); 1359 &lport, &faddr.s_addr, &fport, NULL, 1379 inp->inp_lport = lport; 1424 ui->ui_sport = lport; 1523 if (rss_proto_software_hash_v4(faddr, laddr, fport, lport,
|
/freebsd-11.0-release/sys/dev/cxgbe/ |
H A D | t4_l2t.h | 76 uint8_t lport; /* associated offload logical port */ member in struct:l2t_entry
|
H A D | t4_l2t.c | 136 req->params = htons(V_L2T_W_PORT(e->lport) | V_L2T_W_NOREPLY(!sync)); 182 e->lport = port; 324 e->vlan & 0xfff, vlan_prio(e), e->lport,
|
/freebsd-11.0-release/lib/libc/net/ |
H A D | rcmd.c | 91 int s, aport, lport, timo, error; local 146 for (timo = 1, lport = IPPORT_RESERVED - 1;;) { 147 s = rresvport_af(&lport, ai->ai_family); 169 lport--; 209 lport--; 212 lport = 0; 214 int s2 = rresvport_af(&lport, ai->ai_family), s3; 221 (void)snprintf(num, sizeof(num), "%d", lport); 277 lport = 0; 307 if (lport) [all...] |
/freebsd-11.0-release/sys/contrib/octeon-sdk/ |
H A D | cvmx-dma-engine.h | 86 uint64_t lport : 2; /**< Last port. LPort indicates the physical PCIe port used for the member in struct:__anon8507::__anon8508
|
/freebsd-11.0-release/contrib/netbsd-tests/fs/nfs/nfsservice/rpcbind/ |
H A D | pmap_svc.c | 265 long lport; local 322 lport = port; 323 if ((!svc_sendreply(xprt, (xdrproc_t) xdr_long, (caddr_t)&lport)) &&
|
/freebsd-11.0-release/usr.sbin/rpcbind/ |
H A D | pmap_svc.c | 266 long lport; local 323 lport = port; 324 if ((!svc_sendreply(xprt, (xdrproc_t) xdr_long, (caddr_t)&lport)) &&
|
/freebsd-11.0-release/sys/netpfil/ipfw/ |
H A D | ip_fw_nat.c | 71 uint16_t lport; /* local port */ member in struct:cfg_redir 206 r->lport = ser_r->lport; 230 r->laddr, htons(r->lport + i), r->raddr, 736 ser_r->lport = r->lport; 901 u_short lport; member in struct:cfg_redir_legacy 972 urdir->lport = rdir->lport; 1072 ser_r->lport [all...] |
/freebsd-11.0-release/usr.sbin/lpr/common_source/ |
H A D | net.c | 92 int s, timo = 1, lport = IPPORT_RESERVED - 1; local 117 s = rresvport_af(&lport, ai->ai_family); 141 * This used to decrement lport, but the current semantics
|
/freebsd-11.0-release/crypto/openssh/ |
H A D | servconf.h | 206 int lport; /* local port */ member in struct:connection_info
|
/freebsd-11.0-release/usr.sbin/traceroute6/ |
H A D | traceroute6.c | 374 u_long probe, hops, lport; local 499 lport = strtoul(optarg, &ep, 0); 504 if (lport == 0 || lport != (lport & 0xffff)) { 509 port = lport & 0xffff;
|
/freebsd-11.0-release/sys/netgraph/atm/ccatm/ |
H A D | ng_ccatm.c | 798 u_long lport; local 807 lport = strtoul(name + 3, &end, 10); 808 if (*end != '\0' || lport == 0 || lport > 0xffffffff) 818 port = cc_port_create(priv->data, hd, (u_int)lport);
|
/freebsd-11.0-release/sbin/ipfw/ |
H A D | nat.c | 432 r->lport = ~0; 454 r->lport = GETLOPORT(portRange); 478 r->lport = r->pport; 702 printf("%s:%u", inet_ntoa(t->laddr), t->lport); 704 printf("-%u", t->lport +
|
/freebsd-11.0-release/sys/dev/cxgbe/tom/ |
H A D | t4_tom_l2t.c | 388 e->lport = pi->lport;
|