ifcfg-rh: fix parsing of REORDER_HDR

It's a boolean value not a string.  Second, apparently the
kernel turns it on by default these days, so if it's missing
then assume it's supposed to be TRUE.
This commit is contained in:
Dan Williams 2011-12-21 18:21:26 -06:00
parent ca689a0287
commit b2d9fa2ecd

View file

@ -3799,10 +3799,8 @@ make_vlan_setting (shvarFile *ifcfg,
goto error;
}
value = svGetValue (ifcfg, "REORDER_HDR", FALSE);
if (value)
if (svTrueValue (ifcfg, "REORDER_HDR", FALSE))
vlan_flags |= NM_VLAN_FLAG_REORDER_HEADERS;
g_free (value);
value = svGetValue (ifcfg, "VLAN_FLAGS", FALSE);
if (g_strstr_len (value, -1, "GVRP"))