aboutsummaryrefslogtreecommitdiffstats
path: root/ui/text_import.c
diff options
context:
space:
mode:
authorDavid Perry <boolean263@protonmail.com>2021-07-12 12:41:57 -0400
committerDavid Perry <boolean263@protonmail.com>2021-07-12 12:41:57 -0400
commit06ed6930dc602b5b3b1a79a176272c1846840f8f (patch)
treef56b5523b9409634357f1a3aa440dea69d3f1f5a /ui/text_import.c
parent86e2fda11e199b8d0e874147e60a1ba1f0ddb803 (diff)
Carry EPB flags as an option on the packet block
As requested by [this comment][1] on !2859, move `pack_flags` from a dedicated field in `wtap_rec` to a block option on the packet block in `wtap_rec.block`. [1]: https://gitlab.com/wireshark/wireshark/-/merge_requests/2859#note_615984624
Diffstat (limited to 'ui/text_import.c')
-rw-r--r--ui/text_import.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/text_import.c b/ui/text_import.c
index ab31ce9387..a729666517 100644
--- a/ui/text_import.c
+++ b/ui/text_import.c
@@ -620,8 +620,8 @@ write_current_packet (void)
if (ts_fmt == NULL) { ts_nsec++; } /* fake packet counter */
rec.rec_header.packet_header.caplen = rec.rec_header.packet_header.len = prefix_length + curr_offset + eth_trailer_length;
rec.rec_header.packet_header.pkt_encap = pcap_link_type;
- rec.rec_header.packet_header.pack_flags |= direction;
- rec.presence_flags = WTAP_HAS_CAP_LEN|WTAP_HAS_INTERFACE_ID|WTAP_HAS_TS|WTAP_HAS_PACK_FLAGS;
+ wtap_block_add_uint32_option(rec.block, OPT_PKT_FLAGS, direction);
+ rec.presence_flags = WTAP_HAS_CAP_LEN|WTAP_HAS_INTERFACE_ID|WTAP_HAS_TS;
if (has_seqno) {
rec.presence_flags |= WTAP_HAS_PACKET_ID;
rec.rec_header.packet_header.packet_id = seqno;