idm.c (9586:bd5e99a50121) | idm.c (9601:e0ed15140e6d) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 1914 unchanged lines hidden (view full) --- 1923 if (result != NULL) { 1924 /* For idm_pdu_free sanity check */ 1925 result->isp_flags |= IDM_PDU_ALLOC; 1926 /* pointer arithmetic */ 1927 result->isp_hdr = (iscsi_hdr_t *)(result + 1); 1928 result->isp_hdrlen = hdrlen; 1929 result->isp_hdrbuflen = hdrlen; 1930 result->isp_transport_hdrlen = 0; | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 1914 unchanged lines hidden (view full) --- 1923 if (result != NULL) { 1924 /* For idm_pdu_free sanity check */ 1925 result->isp_flags |= IDM_PDU_ALLOC; 1926 /* pointer arithmetic */ 1927 result->isp_hdr = (iscsi_hdr_t *)(result + 1); 1928 result->isp_hdrlen = hdrlen; 1929 result->isp_hdrbuflen = hdrlen; 1930 result->isp_transport_hdrlen = 0; |
1931 result->isp_data = (uint8_t *)result->isp_hdr + hdrlen; | 1931 if (datalen != 0) 1932 result->isp_data = (uint8_t *)result->isp_hdr + hdrlen; |
1932 result->isp_datalen = datalen; 1933 result->isp_databuflen = datalen; 1934 result->isp_magic = IDM_PDU_MAGIC; 1935 } 1936 1937 return (result); 1938} 1939 --- 448 unchanged lines hidden --- | 1933 result->isp_datalen = datalen; 1934 result->isp_databuflen = datalen; 1935 result->isp_magic = IDM_PDU_MAGIC; 1936 } 1937 1938 return (result); 1939} 1940 --- 448 unchanged lines hidden --- |