Home
last modified time | relevance | path

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

123

/freebsd/sys/netinet6/
H A Din6_pcb.c129 u_int16_t lport = 0; in in6_pcbsetport() local
149 error = in_pcb_lport(inp, NULL, &lport, cred, lookupflags); in in6_pcbsetport()
153 inp->inp_lport = lport; in in6_pcbsetport()
168 u_short lport = 0; in in6_pcbbind() local
202 lport = sin6->sin6_port; in in6_pcbbind()
247 if (lport) { in in6_pcbbind()
250 if (ntohs(lport) <= V_ipport_reservedhigh && in in6_pcbbind()
251 ntohs(lport) >= V_ipport_reservedlow && in in6_pcbbind()
258 &sin6->sin6_addr, lport, in in6_pcbbind()
278 sin.sin_addr, lport, in in6_pcbbind()
[all …]
/freebsd/usr.sbin/inetd/
H A Dbuiltins.c323 iderror(int lport, int fport, int s, const char *er) in iderror() argument
327 asprintf(&p, "%d , %d : ERROR : %s\r\n", lport, fport, er); in iderror()
364 u_short lport, fport; in ident_stream() local
503 if (sscanf(buf, "%hu , %hu%c", &lport, &fport, &e) != 3 || isdigit(e)) in ident_stream()
517 iderror(lport, fport, s, ID_HIDDEN); in ident_stream()
530 iderror(lport, fport, s, ID_UNKNOWN); in ident_stream()
533 iderror(lport, fport, s, ID_UNKNOWN); in ident_stream()
535 iderror(lport, fport, s, ID_UNKNOWN); in ident_stream()
540 sin4[0].sin_port = htons(lport); in ident_stream()
550 sin6[0].sin6_port = htons(lport); in ident_stream()
[all...]
/freebsd/sys/netinet/
H A Din_pcb.c721 u_short aux, first, last, lport; in in_pcb_lport_dest() local
786 lport = *lportp; in in_pcb_lport_dest()
799 lport = htons(*lastport); in in_pcb_lport_dest()
805 faddr, fport, laddr, lport, lookupflags, in in_pcb_lport_dest()
812 faddr6, fport, laddr6, lport, lookupflags, in in_pcb_lport_dest()
820 &inp->in6p_laddr, lport, lookupflags, cred); in in_pcb_lport_dest()
825 laddr, lport, lookupflags, cred); in in_pcb_lport_dest()
834 lport, lookupflags, cred); in in_pcb_lport_dest()
839 *lportp = lport; in in_pcb_lport_dest()
880 u_short lport = 0; in in_pcbbind_setup() local
[all …]
H A Din_pcb.h520 #define INP_PCBHASH(faddr, lport, fport, mask) \ argument
521 ((IN_ADDR_JHASH32(faddr) ^ ntohs((lport) ^ (fport))) & (mask))
522 #define INP6_PCBHASH(faddr, lport, fport, mask) \ argument
523 ((IN6_ADDR_JHASH32(faddr) ^ ntohs((lport) ^ (fport))) & (mask))
525 #define INP_PCBHASH_WILD(lport, mask) \ argument
526 ((V_in_pcbhashseed ^ ntohs(lport)) & (mask))
528 #define INP_PCBLBGROUP_PKTHASH(faddr, lport, fport) \ argument
529 (IN_ADDR_JHASH32(faddr) ^ ntohs((lport) ^ (fport)))
530 #define INP6_PCBLBGROUP_PKTHASH(faddr, lport, fport) \ argument
531 (IN6_ADDR_JHASH32(faddr) ^ ntohs((lport) ^ (fport)))
[all …]
H A Dsctp_pcb.c877 uint16_t lport, rport; in sctp_tcb_special_locate() local
892 lport = ((struct sockaddr_in *)to)->sin_port; in sctp_tcb_special_locate()
902 lport = ((struct sockaddr_in6 *)to)->sin6_port; in sctp_tcb_special_locate()
912 …ephead = &SCTP_BASE_INFO(sctp_tcpephash)[SCTP_PCBHASH_ALLADDR((lport | rport), SCTP_BASE_INFO(hash… in sctp_tcb_special_locate()
925 if (lport != inp->sctp_lport) { in sctp_tcb_special_locate()
1468 uint16_t lport, uint32_t vrf_id) in sctp_endpoint_probe() argument
1513 (inp->sctp_lport == lport)) { in sctp_endpoint_probe()
1604 if (inp->sctp_lport != lport) { in sctp_endpoint_probe()
1660 sctp_isport_inuse(struct sctp_inpcb *inp, uint16_t lport, uint32_t vrf_id) in sctp_isport_inuse() argument
1666 head = &SCTP_BASE_INFO(sctp_ephash)[SCTP_PCBHASH_ALLADDR(lport, in sctp_isport_inuse()
[all …]
H A Dsiftr.c165 uint16_t lport; member
227 uint16_t lport; /* local TCP port */ member
417 hash_node->const_info.lport, in siftr_process_pkt()
674 pn->lport = inp->inp_lport; in siftr_siftdata()
827 info.lport = ntohs(inp->inp_lport); in siftr_chkpkt()
976 info.lport = ntohs(inp->inp_lport); in siftr_chkpkt6()
1235 counter->const_info.lport, in siftr_manage_ops()
H A Dudp_usrreq.c1084 u_short fport, lport; in udp_send() local
1231 lport = inp->inp_lport; in udp_send()
1233 if ((lport == 0) || in udp_send()
1245 error = in_pcbbind_setup(inp, &src, &laddr.s_addr, &lport, in udp_send()
1299 &lport, &faddr.s_addr, &fport, td->td_ucred); in udp_send()
1321 inp->inp_lport = lport; in udp_send()
1374 ui->ui_sport = lport; in udp_send()
1455 lport, fport, pr, &hash_type); in udp_send()
/freebsd/tools/tools/switch_tls/
H A Dswitch_tls.c70 char *lport, *fport; in main() local
118 lport = findport(argv[0]); in main()
120 if (lport == NULL || lport[1] == '\0' || fport == NULL || in main()
123 *lport++ = '\0'; in main()
125 if (!tcpswitchbyname(argv[0], lport, argv[1], fport, mode)) in main()
270 tcpswitchbyname(const char *lhost, const char *lport, const char *fhost, in tcpswitchbyname() argument
284 error = getaddrinfo(lhost, lport, &hints, &local); in tcpswitchbyname()
286 errx(1, "getaddrinfo: %s port %s: %s", lhost, lport, in tcpswitchbyname()
313 warnx("%s %s %s %s: different address families", lhost, lport, in tcpswitchbyname()
/freebsd/usr.sbin/tcpdrop/
H A Dtcpdrop.c68 char *lport, *fport; in main() local
126 lport = findport(argv[0]); in main()
128 if (lport == NULL || lport[1] == '\0' || fport == NULL || in main()
131 *lport++ = '\0'; in main()
133 if (!tcpdropbyname(argv[0], lport, argv[1], fport)) in main()
287 tcpdropbyname(const char *lhost, const char *lport, const char *fhost, in tcpdropbyname() argument
302 error = getaddrinfo(lhost, lport, &hints, &local); in tcpdropbyname()
304 errx(1, "getaddrinfo: %s port %s: %s", lhost, lport, in tcpdropbyname()
331 warnx("%s %s %s %s: different address families", lhost, lport, in tcpdropbyname()
/freebsd/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()
205 lport--; in rcmd_af()
208 lport = 0; in rcmd_af()
210 int s2 = rresvport_af(&lport, ai->ai_family), s3; in rcmd_af()
217 (void)snprintf(num, sizeof(num), "%d", lport); in rcmd_af()
273 lport = 0; in rcmd_af()
303 if (lport) in rcmd_af()
/freebsd/crypto/openssh/regress/
H A Daddrmatch.sh10 user="$1"; addr="$2"; host="$3"; laddr="$4"; lport="$5"
15 -C user=${user},addr=${addr},host=${host},laddr=${laddr},lport=${lport} | \
/freebsd/sys/dev/cxgbe/
H A Dt4_l2t.c122 e->vlan == vlan && e->lport == port) in find_or_alloc_l2e()
159 req->params = htons(V_L2T_W_PORT(e->lport) | V_L2T_W_NOREPLY(!reply)); in mk_write_l2e()
230 if (e->vlan == vlan && e->lport == port && in t4_l2t_alloc_tls()
266 e->lport = port; in t4_l2t_alloc_tls()
306 e->lport = port; in t4_l2t_alloc_switching()
316 MPASS(e->lport == port); in t4_l2t_alloc_switching()
487 e->vlan & 0xfff, vlan_prio(e), e->lport, in sysctl_l2t()
H A Dt4_l2t.h75 uint8_t lport; /* associated offload logical port */ member
/freebsd/cddl/usr.sbin/dwatch/libexec/
H A Dudp29 this uint16_t lport;
52 this->lport = this->recv ? args[4]->udp_dport : args[4]->udp_sport;
77 this->local, this->lport,
H A Dudplite29 this uint16_t lport;
52 this->lport = this->recv ? args[4]->udplite_dport : args[4]->udplite_sport;
77 this->local, this->lport,
H A Dtcp69 this uint16_t lport;
139 this->lport = this->slocal ? args[4]->tcp_sport : args[4]->tcp_dport;
161 this->lport = (uint16_t)args[3]->tcps_lport;
199 this->local, this->lport,
/freebsd/cddl/lib/libdtrace/
H A Dsiftr.d46 uint16_t lport; member
77 lport = p == NULL ? 0 : ntohs(p->lport);
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_nat.c71 uint16_t lport; /* local port */ member
209 r->lport = ser_r->lport; in add_redir_spool_cfg()
233 r->laddr, htons(r->lport + i), r->raddr, in add_redir_spool_cfg()
744 ser_r->lport = r->lport; in nat44_get_cfg()
907 u_short lport; member
978 urdir->lport = rdir->lport; in ipfw_nat_cfg()
1078 ser_r->lport = r->lport; in ipfw_nat_get_cfg()
/freebsd/sys/dev/ice/
H A Dice_switch.c1053 pi->lport = (u8)(vsi_port_num & ICE_LPORT_MASK); in ice_init_port_info()
2016 * @lport: logic port number on which function add rule in ice_add_rule_internal()
2023 u8 lport, struct ice_fltr_list_entry *f_entry) in ice_add_rule_internal()
2043 new_fltr->src = lport;
2348 * @lport: logic port number on which function add rule in ice_add_mac_rule()
2358 struct ice_switch_info *sw, u8 lport) in ice_add_mac_rule()
2407 ice_add_rule_internal(hw, recp_list, lport, in ice_add_mac_rule()
2513 hw->port_info->lport); in ice_add_vlan_internal()
2717 * @lport: logic port number on which function add rule in ice_add_eth_mac_rule()
2725 struct ice_switch_info *sw, u8 lport) in ice_add_eth_mac_rule()
2005 ice_add_rule_internal(struct ice_hw * hw,struct ice_sw_recipe * recp_list,u8 lport,struct ice_fltr_list_entry * f_entry) ice_add_rule_internal() argument
2339 ice_add_mac_rule(struct ice_hw * hw,struct LIST_HEAD_TYPE * m_list,struct ice_switch_info * sw,u8 lport) ice_add_mac_rule() argument
2706 ice_add_eth_mac_rule(struct ice_hw * hw,struct LIST_HEAD_TYPE * em_list,struct ice_switch_info * sw,u8 lport) ice_add_eth_mac_rule() argument
2929 u8 lport = pi->lport; ice_cfg_dflt_vsi() local
3505 _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) _ice_set_vsi_promisc() argument
3653 _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) _ice_set_vlan_vsi_promisc() argument
4132 u8 lport = hw->port_info->lport; ice_replay_fltr() local
[all...]
/freebsd/usr.sbin/rpcbind/
H A Dpmap_svc.c259 long lport; in pmapproc_getport() local
316 lport = port; in pmapproc_getport()
317 if ((!svc_sendreply(xprt, (xdrproc_t) xdr_long, (caddr_t)&lport)) && in pmapproc_getport()
/freebsd/usr.sbin/lpr/common_source/
H A Dnet.c90 int s, timo = 1, lport = IPPORT_RESERVED - 1; in getport() local
115 s = rresvport_af(&lport, ai->ai_family); in getport()
/freebsd/usr.bin/tftp/
H A Dmain.c280 setpeer0(char *host, const char *lport) in setpeer0() argument
297 if (!lport) in setpeer0()
298 lport = "tftp"; in setpeer0()
299 error = getaddrinfo(host, lport, &hints, &res0); in setpeer0()
/freebsd/sbin/ipfw/
H A Dnat.c432 r->lport = ~0; in setup_redir_port()
454 r->lport = GETLOPORT(portRange); in setup_redir_port()
478 r->lport = r->pport; in setup_redir_port()
706 printf("%s:%u", inet_ntoa(t->laddr), t->lport); in nat_show_cfg()
708 printf("-%u", t->lport + in nat_show_cfg()
/freebsd/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c1224 struct in6_addr *daddr, uint16_t lport, struct nat64_config *cfg, in nat64_do_handle_ip4() argument
1301 if (lport != 0) { in nat64_do_handle_ip4()
1303 *csum = cksum_adjust(*csum, tcp->th_dport, lport); in nat64_do_handle_ip4()
1304 tcp->th_dport = lport; in nat64_do_handle_ip4()
1310 if (lport != 0) { in nat64_do_handle_ip4()
1312 *csum = cksum_adjust(*csum, udp->uh_dport, lport); in nat64_do_handle_ip4()
1313 udp->uh_dport = lport; in nat64_do_handle_ip4()
1318 m = nat64_icmp_translate(m, &ip6, lport, hlen, cfg); in nat64_do_handle_ip4()
/freebsd/usr.sbin/traceroute6/
H A Dtraceroute6.c355 u_long probe, hops, lport, ltclass; in main() local
484 lport = strtoul(optarg, &ep, 0); in main()
489 if (lport == 0 || lport != (lport & 0xffff)) { in main()
494 port = lport & 0xffff; in main()

123