null: use tvb_get_h_guint32() to fetch a host byte order value.
Change-Id: Ie73165d1018aab0553fc2322a8631ff0b8d549fb Reviewed-on: https://code.wireshark.org/review/38029 Petri-Dish: Guy Harris <gharris@sonic.net> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <gharris@sonic.net>
This commit is contained in:
parent
3b230d5ea3
commit
7d2629d946
|
@ -337,9 +337,10 @@ dissect_null(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_
|
|||
col_set_str(pinfo->cinfo, COL_INFO, "Null/Loopback");
|
||||
|
||||
/*
|
||||
* Treat it as a normal DLT_NULL header.
|
||||
* Treat it as a normal DLT_NULL header. Fetch it in host
|
||||
* byte order.
|
||||
*/
|
||||
tvb_memcpy(tvb, (guint8 *)&null_header, 0, sizeof(null_header));
|
||||
null_header = tvb_get_h_guint32(tvb, 0);
|
||||
|
||||
if ((null_header & 0xFFFF0000) != 0) {
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue