Lines Matching refs:whdr
39 struct rxrpc_wire_header whdr; member
290 pkt.whdr.epoch = htonl(conn->proto.epoch); in rxrpc_send_abort_packet()
291 pkt.whdr.cid = htonl(call->cid); in rxrpc_send_abort_packet()
292 pkt.whdr.callNumber = htonl(call->call_id); in rxrpc_send_abort_packet()
293 pkt.whdr.seq = 0; in rxrpc_send_abort_packet()
294 pkt.whdr.type = RXRPC_PACKET_TYPE_ABORT; in rxrpc_send_abort_packet()
295 pkt.whdr.flags = conn->out_clientflag; in rxrpc_send_abort_packet()
296 pkt.whdr.userStatus = 0; in rxrpc_send_abort_packet()
297 pkt.whdr.securityIndex = call->security_ix; in rxrpc_send_abort_packet()
298 pkt.whdr._rsvd = 0; in rxrpc_send_abort_packet()
299 pkt.whdr.serviceId = htons(call->dest_srx.srx_service); in rxrpc_send_abort_packet()
306 pkt.whdr.serial = htonl(serial); in rxrpc_send_abort_packet()
315 trace_rxrpc_tx_packet(call->debug_id, &pkt.whdr, in rxrpc_send_abort_packet()
527 struct rxrpc_wire_header whdr; in rxrpc_send_conn_abort() local
541 whdr.epoch = htonl(conn->proto.epoch); in rxrpc_send_conn_abort()
542 whdr.cid = htonl(conn->proto.cid); in rxrpc_send_conn_abort()
543 whdr.callNumber = 0; in rxrpc_send_conn_abort()
544 whdr.seq = 0; in rxrpc_send_conn_abort()
545 whdr.type = RXRPC_PACKET_TYPE_ABORT; in rxrpc_send_conn_abort()
546 whdr.flags = conn->out_clientflag; in rxrpc_send_conn_abort()
547 whdr.userStatus = 0; in rxrpc_send_conn_abort()
548 whdr.securityIndex = conn->security_ix; in rxrpc_send_conn_abort()
549 whdr._rsvd = 0; in rxrpc_send_conn_abort()
550 whdr.serviceId = htons(conn->service_id); in rxrpc_send_conn_abort()
554 iov[0].iov_base = &whdr; in rxrpc_send_conn_abort()
555 iov[0].iov_len = sizeof(whdr); in rxrpc_send_conn_abort()
562 whdr.serial = htonl(serial); in rxrpc_send_conn_abort()
573 trace_rxrpc_tx_packet(conn->debug_id, &whdr, rxrpc_tx_point_conn_abort); in rxrpc_send_conn_abort()
583 struct rxrpc_wire_header whdr; in rxrpc_reject_packet() local
594 iov[0].iov_base = &whdr; in rxrpc_reject_packet()
595 iov[0].iov_len = sizeof(whdr); in rxrpc_reject_packet()
604 memset(&whdr, 0, sizeof(whdr)); in rxrpc_reject_packet()
608 whdr.type = RXRPC_PACKET_TYPE_BUSY; in rxrpc_reject_packet()
609 size = sizeof(whdr); in rxrpc_reject_packet()
613 whdr.type = RXRPC_PACKET_TYPE_ABORT; in rxrpc_reject_packet()
615 size = sizeof(whdr) + sizeof(code); in rxrpc_reject_packet()
625 whdr.epoch = htonl(sp->hdr.epoch); in rxrpc_reject_packet()
626 whdr.cid = htonl(sp->hdr.cid); in rxrpc_reject_packet()
627 whdr.callNumber = htonl(sp->hdr.callNumber); in rxrpc_reject_packet()
628 whdr.serviceId = htons(sp->hdr.serviceId); in rxrpc_reject_packet()
629 whdr.flags = sp->hdr.flags; in rxrpc_reject_packet()
630 whdr.flags ^= RXRPC_CLIENT_INITIATED; in rxrpc_reject_packet()
631 whdr.flags &= RXRPC_CLIENT_INITIATED; in rxrpc_reject_packet()
639 trace_rxrpc_tx_packet(local->debug_id, &whdr, in rxrpc_reject_packet()
649 struct rxrpc_wire_header whdr; in rxrpc_send_keepalive() local
663 whdr.epoch = htonl(peer->local->rxnet->epoch); in rxrpc_send_keepalive()
664 whdr.cid = 0; in rxrpc_send_keepalive()
665 whdr.callNumber = 0; in rxrpc_send_keepalive()
666 whdr.seq = 0; in rxrpc_send_keepalive()
667 whdr.serial = 0; in rxrpc_send_keepalive()
668 whdr.type = RXRPC_PACKET_TYPE_VERSION; /* Not client-initiated */ in rxrpc_send_keepalive()
669 whdr.flags = RXRPC_LAST_PACKET; in rxrpc_send_keepalive()
670 whdr.userStatus = 0; in rxrpc_send_keepalive()
671 whdr.securityIndex = 0; in rxrpc_send_keepalive()
672 whdr._rsvd = 0; in rxrpc_send_keepalive()
673 whdr.serviceId = 0; in rxrpc_send_keepalive()
675 iov[0].iov_base = &whdr; in rxrpc_send_keepalive()
676 iov[0].iov_len = sizeof(whdr); in rxrpc_send_keepalive()
688 trace_rxrpc_tx_packet(peer->debug_id, &whdr, in rxrpc_send_keepalive()