]> code.ossystems Code Review - openembedded-core.git/commit
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:56:10 +0000 (08:56 +0100)
commit0e626d5023fee4dbcc5d94e6b787b4c5fe4b2687
treede1f29a18102fa2b0b919f7f4d845a5c442d19a1
parent790362b41c83ab90ffaf7c43112602821f212892
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]

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