/freebsd-11-stable/contrib/ofed/libibmad/ |
H A D | mad.c | 165 int mad_build_pkt(void *umad, ib_rpc_t * rpc, ib_portid_t * dport, argument 175 umad_set_addr(umad, dport->lid, dport->qp, dport->sl, 176 dport->qkey); 178 umad_set_addr(umad, dport->lid, dport->qp, 0, 0); 179 else if ((dport->drpath.drslid != 0xffff) && (dport->lid > 0)) 180 umad_set_addr(umad, dport [all...] |
H A D | rpc.c | 222 ib_portid_t * dport, void *payload, void *rcvdata) 235 if ((len = mad_build_pkt(sndbuf, rpc, dport, 0, payload)) < 0) 245 IBWARN("_do_madrpc failed; dport (%s)", 246 portid2str(dport)); 256 /* update dport for next request and retry */ 258 if (redirect_port(dport, mad)) 269 ERRS("MAD completed with error status 0x%x; dport (%s)", 270 status, portid2str(dport)); 287 ib_portid_t * dport, ib_rmpp_hdr_t * rmpp, void *data) 300 if ((len = mad_build_pkt(sndbuf, rpc, dport, rmp 221 mad_rpc(const struct ibmad_port *port, ib_rpc_t * rpc, ib_portid_t * dport, void *payload, void *rcvdata) argument 286 mad_rpc_rmpp(const struct ibmad_port *port, ib_rpc_t * rpc, ib_portid_t * dport, ib_rmpp_hdr_t * rmpp, void *data) argument 353 madrpc(ib_rpc_t * rpc, ib_portid_t * dport, void *payload, void *rcvdata) argument 358 madrpc_rmpp(ib_rpc_t * rpc, ib_portid_t * dport, ib_rmpp_hdr_t * rmpp, void *data) argument [all...] |
H A D | serv.c | 51 int mad_send(ib_rpc_t * rpc, ib_portid_t * dport, ib_rmpp_hdr_t * rmpp, argument 54 return mad_send_via(rpc, dport, rmpp, data, ibmp); 57 int mad_send_via(ib_rpc_t * rpc, ib_portid_t * dport, ib_rmpp_hdr_t * rmpp, argument 67 if (mad_build_pkt(umad, rpc, dport, rmpp, data) < 0)
|
/freebsd-11-stable/contrib/ofed/infiniband-diags/src/ |
H A D | mcm_rereg_test.c | 77 static void build_mcm_rec_umad(void *umad, ib_portid_t * dport, int method, argument 91 mad_build_pkt(umad, &rpc, dport, NULL, data); 94 static int rereg_send(int port, int agent, ib_portid_t * dport, argument 102 build_mcm_rec_umad(umad, dport, method, comp_mask, data); 115 static int rereg_port_gid(int port, int agent, ib_portid_t * dport, argument 123 build_mcm_rec_umad(umad, dport, IB_MAD_METHOD_DELETE, comp_mask, data); 131 build_mcm_rec_umad(umad, dport, IB_MAD_METHOD_SET, comp_mask, data); 148 static int rereg_send_all(int port, int agent, ib_portid_t * dport, argument 166 rereg_port_gid(port, agent, dport, umad, len, list[i].gid); 183 static int rereg_recv(int port, int agent, ib_portid_t * dport, argument 206 rereg_recv_all(int port, int agent, ib_portid_t * dport, struct guid_trid *list, unsigned cnt) argument 263 rereg_query_all(int port, int agent, ib_portid_t * dport, struct guid_trid *list, unsigned cnt) argument 312 rereg_and_test_port(char *guid_file, int port, int agent, ib_portid_t * dport, int timeout) argument [all...] |
H A D | ibdiag_sa.c | 58 resolve_sm_portid(ibd_ca, ibd_ca_port, &handle->dport); 59 if (!handle->dport.lid) { 67 handle->dport.qp = 1; 68 if (!handle->dport.qkey) 69 handle->dport.qkey = IB_DEFAULT_QP1_QKEY; 83 handle->dport.grh_present = 1; 84 memcpy(handle->dport.gid, gid, 16); 119 mad_build_pkt(umad, &rpc, &h->dport, NULL, data); 126 if (h->dport.grh_present) { 132 memcpy(p_mad_addr->gid, h->dport [all...] |
H A D | ibdiag_sa.h | 51 ib_portid_t dport; member in struct:sa_handle
|
/freebsd-11-stable/contrib/tcpdump/ |
H A D | print-udp.c | 317 udpipaddr_print(netdissect_options *ndo, const struct ip *ip, int sport, int dport) argument 337 udpport_string(ndo, dport))); 343 udpport_string(ndo, dport))); 357 udpport_string(ndo, dport))); 363 udpport_string(ndo, dport))); 377 uint16_t sport, dport, ulen; local 394 dport = EXTRACT_16BITS(&up->uh_dport); 397 udpipaddr_print(ndo, ip, sport, dport); 402 udpipaddr_print(ndo, ip, sport, dport); 407 udpipaddr_print(ndo, ip, sport, dport); [all...] |
H A D | print-tcp.c | 169 uint16_t sport, dport, win, urp; local 191 dport = EXTRACT_16BITS(&tp->th_dport); 199 tcpport_string(ndo, dport))); 202 tcpport_string(ndo, sport), tcpport_string(ndo, dport))); 210 tcpport_string(ndo, dport))); 213 tcpport_string(ndo, sport), tcpport_string(ndo, dport))); 261 if (sport > dport) 263 else if (sport == dport) { 270 tha.port = ((u_int)dport) << 16 | sport; 274 tha.port = ((u_int)sport) << 16 | dport; [all...] |
H A D | print-pgm.c | 153 uint16_t sport, dport; local 181 dport = EXTRACT_16BITS(&pgm->pgm_dport); 189 tcpport_string(ndo, dport))); 192 tcpport_string(ndo, sport), tcpport_string(ndo, dport))); 200 tcpport_string(ndo, dport))); 203 tcpport_string(ndo, sport), tcpport_string(ndo, dport)));
|
H A D | print-dccp.c | 275 u_short sport, dport; local 310 dport = EXTRACT_16BITS(&dh->dccph_dport); 316 ip6addr_string(ndo, &ip6->ip6_dst), dport)); 320 ipaddr_string(ndo, &ip->ip_dst), dport));
|
/freebsd-11-stable/sys/netinet/libalias/ |
H A D | alias_dummy.c | 70 if (ah->dport == NULL || ah->sport == NULL || ah->lnk == NULL || 77 if (ntohs(*ah->dport) == 123
|
H A D | alias_mod.h | 68 uint16_t *sport, *dport; /* Source & destination port */ member in struct:alias_data
|
H A D | alias_smedia.c | 138 if (ah->dport != NULL && ah->aport != NULL && ah->sport != NULL && 139 ntohs(*ah->dport) == TFTP_PORT_NUMBER) 141 if (ah->dport == NULL || ah->sport == NULL || ah->lnk == NULL || 144 if (ntohs(*ah->dport) == RTSP_CONTROL_PORT_NUMBER_1 146 || ntohs(*ah->dport) == RTSP_CONTROL_PORT_NUMBER_2 156 if (ntohs(*ah->dport) == TFTP_PORT_NUMBER)
|
H A D | alias_cuseeme.c | 70 if (ah->dport == NULL || ah->oaddr == NULL) 72 if (ntohs(*ah->dport) == CUSEEME_PORT_NUMBER)
|
H A D | alias_irc.c | 99 if (ah->dport == NULL || ah->lnk == NULL || ah->maxpktsize == 0) 101 if (ntohs(*ah->dport) == IRC_CONTROL_PORT_NUMBER_1 102 || ntohs(*ah->dport) == IRC_CONTROL_PORT_NUMBER_2)
|
H A D | alias_ftp.c | 112 if (ah->dport == NULL || ah->sport == NULL || ah->lnk == NULL || 115 if (ntohs(*ah->dport) == FTP_CONTROL_PORT_NUMBER || 125 if (ah->dport == NULL || ah->sport == NULL || ah->lnk == NULL) 127 if (ntohs(*ah->dport) == FTP_CONTROL_PORT_NUMBER ||
|
/freebsd-11-stable/libexec/bootpd/tools/bootptest/ |
H A D | print-bootp.c | 55 bootp_print(bp, length, sport, dport) 58 u_short sport, dport; 79 if (sport != IPPORT_BOOTPC || dport != IPPORT_BOOTPS) 85 if (sport != IPPORT_BOOTPS || dport != IPPORT_BOOTPC)
|
/freebsd-11-stable/sys/net/ |
H A D | flowtable.c | 195 uint16_t sport, dport; local 218 dport = th->th_dport; 228 dport = uh->uh_dport; 236 dport = sh->dest_port; 241 sport = dport = 0; 247 key[2] = (dport << 16) | sport; 302 uint16_t sport, dport; local 318 offset = sport = dport = 0; 332 dport = TCP(ulp)->th_dport; 339 dport 1069 uint16_t sport, dport; local [all...] |
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ |
H A D | ip_nat6.c | 463 u_short st_port, dport, sport, port, sp, dp; local 484 dport = 0; 487 dport = htons(fin->fin_data[1]); 712 nat->nat_odport = dport; 713 nat->nat_ndport = dport; 744 u_short nport, dport, sport; local 763 dport = fin->fin_data[1]; 767 dport = htons(fin->fin_data[1]); 770 /* TRACE sport, dport */ 783 &fin->fin_dst6, &in, (u_32_t)dport); 1910 u_short sport, dport; local 2232 u_short sport, dport; local 3018 u_short dport; local [all...] |
/freebsd-11-stable/sys/netpfil/pf/ |
H A D | pf_lb.c | 127 struct pf_addr *daddr, uint16_t dport, int rs_num, 176 dst->port[1], dport)) 215 uint16_t dport, struct pf_addr *naddr, uint16_t *nport, uint16_t low, 233 key.port[0] = dport; 522 uint16_t sport, uint16_t dport, struct pf_anchor_stackframe *anchor_stack) 534 sport, daddr, dport, PF_RULESET_BINAT, anchor_stack); 537 saddr, sport, daddr, dport, PF_RULESET_NAT, 541 sport, daddr, dport, PF_RULESET_RDR, anchor_stack); 544 saddr, sport, daddr, dport, PF_RULESET_BINAT, 558 *skp = pf_state_key_setup(pd, saddr, daddr, sport, dport); 125 pf_match_translation(struct pf_pdesc *pd, struct mbuf *m, int off, int direction, struct pfi_kif *kif, struct pf_addr *saddr, u_int16_t sport, struct pf_addr *daddr, uint16_t dport, int rs_num, struct pf_anchor_stackframe *anchor_stack) argument 213 pf_get_sport(sa_family_t af, u_int8_t proto, struct pf_rule *r, struct pf_addr *saddr, uint16_t sport, struct pf_addr *daddr, uint16_t dport, struct pf_addr *naddr, uint16_t *nport, uint16_t low, uint16_t high, struct pf_src_node **sn) argument 518 pf_get_translation(struct pf_pdesc *pd, struct mbuf *m, int off, int direction, struct pfi_kif *kif, struct pf_src_node **sn, struct pf_state_key **skp, struct pf_state_key **nkp, struct pf_addr *saddr, struct pf_addr *daddr, uint16_t sport, uint16_t dport, struct pf_anchor_stackframe *anchor_stack) argument [all...] |
/freebsd-11-stable/lib/libipsec/ |
H A D | pfkey_dump.c | 417 u_int16_t sport = 0, dport = 0; local 463 dport = 0; /*XXX*/ 465 dport = atoi(pbuf); 468 m_daddr->sadb_address_prefixlen, dport, 482 str_upperspec(m_saddr->sadb_address_proto, sport, dport);
|
/freebsd-11-stable/usr.sbin/ppp/ |
H A D | ip.c | 222 u_short sport, dport; /* src, dest port from packet if (gotinfo) */ local 282 sport = dport = 0; 311 sport = dport = 0; 357 dport = ntohs(uh->uh_dport); 359 snprintf(dbuff, sizeof dbuff, "sport = %d, dport = %d", 360 sport, dport); 375 dport = ntohs(th->th_dport); 382 "flags = %02x, sport = %d, dport = %d", 383 th->th_flags, sport, dport); 434 PortMatch(fp->f_dstop, dport, f [all...] |
/freebsd-11-stable/sys/netinet6/ |
H A D | ip_fw_nat64.h | 161 uint16_t dport; /* Remote destination port */ member in struct:_ipfw_nat64lsn_state
|
/freebsd-11-stable/sys/dev/cxgb/ |
H A D | cxgb_ioctl.h | 159 uint16_t dport; member in struct:ch_trace 225 uint16_t dport; member in struct:ch_filter_tuple
|
/freebsd-11-stable/sys/netipsec/ |
H A D | udpencap.c | 175 sav->natt->dport != udp->uh_dport) { 234 udp->uh_dport = sav->natt->dport;
|