aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/visual.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-09-25 17:12:43 -0700
committerGuy Harris <guy@alum.mit.edu>2018-09-26 00:15:26 +0000
commitc9f19e4af767dd80550e795c2ceee52b50db308b (patch)
treeadda84d64b0c21e49415a22af0652d41807c9abb /wiretap/visual.c
parentf9129721b2e504987484b8def3b56d9eae30b4db (diff)
Rename the pseudo-header for X.25, V.120, and Frame Relay.
It's not just for X.25, it's for anything that has the notion of Data Terminal Equipment and Data Communications Equipment; call it "dte_dce", not "x25". Change-Id: I3d51fec8b424e91ffd6d59895f50fc5ece791b08 Reviewed-on: https://code.wireshark.org/review/29834 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/visual.c')
-rw-r--r--wiretap/visual.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/visual.c b/wiretap/visual.c
index 433ca684f6..724bdd79ea 100644
--- a/wiretap/visual.c
+++ b/wiretap/visual.c
@@ -399,7 +399,7 @@ visual_read_packet(wtap *wth, FILE_T fh, wtap_rec *rec,
}
rec->rec_header.packet_header.len -= 2;
- rec->rec_header.packet_header.pseudo_header.x25.flags =
+ rec->rec_header.packet_header.pseudo_header.dte_dce.flags =
(packet_status & PS_SENT) ? 0x00 : FROM_DCE;
break;
@@ -414,7 +414,7 @@ visual_read_packet(wtap *wth, FILE_T fh, wtap_rec *rec,
}
rec->rec_header.packet_header.len -= 2;
- rec->rec_header.packet_header.pseudo_header.x25.flags =
+ rec->rec_header.packet_header.pseudo_header.dte_dce.flags =
(packet_status & PS_SENT) ? 0x00 : FROM_DCE;
break;
@@ -715,7 +715,7 @@ static gboolean visual_dump(wtap_dumper *wdh, const wtap_rec *rec,
case WTAP_ENCAP_FRELAY_WITH_PHDR:
case WTAP_ENCAP_LAPB:
packet_status |=
- ((pseudo_header->x25.flags & FROM_DCE) ? 0x00 : PS_SENT);
+ ((pseudo_header->dte_dce.flags & FROM_DCE) ? 0x00 : PS_SENT);
break;
}
vpkt_hdr.status = GUINT32_TO_LE(packet_status);