ANDROID: net: core: fix UID-based routing
authorAmit Pundir <amit.pundir@linaro.org>
Thu, 11 Aug 2016 13:43:22 +0000 (19:13 +0530)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 18 Aug 2016 13:26:03 +0000 (18:56 +0530)
Fix RTA_UID enum to match it with the Android userspace code which
assumes RTA_UID=18.

With this patch all Android kernel networking unit tests mentioned here
https://source.android.com/devices/tech/config/kernel_network_tests.html
are success.

Without this patch multinetwork_test.py unit test fails.

Change-Id: I3ff36670f7d4e5bf5f01dce584ae9d53deabb3ed
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
include/uapi/linux/rtnetlink.h

index 355eea225dd9b6fc7e79ea90a9a4289bc3f8990d..3eb02a1d6d8cca26f00e5d5c6399436100b172b8 100644 (file)
@@ -306,12 +306,12 @@ enum rtattr_type_t {
        RTA_TABLE,
        RTA_MARK,
        RTA_MFC_STATS,
+       RTA_UID,
        RTA_VIA,
        RTA_NEWDST,
        RTA_PREF,
        RTA_ENCAP_TYPE,
        RTA_ENCAP,
-       RTA_UID,
        __RTA_MAX
 };