(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-tipc.c) |
| |
| 2031 | | | dissect_tipc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) |
| 2032 | | | { |
| 2033 | | | proto_item *ti, *tipc_data_item, *item; |
| 2034 | | | proto_tree *tipc_tree, *tipc_data_tree; |
| 2035 | | | int offset = 0; |
| 2036 | | | guint32 dword; |
| 2037 | | | guint8 version; |
| 2038 | | | guint32 msg_size; |
| 2039 | | | guint8 hdr_size; |
| 2040 | | | guint8 user; |
| 2041 | | | gchar *addr_str_ptr; |
| 2042 | | | const guchar *src_addr, *dst_addr; |
| 2043 | | | tvbuff_t *data_tvb, *tipc_tvb; |
| 2044 | | | gboolean datatype_hdr = FALSE; |
| 2045 | | | guint8 msg_type = 0; |
| 2046 | | | |
| 2047 | | | |
| 2048 | [+] | | if (check_col(pinfo->cinfo, COL_PROTOCOL)) |
 |
| 2049 | | | col_set_str(pinfo->cinfo, COL_PROTOCOL, "TIPC"); |
| 2050 | | | |
| 2051 | [+] | | if (check_col(pinfo->cinfo, COL_INFO)) |
 |
| 2052 | | | col_clear(pinfo->cinfo, COL_INFO); |
| 2053 | | | |
| 2054 | | | top_tree = tree; |
| 2055 | | | dword = tvb_get_ntohl(tvb, offset); |
| 2056 | | | version = (dword >>29) & 0xf; |
| 2057 | | | hdr_size = (dword >>21) & 0xf; |
| 2058 | | | user = (dword>>25) & 0xf; |
| 2059 | | | msg_size = dword & 0x1ffff; |
| 2060 | | | |
| 2061 | [+] | | if ((guint32)tvb_length_remaining(tvb, offset) < msg_size) { |
 |
| |