(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-catapult-dct2000.c) |
| |
| 1431 | | | static void attach_pdcp_lte_info(packet_info *pinfo) |
| 1432 | | | { |
| 1433 | | | struct pdcp_lte_info *p_pdcp_lte_info; |
| 1434 | | | unsigned int i=0; |
| 1435 | | | |
| 1436 | | | |
| 1437 | | | p_pdcp_lte_info = p_get_proto_data(pinfo->fd, proto_pdcp_lte); |
| 1438 | | | if (p_pdcp_lte_info != NULL) |
| 1439 | | | { |
| 1440 | | | return; |
| 1441 | | | } |
| 1442 | | | |
| 1443 | | | |
| 1444 | | | p_pdcp_lte_info = se_alloc0(sizeof(struct pdcp_lte_info)); |
| 1445 | | | if (p_pdcp_lte_info == NULL) |
| 1446 | | | { |
| 1447 | | | return; |
| 1448 | | | } |
| 1449 | | | |
| 1450 | | | p_pdcp_lte_info-> = outhdr_values[i++]; |
| 1451 | | | p_pdcp_lte_info->plane = outhdr_values[i++]; |
| 1452 | | | if (p_pdcp_lte_info->plane != USER_PLANE) { |
| 1453 | | | p_pdcp_lte_info->plane = SIGNALING_PLANE; |
| 1454 | | | } |
| 1455 | | | p_pdcp_lte_info->seqnum_length = outhdr_values[i++]; |
| 1456 | | | |
| 1457 | | | p_pdcp_lte_info->rohc_compression = outhdr_values[i++]; |
| 1458 | | | p_pdcp_lte_info->rohc_ip_version = outhdr_values[i++]; |
| 1459 | | | p_pdcp_lte_info->cid_inclusion_info = outhdr_values[i++]; |
| 1460 | | | p_pdcp_lte_info->large_cid_present = outhdr_values[i++]; |
| 1461 | | | p_pdcp_lte_info->mode = outhdr_values[i++]; |
| 1462 | | | p_pdcp_lte_info->rnd = outhdr_values[i++]; |
| 1463 | | | p_pdcp_lte_info->udp_checkum_present = outhdr_values[i++]; |
| 1464 | | | p_pdcp_lte_info->profile = outhdr_values[i++]; |
Unused Value
The value assigned to i is never subsequently used on any execution path. |
|
| 1465 | | | |
| 1466 | | | |
| 1467 | | | p_add_proto_data(pinfo->fd, proto_pdcp_lte, p_pdcp_lte_info); |
| 1468 | | | } |
| |