Commit 634b8fd5 authored by Martin Åberg's avatar Martin Åberg Committed by Jukka Rissanen
Browse files

net: dhcpv4: fixed endian issue



This makes the following test pass on qemu_leon3:
- net.dhcp

Signed-off-by: default avatarMartin Åberg <martin.aberg@gaisler.com>
parent fb18a6e2
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -822,10 +822,15 @@ static bool dhcpv4_parse_options(struct net_pkt *pkt,
				return false;
			}

			if (net_pkt_read_u8(pkt, (uint8_t *)msg_type)) {
			{
				uint8_t val = 0U;

				if (net_pkt_read_u8(pkt, &val)) {
					NET_DBG("options_msg_type, read err");
					return false;
				}
				*msg_type = val;
			}

			break;
		}