From: Roy Marples Date: Wed, 31 Oct 2012 10:42:44 +0000 (+0000) Subject: IANA PEN should be in network order. X-Git-Tag: v5.99.3~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d2ff06a35f394baffda67e609dfbd4d7bcf4c31a;p=thirdparty%2Fdhcpcd.git IANA PEN should be in network order. --- diff --git a/dhcp6.c b/dhcp6.c index b5d26ebd..96e48143 100644 --- 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