Home | History | Annotate | Download | only in netinet

Lines Matching defs:rx

277 	rpcb_xact_t *rx;
282 rx = NULL; /* XXX gcc */
290 rx = NULL;
308 rx = NULL; /* XXX gcc */
311 rv = ipf_p_rpcb_decoderep(fin, nat, rs, rm, &rx);
316 if (rx != NULL) {
318 ipf_p_rpcb_deref(rs, rx);
335 if (rx->rx_type == RPCB_RES_STRING)
337 else if (rx->rx_type == RPCB_RES_LIST)
346 if (rx != NULL) {
351 * finished with rx, and the other signals that we've
354 ipf_p_rpcb_deref(rs, rx);
355 ipf_p_rpcb_deref(rs, rx);
413 rpcb_xact_t rx;
419 bzero((char *)&rx, sizeof(rx));
423 rx.rx_xid = B(p++); /* Record this message's XID. */
460 rx.rx_type = RPCB_RES_PMAP;
461 rx.rx_proto = xdr;
469 rx.rx_type = RPCB_RES_STRING;
470 rx.rx_proto = (u_int)fin->fin_p;
475 rx.rx_type = RPCB_RES_LIST;
502 if (ipf_p_rpcb_insert(rs, &rx) != 0) {
556 /* rx(I) - pointer to RPCB transaction structure */
559 ipf_p_rpcb_insert(rpcb_session_t *rs, rpcb_xact_t *rx)
563 rxp = ipf_p_rpcb_lookup(rs, rx->rx_xid);
576 bcopy((char *)rx, (char *)rxp, sizeof(*rx));
831 rpcb_xact_t *rx;
838 bzero((char *)&rx, sizeof(rx));
846 if ((rx = ipf_p_rpcb_lookup(rs, xdr)) == NULL) {
850 ++rx->rx_ref; /* per thread reference */
853 *rxp = rx;
881 switch(rx->rx_type)
900 if (ipf_p_rpcb_getnat(fin, nat, rx->rx_proto, (u_int)xdr) != 0)
926 if (ipf_p_rpcb_getnat(fin, nat, rx->rx_proto,
991 IPF_PANIC(1, ("illegal rx_type %d", rx->rx_type));
1007 rpcb_xact_t *rx;
1012 for (rx = rs->rs_rxlist; rx != NULL; rx = rx->rx_next)
1013 if (rx->rx_xid == xid)
1016 return(rx);
1023 /* rx(I) - pointer to RPC transaction struct to remove */
1028 /* Free the RPCB transaction record rx from the chain of entries. */
1031 ipf_p_rpcb_deref(rpcb_session_t *rs, rpcb_xact_t *rx)
1035 if (rx == NULL)
1038 if (--rx->rx_ref != 0)
1041 if (rx->rx_next != NULL)
1042 rx->rx_next->rx_pnext = rx->rx_pnext;
1044 *rx->rx_pnext = rx->rx_next;
1046 KFREE(rx);