Home
last modified time | relevance | path

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

123

/freebsd/sys/netinet6/
H A Din6_pcb.c120 u_int16_t lport = 0; in in6_pcbsetport_locked() local
137 error = in_pcb_lport(inp, NULL, &lport, cred, lookupflags); in in6_pcbsetport_locked()
141 inp->inp_lport = lport; in in6_pcbsetport_locked()
172 u_short lport; in in6_pcbbind_avail() local
178 lport = sin6->sin6_port; in in6_pcbbind_avail()
230 if (lport != 0) { in in6_pcbbind_avail()
233 if (ntohs(lport) <= V_ipport_reservedhigh && in in6_pcbbind_avail()
234 ntohs(lport) >= V_ipport_reservedlow && in in6_pcbbind_avail()
250 t = in6_pcblookup_local(inp->inp_pcbinfo, laddr, lport, in in6_pcbbind_avail()
265 sin.sin_addr, lport, RT_ALL_FIBS, in in6_pcbbind_avail()
[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/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/sys/netinet/
H A Din_pcb.c742 u_short aux, first, last, lport; in in_pcb_lport_dest() local
819 lport = htons(*lastport); in in_pcb_lport_dest()
825 faddr, fport, laddr, lport, lookupflags, in in_pcb_lport_dest()
832 faddr6, fport, laddr6, lport, lookupflags, in in_pcb_lport_dest()
840 &inp->in6p_laddr, lport, RT_ALL_FIBS, in in_pcb_lport_dest()
846 laddr, lport, RT_ALL_FIBS, in in_pcb_lport_dest()
856 lport, RT_ALL_FIBS, lookupflags, cred); in in_pcb_lport_dest()
861 *lportp = lport; in in_pcb_lport_dest()
891 const u_short lport, const int fib, int sooptions, int lookupflags, in in_pcbbind_avail() argument
936 if (lport != 0) { in in_pcbbind_avail()
[all …]
H A Din_pcb.h580 #define INP_PCBHASH(faddr, lport, fport, mask) \ argument
581 ((IN_ADDR_JHASH32(faddr) ^ ntohs((lport) ^ (fport))) & (mask))
582 #define INP6_PCBHASH(faddr, lport, fport, mask) \ argument
583 ((IN6_ADDR_JHASH32(faddr) ^ ntohs((lport) ^ (fport))) & (mask))
585 #define INP_PCBHASH_WILD(lport, mask) \ argument
586 ((V_in_pcbhashseed ^ ntohs(lport)) & (mask))
588 #define INP_PCBLBGROUP_PKTHASH(faddr, lport, fport) \ argument
589 (IN_ADDR_JHASH32(faddr) ^ ntohs((lport) ^ (fport)))
590 #define INP6_PCBLBGROUP_PKTHASH(faddr, lport, fport) \ argument
591 (IN6_ADDR_JHASH32(faddr) ^ ntohs((lport) ^ (fport)))
[all …]
H A Dsctp_pcb.c892 uint16_t lport, rport; in sctp_tcb_special_locate() local
907 lport = ((struct sockaddr_in *)to)->sin_port; in sctp_tcb_special_locate()
917 lport = ((struct sockaddr_in6 *)to)->sin6_port; in sctp_tcb_special_locate()
927 …ephead = &SCTP_BASE_INFO(sctp_tcpephash)[SCTP_PCBHASH_ALLADDR((lport | rport), SCTP_BASE_INFO(hash… in sctp_tcb_special_locate()
940 if (lport != inp->sctp_lport) { in sctp_tcb_special_locate()
1483 uint16_t lport, uint32_t vrf_id) in sctp_endpoint_probe() argument
1528 (inp->sctp_lport == lport)) { in sctp_endpoint_probe()
1619 if (inp->sctp_lport != lport) { in sctp_endpoint_probe()
1675 sctp_isport_inuse(struct sctp_inpcb *inp, uint16_t lport, uint32_t vrf_id) in sctp_isport_inuse() argument
1681 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()
/freebsd/crypto/krb5/src/lib/krb5/os/
H A Dgenaddrs.c69 krb5_address * lport; in krb5_auth_con_genaddrs() local
89 lport = &laddrs.port; in krb5_auth_con_genaddrs()
91 lport = 0; in krb5_auth_con_genaddrs()
96 lport = NULL; in krb5_auth_con_genaddrs()
120 return (krb5_auth_con_setports(context, auth_context, lport, rport)); in krb5_auth_con_genaddrs()
/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/tools/tools/fib_multibind/
H A Dsink.c98 int ch, error, fib, lport; in main() local
135 lport = atoi(argv[1]); in main()
138 lport = atoi(argv[0]); in main()
142 addrinfo(&sc, laddr, lport); in main()
/freebsd/sys/dev/cxgbe/
H A Dt4_l2t.c
H A Dt4_l2t.h74 uint8_t lport; /* associated offload logical port */ global() 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()
740 ser_r->lport = r->lport; in nat44_get_cfg()
903 u_short lport; member
974 urdir->lport = rdir->lport; in ipfw_nat_cfg()
1074 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.c271 setpeer0(char *host, const char *lport) in setpeer0() argument
288 if (lport == NULL) in setpeer0()
289 lport = "tftp"; in setpeer0()
290 error = getaddrinfo(host, lport, &hints, &res0); in setpeer0()
334 port = strdup(lport); in setpeer0()
/freebsd/sbin/ipfw/
H A Dnat.c433 r->lport = ~0; in setup_redir_port()
455 r->lport = GETLOPORT(portRange); in setup_redir_port()
479 r->lport = r->pport; in setup_redir_port()
710 printf("%s:%u", inet_ntoa(t->laddr), t->lport); in nat_show_cfg()
712 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()

123