/freebsd-current/sys/netinet6/ |
H A D | in6_pcb.c | 119 u_int16_t lport = 0; local 139 error = in_pcb_lport(inp, NULL, &lport, cred, lookupflags); 143 inp->inp_lport = lport; 158 u_short lport = 0; local 192 lport = sin6->sin6_port; 237 if (lport) { 241 if (ntohs(lport) <= V_ipport_reservedhigh && 242 ntohs(lport) >= V_ipport_reservedlow && 248 &sin6->sin6_addr, lport, 268 sin.sin_addr, lport, 622 u_short fport = fport_arg, lport = lport_arg; local 680 in6_pcblookup_local(struct inpcbinfo *pcbinfo, struct in6_addr *laddr, u_short lport, int lookupflags, struct ucred *cred) argument 852 in6_pcblookup_lbgroup(const struct inpcbinfo *pcbinfo, const struct in6_addr *faddr, uint16_t fport, const struct in6_addr *laddr, uint16_t lport, uint8_t domain) argument 925 in6_pcblookup_exact_match(const struct inpcb *inp, const struct in6_addr *faddr, u_short fport, const struct in6_addr *laddr, u_short lport) argument 939 in6_pcblookup_hash_exact(struct inpcbinfo *pcbinfo, const struct in6_addr *faddr, u_short fport, const struct in6_addr *laddr, u_short lport) argument 967 in6_pcblookup_wild_match(const struct inpcb *inp, const struct in6_addr *laddr, u_short lport) argument 986 in6_pcblookup_hash_wild_smr(struct inpcbinfo *pcbinfo, const struct in6_addr *faddr, u_short fport, const struct in6_addr *laddr, u_short lport, const inp_lookup_t lockflags) argument 1024 in6_pcblookup_hash_wild_locked(struct inpcbinfo *pcbinfo, const struct in6_addr *faddr, u_short fport, const struct in6_addr *laddr, u_short lport) argument 1090 u_short fport = fport_arg, lport = lport_arg; local 1116 in6_pcblookup_hash(struct inpcbinfo *pcbinfo, const struct in6_addr *faddr, u_int fport, const struct in6_addr *laddr, u_int lport, int lookupflags, uint8_t numa_domain) argument 1149 const u_short fport = fport_arg, lport = lport_arg; local 1205 in6_pcblookup(struct inpcbinfo *pcbinfo, struct in6_addr *faddr, u_int fport, struct in6_addr *laddr, u_int lport, int lookupflags, struct ifnet *ifp __unused) argument 1214 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 __unused, struct mbuf *m) argument [all...] |
/freebsd-current/tools/tools/switch_tls/ |
H A D | switch_tls.c | 70 char *lport, *fport; local 118 lport = findport(argv[0]); 120 if (lport == NULL || lport[1] == '\0' || fport == NULL || 123 *lport++ = '\0'; 125 if (!tcpswitchbyname(argv[0], lport, argv[1], fport, mode)) 270 tcpswitchbyname(const char *lhost, const char *lport, const char *fhost, argument 284 error = getaddrinfo(lhost, lport, &hints, &local); 286 errx(1, "getaddrinfo: %s port %s: %s", lhost, lport, 313 warnx("%s %s %s %s: different address families", lhost, lport, [all...] |
/freebsd-current/usr.sbin/tcpdrop/ |
H A D | tcpdrop.c | 68 char *lport, *fport; local 126 lport = findport(argv[0]); 128 if (lport == NULL || lport[1] == '\0' || fport == NULL || 131 *lport++ = '\0'; 133 if (!tcpdropbyname(argv[0], lport, argv[1], fport)) 287 tcpdropbyname(const char *lhost, const char *lport, const char *fhost, argument 302 error = getaddrinfo(lhost, lport, &hints, &local); 304 errx(1, "getaddrinfo: %s port %s: %s", lhost, lport, 331 warnx("%s %s %s %s: different address families", lhost, lport, [all...] |
/freebsd-current/usr.sbin/inetd/ |
H A D | builtins.c | 323 iderror(int lport, int fport, int s, const char *er) argument 327 asprintf(&p, "%d , %d : ERROR : %s\r\n", lport, fport, er); 364 u_short lport, fport; local 503 if (sscanf(buf, "%hu , %hu%c", &lport, &fport, &e) != 3 || isdigit(e)) 517 iderror(lport, fport, s, ID_HIDDEN); 530 iderror(lport, fport, s, ID_UNKNOWN); 533 iderror(lport, fport, s, ID_UNKNOWN); 535 iderror(lport, fport, s, ID_UNKNOWN); 540 sin4[0].sin_port = htons(lport); 550 sin6[0].sin6_port = htons(lport); [all...] |
/freebsd-current/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-current/sys/netinet/ |
H A D | in_pcb.h | 91 * lport, faddr to generate hash, so these fields shouldn't be moved. 520 #define INP_PCBHASH(faddr, lport, fport, mask) \ 521 ((IN_ADDR_JHASH32(faddr) ^ ntohs((lport) ^ (fport))) & (mask)) 522 #define INP6_PCBHASH(faddr, lport, fport, mask) \ 523 ((IN6_ADDR_JHASH32(faddr) ^ ntohs((lport) ^ (fport))) & (mask)) 525 #define INP_PCBHASH_WILD(lport, mask) \ 526 ((V_in_pcbhashseed ^ ntohs(lport)) & (mask)) 528 #define INP_PCBLBGROUP_PKTHASH(faddr, lport, fport) \ 529 (IN_ADDR_JHASH32(faddr) ^ ntohs((lport) ^ (fport))) 530 #define INP6_PCBLBGROUP_PKTHASH(faddr, lport, fpor [all...] |
H A D | in_pcb.c | 713 u_short aux, first, last, lport; local 778 lport = *lportp; 791 lport = htons(*lastport); 797 faddr, fport, laddr, lport, lookupflags, 804 faddr6, fport, laddr6, lport, lookupflags, 812 &inp->in6p_laddr, lport, lookupflags, cred); 817 laddr, lport, lookupflags, cred); 826 lport, lookupflags, cred); 831 *lportp = lport; 872 u_short lport local 1007 u_short lport, fport; local 1279 u_short lport, fport; local 1917 in_pcblookup_local(struct inpcbinfo *pcbinfo, struct in_addr laddr, u_short lport, int lookupflags, struct ucred *cred) argument 2038 in_pcblookup_lbgroup(const struct inpcbinfo *pcbinfo, const struct in_addr *faddr, uint16_t fport, const struct in_addr *laddr, uint16_t lport, int domain) argument 2111 in_pcblookup_exact_match(const struct inpcb *inp, struct in_addr faddr, u_short fport, struct in_addr laddr, u_short lport) argument 2128 in_pcblookup_hash_exact(struct inpcbinfo *pcbinfo, struct in_addr faddr, u_short fport, struct in_addr laddr, u_short lport) argument 2152 in_pcblookup_wild_match(const struct inpcb *inp, struct in_addr laddr, u_short lport) argument 2172 in_pcblookup_hash_wild_smr(struct inpcbinfo *pcbinfo, struct in_addr faddr, u_short fport, struct in_addr laddr, u_short lport, const inp_lookup_t lockflags) argument 2210 in_pcblookup_hash_wild_locked(struct inpcbinfo *pcbinfo, struct in_addr faddr, u_short fport, struct in_addr laddr, u_short lport) argument 2294 const u_short fport = fport_arg, lport = lport_arg; local 2321 in_pcblookup_hash(struct inpcbinfo *pcbinfo, struct in_addr faddr, u_int fport, struct in_addr laddr, u_int lport, int lookupflags, uint8_t numa_domain) argument 2354 const u_short fport = fport_arg, lport = lport_arg; local 2415 in_pcblookup(struct inpcbinfo *pcbinfo, struct in_addr faddr, u_int fport, struct in_addr laddr, u_int lport, int lookupflags, struct ifnet *ifp __unused) argument 2424 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 __unused, struct mbuf *m) argument [all...] |
H A D | siftr.c | 165 uint16_t lport; member in struct:pkt_node 227 uint16_t lport; /* local TCP port */ member in struct:flow_info 416 hash_node->const_info.lport, 676 pn->lport = inp->inp_lport; 829 info.lport = ntohs(inp->inp_lport); 978 info.lport = ntohs(inp->inp_lport); 1237 counter->const_info.lport,
|
H A D | sctp_pcb.c | 1004 uint16_t lport, rport; local 1019 lport = ((struct sockaddr_in *)to)->sin_port; 1029 lport = ((struct sockaddr_in6 *)to)->sin6_port; 1039 ephead = &SCTP_BASE_INFO(sctp_tcpephash)[SCTP_PCBHASH_ALLADDR((lport | rport), SCTP_BASE_INFO(hashtcpmark))]; 1052 if (lport != inp->sctp_lport) { 1595 uint16_t lport, uint32_t vrf_id) 1640 (inp->sctp_lport == lport)) { 1731 if (inp->sctp_lport != lport) { 1787 sctp_isport_inuse(struct sctp_inpcb *inp, uint16_t lport, uint32_t vrf_id) argument 1793 head = &SCTP_BASE_INFO(sctp_ephash)[SCTP_PCBHASH_ALLADDR(lport, 1594 sctp_endpoint_probe(struct sockaddr *nam, struct sctppcbhead *head, uint16_t lport, uint32_t vrf_id) argument 1894 int lport; local 2109 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 2612 uint16_t lport, rport; local 2831 uint16_t lport; local 4544 sctp_is_in_timewait(uint32_t tag, uint16_t lport, uint16_t rport, time_t now) argument 4566 sctp_set_vtag_block(struct sctp_timewait *vtag_block, time_t time, uint32_t tag, uint16_t lport, uint16_t rport) argument 4576 sctp_add_vtag_to_timewait(uint32_t tag, uint16_t lport, uint16_t rport) argument 6718 sctp_is_vtag_good(uint32_t tag, uint16_t lport, uint16_t rport, struct timeval *now) argument [all...] |
H A D | udp_usrreq.c | 1084 u_short fport, lport; local 1231 lport = inp->inp_lport; 1233 if ((lport == 0) || 1245 error = in_pcbbind_setup(inp, &src, &laddr.s_addr, &lport, 1299 &lport, &faddr.s_addr, &fport, td->td_ucred); 1321 inp->inp_lport = lport; 1374 ui->ui_sport = lport; 1455 lport, fport, pr, &hash_type);
|
H A D | sctp_pcb.h | 135 uint16_t lport; /* the local port used in vtag */ member in struct:sctp_timewait 610 sctp_is_vtag_good(uint32_t, uint16_t lport, uint16_t rport, struct timeval *);
|
/freebsd-current/cddl/lib/libdtrace/ |
H A D | siftr.d | 46 uint16_t lport; 77 lport = p == NULL ? 0 : ntohs(p->lport);
|
/freebsd-current/sys/dev/cxgbe/ |
H A D | t4_l2t.h | 77 uint8_t lport; /* associated offload logical port */ member in struct:l2t_entry
|
H A D | t4_l2t.c | 121 e->vlan == vlan && e->lport == port) 158 req->params = htons(V_L2T_W_PORT(e->lport) | V_L2T_W_NOREPLY(!reply)); 229 if (e->vlan == vlan && e->lport == port && 265 e->lport = port; 302 e->lport = port; 312 MPASS(e->lport == port); 452 e->vlan & 0xfff, vlan_prio(e), e->lport,
|
/freebsd-current/lib/libc/net/ |
H A D | rcmd.c | 87 int s, aport, lport, timo, error; local 142 for (timo = 1, lport = IPPORT_RESERVED - 1;;) { 143 s = rresvport_af(&lport, ai->ai_family); 165 lport--; 205 lport--; 208 lport = 0; 210 int s2 = rresvport_af(&lport, ai->ai_family), s3; 217 (void)snprintf(num, sizeof(num), "%d", lport); 273 lport = 0; 303 if (lport) [all...] |
/freebsd-current/usr.sbin/rpcbind/ |
H A D | pmap_svc.c | 259 long lport; local 316 lport = port; 317 if ((!svc_sendreply(xprt, (xdrproc_t) xdr_long, (caddr_t)&lport)) &&
|
/freebsd-current/sys/netpfil/ipfw/ |
H A D | ip_fw_nat.c | 71 uint16_t lport; /* local port */ member in struct:cfg_redir 209 r->lport = ser_r->lport; 233 r->laddr, htons(r->lport + i), r->raddr, 744 ser_r->lport = r->lport; 907 u_short lport; member in struct:cfg_redir_legacy 978 urdir->lport = rdir->lport; 1078 ser_r->lport [all...] |
/freebsd-current/usr.sbin/lpr/common_source/ |
H A D | net.c | 90 int s, timo = 1, lport = IPPORT_RESERVED - 1; local 115 s = rresvport_af(&lport, ai->ai_family); 139 * This used to decrement lport, but the current semantics
|
/freebsd-current/sys/dev/ice/ |
H A D | ice_switch.c | 1053 pi->lport = (u8)(vsi_port_num & ICE_LPORT_MASK); 2006 * @lport: logic port number on which function add rule 2013 u8 lport, struct ice_fltr_list_entry *f_entry) 2033 new_fltr->src = lport; 2337 * @lport: logic port number on which function add rule 2347 struct ice_switch_info *sw, u8 lport) 2396 ice_add_rule_internal(hw, recp_list, lport, 2502 hw->port_info->lport); 2706 * @lport: logic port number on which function add rule 2714 struct ice_switch_info *sw, u8 lport) 2012 ice_add_rule_internal(struct ice_hw *hw, struct ice_sw_recipe *recp_list, u8 lport, struct ice_fltr_list_entry *f_entry) argument 2346 ice_add_mac_rule(struct ice_hw *hw, struct LIST_HEAD_TYPE *m_list, struct ice_switch_info *sw, u8 lport) argument 2713 ice_add_eth_mac_rule(struct ice_hw *hw, struct LIST_HEAD_TYPE *em_list, struct ice_switch_info *sw, u8 lport) argument 2937 u8 lport = pi->lport; local 3519 _ice_set_vsi_promisc(struct ice_hw *hw, u16 vsi_handle, ice_bitmap_t *promisc_mask, u16 vid, u8 lport, struct ice_switch_info *sw) argument 3674 _ice_set_vlan_vsi_promisc(struct ice_hw *hw, u16 vsi_handle, ice_bitmap_t *promisc_mask, bool rm_vlan_promisc, u8 lport, struct ice_switch_info *sw) argument 4155 u8 lport = hw->port_info->lport; local [all...] |
H A D | ice_common.h | 244 ice_aq_sff_eeprom(struct ice_hw *hw, u16 lport, u8 bus_addr, 262 u8 *option_count, u8 lport, bool lport_valid, 266 ice_aq_set_port_option(struct ice_hw *hw, u8 lport, u8 lport_valid,
|
/freebsd-current/sys/netpfil/ipfw/nat64/ |
H A D | nat64_translate.h | 142 struct in6_addr *daddr, uint16_t lport, struct nat64_config *cfg,
|
H A D | nat64_translate.c | 1224 struct in6_addr *daddr, uint16_t lport, struct nat64_config *cfg, 1301 if (lport != 0) { 1303 *csum = cksum_adjust(*csum, tcp->th_dport, lport); 1304 tcp->th_dport = lport; 1310 if (lport != 0) { 1312 *csum = cksum_adjust(*csum, udp->uh_dport, lport); 1313 udp->uh_dport = lport; 1318 m = nat64_icmp_translate(m, &ip6, lport, hlen, cfg); 1223 nat64_do_handle_ip4(struct mbuf *m, struct in6_addr *saddr, struct in6_addr *daddr, uint16_t lport, struct nat64_config *cfg, void *logdata) argument
|
/freebsd-current/sbin/ipfw/ |
H A D | nat.c | 432 r->lport = ~0; 454 r->lport = GETLOPORT(portRange); 478 r->lport = r->pport; 706 printf("%s:%u", inet_ntoa(t->laddr), t->lport); 708 printf("-%u", t->lport +
|
/freebsd-current/usr.sbin/traceroute6/ |
H A D | traceroute6.c | 355 u_long probe, hops, lport, ltclass; local 484 lport = strtoul(optarg, &ep, 0); 489 if (lport == 0 || lport != (lport & 0xffff)) { 494 port = lport & 0xffff;
|
/freebsd-current/sys/dev/cxgbe/tom/ |
H A D | t4_tom_l2t.c | 398 e->lport = pi->lport;
|