/freebsd-11-stable/contrib/ofed/infiniband-diags/src/ |
H A D | ibsysstat.c | 77 ib_portid_t rport; local 84 memset(&rport, 0, sizeof(rport)); 86 rport.lid = ntohs(mad_addr->lid); 87 rport.qp = ntohl(mad_addr->qpn); 88 rport.qkey = ntohl(mad_addr->qkey); 89 rport.sl = mad_addr->sl; 90 if (!rport.qkey && rport.qp == 1) 91 rport [all...] |
/freebsd-11-stable/contrib/ofed/libibmad/ |
H A D | serv.c | 97 ib_portid_t rport; local 106 memset(&rport, 0, sizeof(rport)); 108 rport.lid = ntohs(mad_addr->lid); 109 rport.qp = ntohl(mad_addr->qpn); 110 rport.qkey = ntohl(mad_addr->qkey); 111 rport.sl = mad_addr->sl; 114 rport.grh_present = 1; 115 memcpy(&rport.gid, &mad_addr->gid, sizeof(rport [all...] |
/freebsd-11-stable/lib/libc/net/ |
H A D | rcmdsh.c | 57 * avoid having to be root. Note that rport is ignored. 60 rcmdsh(char **ahost, int rport, const char *locuser, const char *remuser, argument 88 (unsigned int)ntohs(rport));
|
H A D | rcmd.c | 76 rcmd(char **ahost, int rport, const char *locuser, const char *remuser, argument 79 return rcmd_af(ahost, rport, locuser, remuser, cmd, fd2p, AF_INET); 83 rcmd_af(char **ahost, int rport, const char *locuser, const char *remuser, argument 101 if (sp && sp->s_port == rport) 102 return (rcmdsh(ahost, rport, locuser, remuser, 110 if (sp && sp->s_port == rport) 111 return (rcmdsh(ahost, rport, locuser, remuser, 122 (void)snprintf(num, sizeof(num), "%d", ntohs(rport));
|
/freebsd-11-stable/usr.sbin/lpr/common_source/ |
H A D | net.c | 84 * Create a TCP connection to host "rhost" at port "rport". 85 * If rport == 0, then use the printer service port. 89 getport(const struct printer *pp, const char *rhost, int rport) argument 104 error = getaddrinfo(rhost, (rport == 0 ? "printer" : NULL), 108 if (rport != 0) 109 ((struct sockaddr_in *) res->ai_addr)->sin_port = htons(rport);
|
/freebsd-11-stable/sys/netinet/ |
H A D | sctp_pcb.h | 137 uint16_t rport; /* the remote port used in vtag */ member in struct:sctp_timewait 467 uint16_t rport; /* remote port in network format */ member in struct:sctp_tcb 592 int sctp_is_in_timewait(uint32_t tag, uint16_t lport, uint16_t rport); 595 sctp_add_vtag_to_timewait(uint32_t tag, uint32_t time, uint16_t lport, uint16_t rport); 622 int sctp_is_vtag_good(uint32_t, uint16_t lport, uint16_t rport, struct timeval *);
|
H A D | sctp_indata.h | 68 (_ctl)->port_from = (in_it)->rport; \
|
H A D | sctp_pcb.c | 1019 uint16_t lport, rport; local 1035 rport = ((struct sockaddr_in *)from)->sin_port; 1045 rport = ((struct sockaddr_in6 *)from)->sin6_port; 1054 ephead = &SCTP_BASE_INFO(sctp_tcpephash)[SCTP_PCBHASH_ALLADDR((lport | rport), SCTP_BASE_INFO(hashtcpmark))]; 1180 if (stcb->rport != rport) { 1281 uint16_t rport; local 1287 rport = (((struct sockaddr_in *)remote)->sin_port); 1292 rport = (((struct sockaddr_in6 *)remote)->sin6_port); 1343 if (stcb->rport ! 2140 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 2644 uint16_t lport, rport; local 4197 uint16_t rport; local 4531 sctp_delete_from_timewait(uint32_t tag, uint16_t lport, uint16_t rport) argument 4558 sctp_is_in_timewait(uint32_t tag, uint16_t lport, uint16_t rport) argument 4585 sctp_add_vtag_to_timewait(uint32_t tag, uint32_t time, uint16_t lport, uint16_t rport) argument 6747 sctp_is_vtag_good(uint32_t tag, uint16_t lport, uint16_t rport, struct timeval *now) argument [all...] |
H A D | sctp_cc_functions.c | 99 stcb->asoc.my_vtag, ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), net, 198 stcb->asoc.my_vtag, ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), net, 620 vtag = (rtt << 32) | (((uint32_t)(stcb->sctp_ep->sctp_lport)) << 16) | (stcb->rport); 809 (stcb->rport); 912 ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), 975 ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), 1006 stcb->asoc.my_vtag, ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), net, 1078 ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), 1139 ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), 1258 ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), [all...] |
H A D | ip_fw.h | 482 u_short rport; /* remote port */ member in struct:cfg_redir 534 uint16_t rport; /* remote port */ member in struct:nat44_cfg_redir
|
H A D | sctputil.h | 79 uint32_t sctp_select_a_tag(struct sctp_inpcb *, uint16_t lport, uint16_t rport, int);
|
H A D | sctp_asconf.c | 199 sin->sin_port = stcb->rport; 222 sin6->sin6_port = stcb->rport; 359 sin->sin_port = stcb->rport; 379 sin6->sin6_port = stcb->rport; 2828 store.sin6.sin6_port = stcb->rport; 2849 store.sin.sin_port = stcb->rport;
|
H A D | sctp_output.c | 3671 sin.sin_port = stcb->rport; 3695 sin6.sin6_port = stcb->rport; 4948 inp->sctp_lport, stcb->rport, htonl(0), 8243 inp->sctp_lport, stcb->rport, 8521 inp->sctp_lport, stcb->rport, 8862 inp->sctp_lport, stcb->rport, 9566 inp->sctp_lport, stcb->rport, htonl(stcb->asoc.peer_vtag), 9843 inp->sctp_lport, stcb->rport, htonl(stcb->asoc.peer_vtag), 11021 stcb->sctp_ep->sctp_lport, stcb->rport, htonl(vtag), 11068 stcb->sctp_ep->sctp_lport, stcb->rport, [all...] |
H A D | sctp_sysctl.c | 448 xstcb.remote_port = ntohs(stcb->rport);
|
H A D | sctputil.c | 974 sctp_select_a_tag(struct sctp_inpcb *inp, uint16_t lport, uint16_t rport, int check) argument 988 if (!check || sctp_is_vtag_good(x, lport, rport, &now)) { 1098 asoc->my_vtag = sctp_select_a_tag(inp, stcb->sctp_ep->sctp_lport, stcb->rport, 1); 1101 asoc->my_vtag_nonce = sctp_select_a_tag(inp, stcb->sctp_ep->sctp_lport, stcb->rport, 0); 1102 asoc->peer_vtag_nonce = sctp_select_a_tag(inp, stcb->sctp_ep->sctp_lport, stcb->rport, 0);
|
H A D | sctp_input.c | 588 store.sin.sin_port = stcb->rport; 601 store.sin6.sin6_port = stcb->rport; 723 new_vtag = sctp_select_a_tag(stcb->sctp_ep, stcb->sctp_ep->sctp_lport, stcb->rport, 1); 2444 if ((stcb->asoc.my_vtag == tag) && (stcb->rport == rport) && (inp == stcb->sctp_ep)) {
|
/freebsd-11-stable/lib/libcompat/4.3/ |
H A D | rexec.c | 295 rexec(ahost, rport, name, pass, cmd, fd2p) 297 int rport; 323 sin.sin_port = rport;
|
/freebsd-11-stable/sys/netpfil/ipfw/ |
H A D | ip_fw_nat.c | 74 uint16_t rport; /* remote port */ member in struct:cfg_redir 208 r->rport = ser_r->rport; 226 u_short remotePortCopy = r->rport + i; 227 if (r->rport_cnt == 1 && r->rport == 0) 738 ser_r->rport = r->rport; 903 u_short rport; member in struct:cfg_redir_legacy 974 urdir->rport = rdir->rport; [all...] |
/freebsd-11-stable/sys/dev/sfxge/common/ |
H A D | efx_filter.c | 359 __in uint16_t rport) 372 spec->efs_rem_port = rport; 547 uint16_t rport, port1, port2; local 592 rport = is_full ? gen_spec->efs_rem_port : 0; 603 port1 = rport; 607 port2 = rport; 613 port2 = rport; 615 port1 = rport; 353 efx_filter_spec_set_ipv4_full( __inout efx_filter_spec_t *spec, __in uint8_t proto, __in uint32_t lhost, __in uint16_t lport, __in uint32_t rhost, __in uint16_t rport) argument
|
H A D | efx.h | 2317 __in uint16_t rport);
|
/freebsd-11-stable/sbin/ipfw/ |
H A D | nat.c | 508 r->rport = GETLOPORT(portRange); 520 (r->rport_cnt != 1 || r->rport != 0)) 729 if (t->rport) { 730 printf(":%u", t->rport); 732 printf("-%u", t->rport +
|
/freebsd-11-stable/usr.sbin/ppp/ |
H A D | ip.c | 152 PortMatch(int op, u_short pport, u_short rport) argument 156 return pport == rport; 158 return pport > rport; 160 return pport < rport;
|
/freebsd-11-stable/sbin/pfctl/ |
H A D | parse.y | 408 struct range rport; 3886 $$->rport.a = $$->rport.b = $$->rport.t = 0; 3893 $$->rport = $4; 4012 $$->rport.a = $$->rport.b = $$->rport.t = 0; 4019 $$->rport = $4; 4121 r.rpool.proxy_port[0] = ntohs($9->rport [all...] |
/freebsd-11-stable/sys/netinet6/ |
H A D | sctp6_usrreq.c | 1085 sin6->sin6_port = stcb->rport;
|
/freebsd-11-stable/contrib/sendmail/src/ |
H A D | daemon.c | 2668 int rport = IPPORT_RESERVED - 1; local 2670 s = rresvport(&rport);
|