header->lrh.packet_length    = (IB_LRH_BYTES     + 
packet_length		     = (IB_LRH_BYTES     + 
void ib_ud_header_init(int     		    payload_bytes,		       int    		    grh_present,		       struct ib_ud_header *header){	int header_len;	memset(header, 0, sizeof *header);	header_len =		IB_LRH_BYTES  +		IB_BTH_BYTES  +		IB_DETH_BYTES;	if (grh_present) {		header_len += IB_GRH_BYTES;	}	header->lrh.link_version     = 0;	header->lrh.link_next_header =		grh_present ? IB_LNH_IBA_GLOBAL : IB_LNH_IBA_LOCAL;	header->lrh.packet_length    = (IB_LRH_BYTES     +					IB_BTH_BYTES     +					IB_DETH_BYTES    +					payload_bytes    +					4                + /* ICRC     */					3) / 4;            /* round up */	header->grh_present          = grh_present;	if (grh_present) {		header->lrh.packet_length  += IB_GRH_BYTES / 4;		header->grh.ip_version      = 6;		header->grh.payload_length  =			cpu_to_be16((IB_BTH_BYTES     +				     IB_DETH_BYTES    +				     payload_bytes    +				     4                + /* ICRC     */				     3) & ~3);          /* round up */		header->grh.next_header     = 0x1b;	}	cpu_to_be16s(&header->lrh.packet_length);	if (header->immediate_present)		header->bth.opcode           = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE;	else		header->bth.opcode           = IB_OPCODE_UD_SEND_ONLY;	header->bth.pad_count                = (4 - payload_bytes) & 3;	header->bth.transport_header_version = 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/97f52eb438be7caebe026421545619d8a0c1398a/ud_header.c/buggy/drivers/infiniband/core/ud_header.c