systemd: check IFLA_VLAN_PROTOCOL
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 16 Jun 2014 13:49:18 +0000 (06:49 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Jun 2014 07:59:04 +0000 (08:59 +0100)
commit57722114f3e2836eae7f9846aa24f03bb3c688ce
treec83558fc91a879038029caea44926d6a78749236
parent6ffab5361b315124dc3a3012b4cae81a53939669
systemd: check IFLA_VLAN_PROTOCOL

The older kernel's linux/if_link.h doesn't have IFLA_VLAN_PROTOCOL, we need
check whether it has been defined or not.

The maintainer said that he would fix it:

http://thread.gmane.org/gmane.comp.sysutils.systemd.devel/18200

Also we need redefine IFLA_MAX from 34 to 35 when define IFLA_CARRIER,
otherwise there would be error:

| src/libsystemd/sd-rtnl/rtnl-types.c:233:9: error: array index in initializer exceeds array bounds
|          [IFLA_CARRIER]          = { .type = NLA_U8 },

[YOCTO #6380]

(From OE-Core rev: 0e626d5023fee4dbcc5d94e6b787b4c5fe4b2687)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd/systemd-older-kernel.patch [new file with mode: 0644]
meta/recipes-core/systemd/systemd_213.bb