]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
IANA PEN should be in network order.
authorRoy Marples <roy@marples.name>
Wed, 31 Oct 2012 10:42:44 +0000 (10:42 +0000)
committerRoy Marples <roy@marples.name>
Wed, 31 Oct 2012 10:42:44 +0000 (10:42 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index b5d26ebd4525a2aa4825d64fde82186efa31da90..96e48143ee1687445eee2723d9b48ec0bf689208 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -219,7 +219,7 @@ dhcp6_makevendor(struct dhcp6_option *o)
                o->code = htons(D6_OPTION_VENDOR);
                o->len = htons(len);
                p = D6_OPTION_DATA(o);
-               u32 = DHCPCD_IANA_PEN;
+               u32 = htonl(DHCPCD_IANA_PEN);
                memcpy(p, &u32, sizeof(u32));
                p += sizeof(u32);
 #ifdef VENDOR_SPLIT