Project

General

Profile

Bug #1396 » iscsit-dlength.diff

Kris Shannon, 2011-08-21 03:25 PM

View differences:

usr/src/lib/libdtrace/common/iscsit.d 2011-08-22 01:18:56.000000000 +1000 → usr/src/lib/libdtrace/common/iscsit.d 2011-08-22 01:19:50.000000000 +1000
69 69
        ii_cmdsn = 0;
70 70
        ii_statsn = ntohl(P->statsn);
71 71
        ii_datasn = 0;
72
        ii_datalen = P->dlength[0] << 16 | P->dlength[1] << 8 | P->dlength[2];
72
        ii_datalen = (uint32_t)P->dlength[0] << 16 | (uint32_t)P->dlength[1] << 8 | (uint32_t)P->dlength[2];
73 73
        ii_flags = P->flags;
74 74
};
75 75

  
......
89 89
        ii_cmdsn = ntohl(P->cmdsn);
90 90
        ii_statsn = ntohl(P->expstatsn);
91 91
        ii_datasn = 0;
92
        ii_datalen = P->dlength[0] << 16 | P->dlength[1] << 8 | P->dlength[2];
92
        ii_datalen = (uint32_t)P->dlength[0] << 16 | (uint32_t)P->dlength[1] << 8 | (uint32_t)P->dlength[2];
93 93
        ii_flags = P->flags;
94 94
};
95 95

  
......
109 109
        ii_cmdsn = ntohl(P->expcmdsn);
110 110
        ii_statsn = ntohl(P->statsn);
111 111
        ii_datasn = 0;
112
        ii_datalen = P->dlength[0] << 16 | P->dlength[1] << 8 | P->dlength[2];
112
        ii_datalen = (uint32_t)P->dlength[0] << 16 | (uint32_t)P->dlength[1] << 8 | (uint32_t)P->dlength[2];
113 113
        ii_flags = P->flags;
114 114
};
115 115

  
......
196 196
        ii_cmdsn = ntohl(P->expcmdsn);
197 197
        ii_statsn = ntohl(P->statsn);
198 198
        ii_datasn = ntohl(P->datasn);
199
        ii_datalen = P->dlength[0] << 16 | P->dlength[1] << 8 | P->dlength[2];
199
        ii_datalen = (uint32_t)P->dlength[0] << 16 | (uint32_t)P->dlength[1] << 8 | (uint32_t)P->dlength[2];
200 200
        ii_flags = P->flags;
201 201
};
202 202

  
......
223 223
        ii_cmdsn = 0;
224 224
        ii_statsn = ntohl(P->expstatsn);
225 225
        ii_datasn = ntohl(P->datasn);
226
        ii_datalen = P->dlength[0] << 16 | P->dlength[1] << 8 | P->dlength[2];
226
        ii_datalen = (uint32_t)P->dlength[0] << 16 | (uint32_t)P->dlength[1] << 8 | (uint32_t)P->dlength[2];
227 227
        ii_flags = P->flags;
228 228
};
229 229

  
......
250 250
        ii_cmdsn = ntohl(P->expcmdsn);
251 251
        ii_statsn = ntohl(P->statsn);
252 252
        ii_datasn = 0;
253
        ii_datalen = P->dlength[0] << 16 | P->dlength[1] << 8 | P->dlength[2];
253
        ii_datalen = (uint32_t)P->dlength[0] << 16 | (uint32_t)P->dlength[1] << 8 | (uint32_t)P->dlength[2];
254 254
        ii_flags = P->flags;
255 255
};
256 256

  
......
277 277
        ii_cmdsn = ntohl(P->cmdsn);
278 278
        ii_statsn = ntohl(P->expstatsn);
279 279
        ii_datasn = 0;
280
        ii_datalen = P->dlength[0] << 16 | P->dlength[1] << 8 | P->dlength[2];
280
        ii_datalen = (uint32_t)P->dlength[0] << 16 | (uint32_t)P->dlength[1] << 8 | (uint32_t)P->dlength[2];
281 281
        ii_flags = P->flags;
282 282
};
283 283

  
......
304 304
        ii_cmdsn = ntohl(P->cmdsn);
305 305
        ii_statsn = ntohl(P->expstatsn);
306 306
        ii_datasn = 0;
307
        ii_datalen = P->dlength[0] << 16 | P->dlength[1] << 8 | P->dlength[2];
307
        ii_datalen = (uint32_t)P->dlength[0] << 16 | (uint32_t)P->dlength[1] << 8 | (uint32_t)P->dlength[2];
308 308
        ii_flags = P->flags;
309 309
};
310 310

  
......
324 324
        ii_cmdsn = ntohl(P->expcmdsn);
325 325
        ii_statsn = ntohl(P->statsn);
326 326
        ii_datasn = ntohl(P->expdatasn);
327
        ii_datalen = P->dlength[0] << 16 | P->dlength[1] << 8 | P->dlength[2];
327
        ii_datalen = (uint32_t)P->dlength[0] << 16 | (uint32_t)P->dlength[1] << 8 | (uint32_t)P->dlength[2];
328 328
        ii_flags = P->flags;
329 329
};
330 330

  
......
371 371
        ii_cmdsn = ntohl(P->expcmdsn);
372 372
        ii_statsn = ntohl(P->statsn);
373 373
        ii_datasn = 0;
374
        ii_datalen = P->dlength[0] << 16 | P->dlength[1] << 8 | P->dlength[2];
374
        ii_datalen = (uint32_t)P->dlength[0] << 16 | (uint32_t)P->dlength[1] << 8 | (uint32_t)P->dlength[2];
375 375
        ii_flags = P->flags;
376 376
};
377 377

  
......
391 391
        ii_cmdsn = ntohl(P->cmdsn);
392 392
        ii_statsn = ntohl(P->expstatsn);
393 393
        ii_datasn = 0;
394
        ii_datalen = P->dlength[0] << 16 | P->dlength[1] << 8 | P->dlength[2];
394
        ii_datalen = (uint32_t)P->dlength[0] << 16 | (uint32_t)P->dlength[1] << 8 | (uint32_t)P->dlength[2];
395 395
        ii_flags = P->flags;
396 396
};
397 397

  
......
411 411
        ii_cmdsn = ntohl(P->expcmdsn);
412 412
        ii_statsn = ntohl(P->statsn);
413 413
        ii_datasn = 0;
414
        ii_datalen = P->dlength[0] << 16 | P->dlength[1] << 8 | P->dlength[2];
414
        ii_datalen = (uint32_t)P->dlength[0] << 16 | (uint32_t)P->dlength[1] << 8 | (uint32_t)P->dlength[2];
415 415
        ii_flags = P->flags;
416 416
};
417 417

  
    (1-1/1)