From 16834e092474b650ecd87bab2a6683a269b9f3ef Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 19 Jul 2010 23:42:41 -0700 Subject: [PATCH] pxe: fix byte order of output from parse_dotquad() parse_dotquad() incorrectly returned output in host byte order. Reported-by: Alexander Wuerstlein Signed-off-by: H. Peter Anvin --- core/fs/pxe/pxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c index 25bd094..0238ed4 100644 --- a/core/fs/pxe/pxe.c +++ b/core/fs/pxe/pxe.c @@ -245,7 +245,7 @@ static const char *parse_dotquad(const char *ip_str, uint32_t *res) } p--; - *res = ip; + *res = htonl(ip); return p; } -- 2.7.4