"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ui/tap_export_pdu.c" between
wireshark-3.4.5.tar.xz and wireshark-3.4.6.tar.xz

About: Wireshark is a network protocol analyzer. It lets you capture and interactively browse the traffic running on a computer network.

tap_export_pdu.c  (wireshark-3.4.5.tar.xz):tap_export_pdu.c  (wireshark-3.4.6.tar.xz)
skipping to change at line 49 skipping to change at line 49
buffer_len = exp_pdu_data->tvb_captured_length + exp_pdu_data->tlv_buffer_le n; buffer_len = exp_pdu_data->tvb_captured_length + exp_pdu_data->tlv_buffer_le n;
packet_buf = (guint8 *)g_malloc(buffer_len); packet_buf = (guint8 *)g_malloc(buffer_len);
if(exp_pdu_data->tlv_buffer_len > 0){ if(exp_pdu_data->tlv_buffer_len > 0){
memcpy(packet_buf, exp_pdu_data->tlv_buffer, exp_pdu_data->tlv_buffer_le n); memcpy(packet_buf, exp_pdu_data->tlv_buffer, exp_pdu_data->tlv_buffer_le n);
} }
if(exp_pdu_data->tvb_captured_length > 0){ if(exp_pdu_data->tvb_captured_length > 0){
tvb_memcpy(exp_pdu_data->pdu_tvb, packet_buf+exp_pdu_data->tlv_buffer_le n, 0, exp_pdu_data->tvb_captured_length); tvb_memcpy(exp_pdu_data->pdu_tvb, packet_buf+exp_pdu_data->tlv_buffer_le n, 0, exp_pdu_data->tvb_captured_length);
} }
rec.rec_type = REC_TYPE_PACKET; rec.rec_type = REC_TYPE_PACKET;
rec.presence_flags = WTAP_HAS_CAP_LEN|WTAP_HAS_INTERFACE _ID|WTAP_HAS_TS|WTAP_HAS_PACK_FLAGS; rec.presence_flags = WTAP_HAS_CAP_LEN|WTAP_HAS_INTERFACE _ID|WTAP_HAS_TS;
rec.ts.secs = pinfo->abs_ts.secs; rec.ts.secs = pinfo->abs_ts.secs;
rec.ts.nsecs = pinfo->abs_ts.nsecs; rec.ts.nsecs = pinfo->abs_ts.nsecs;
rec.rec_header.packet_header.caplen = buffer_len; rec.rec_header.packet_header.caplen = buffer_len;
rec.rec_header.packet_header.len = exp_pdu_data->tvb_reported_length + exp_pdu_data->tlv_buffer_len; rec.rec_header.packet_header.len = exp_pdu_data->tvb_reported_length + exp_pdu_data->tlv_buffer_len;
rec.rec_header.packet_header.pkt_encap = exp_pdu_tap_data->pkt_encap; rec.rec_header.packet_header.pkt_encap = exp_pdu_tap_data->pkt_encap;
/* rec.opt_comment is not modified by wtap_dump, but if for some reason the /* rec.opt_comment is not modified by wtap_dump, but if for some reason the
* epan_get_user_comment() or pinfo->rec->opt_comment are invalidated, * epan_get_user_comment() or pinfo->rec->opt_comment are invalidated,
* copying it here does not hurt. (Can invalidation really happen?) */ * copying it here does not hurt. (Can invalidation really happen?) */
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)