.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "IB_UD_HEADER_INIT" "9" "09 October 2005" "" ""
.SH NAME
ib_ud_header_init \- Initialize UD header structure
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void ib_ud_header_init (int \fIpayload_bytes\fB, int \fIgrh_present\fB, struct ib_ud_header * \fIheader\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIpayload_bytes\fB\fR
Length of packet payload
.TP
\fB\fIgrh_present\fB\fR
GRH flag (if non-zero, GRH will be included)
.TP
\fB\fIheader\fB\fR
Structure to initialize
.SH "DESCRIPTION"
.PP
\fBib_ud_header_init\fR initializes the lrh.link_version, lrh.link_next_header,
lrh.packet_length, grh.ip_version, grh.payload_length,
grh.next_header, bth.opcode, bth.pad_count and
bth.transport_header_version fields of a &struct ib_ud_header given
the payload length and whether a GRH will be included.